Wires patches (#7993)
* door bolts now set if power is off and wire is pulsed, makes WiresSystem get a new random every time the round restarts * ??? what's shuffle doing in the interface ??? * oops
This commit is contained in:
@@ -23,7 +23,6 @@ namespace Content.Server.Wires;
|
||||
|
||||
public sealed class WiresSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly IPrototypeManager _protoMan = default!;
|
||||
[Dependency] private readonly AudioSystem _audioSystem = default!;
|
||||
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
||||
@@ -33,6 +32,8 @@ public sealed class WiresSystem : EntitySystem
|
||||
[Dependency] private readonly HandsSystem _handsSystem = default!;
|
||||
[Dependency] private readonly DoAfterSystem _doAfter = default!;
|
||||
|
||||
private IRobustRandom _random = new RobustRandom();
|
||||
|
||||
// This is where all the wire layouts are stored.
|
||||
[ViewVariables] private readonly Dictionary<string, WireLayout> _layouts = new();
|
||||
|
||||
@@ -824,6 +825,7 @@ public sealed class WiresSystem : EntitySystem
|
||||
private void Reset(RoundRestartCleanupEvent args)
|
||||
{
|
||||
_layouts.Clear();
|
||||
_random = new RobustRandom();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user