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
|
|
@ -55,8 +55,9 @@ public class CommandManager {
|
|||
}
|
||||
|
||||
private static void SendToggleRemoteDoor(Direction direction) {
|
||||
if (!currentDoorBinds.TryGetValue(direction, out var val)) return;
|
||||
TileConnectorProjection connector = val;
|
||||
if (!currentDoorBinds.TryGetValue(direction, out var connector)) return;
|
||||
if (connector.Owner != Client.Player) return;
|
||||
|
||||
connector.Blocked = !connector.Blocked;
|
||||
Client.SendCommands([PlayerCommand.SET_DOOR_REMOTE(connector.Id, connector.Blocked)]);
|
||||
UIManager.ChangeRemoteDoorState(connector.Id, connector.Blocked);
|
||||
|
|
@ -65,6 +66,8 @@ public class CommandManager {
|
|||
}
|
||||
|
||||
public static void SendChangeCamera(int id) {
|
||||
if (id == Client.Player.state.officeTileId || id == Client.Opponent.state.officeTileId) return;
|
||||
|
||||
Client.Player.state.camera = id;
|
||||
UIManager.ChangeCamera(id);
|
||||
Client.SendCommands([PlayerCommand.SWITCH_CAM(id)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue