Power - spotřebovává se když jsou zavřené dveře. Hráči mohou zavírat pouze dveře na svojí polovině mapy. Oprava bugu v MovementOpportunity, který způsoboval zpožďování intervalu.

This commit is contained in:
Perry 2026-03-12 22:33:35 +01:00
parent 7656707177
commit 25a62af483
22 changed files with 240 additions and 59 deletions

View file

@ -3,6 +3,7 @@ using System.Collections;
using System.Diagnostics;
using System.Threading;
using FNAF_Server.Map;
using GlobalClassLib;
using LiteNetLib;
using LiteNetLib.Utils;
using PacketLib;
@ -104,7 +105,9 @@ public class Server {
state = new PlayerState {
pid = peer.Id,
camera = GameLogic.START_CAMERA,
doorStates = [false, false, false]
doorStates = [false, false, false],
power = Power.MAX_POWER_VALUE,
poweredOut = false
},
username = packet.username
});