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:
parent
7656707177
commit
25a62af483
22 changed files with 240 additions and 59 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue