Fix loneops (#15874)
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Content.Server.GameTicking.Rules;
|
|||||||
|
|
||||||
public abstract class GameRuleSystem<T> : EntitySystem where T : Component
|
public abstract class GameRuleSystem<T> : EntitySystem where T : Component
|
||||||
{
|
{
|
||||||
[Dependency] protected GameTicker GameTicker = default!;
|
[Dependency] protected readonly GameTicker GameTicker = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,10 @@ public sealed class LoneOpsSpawnRule : StationEventSystem<LoneOpsSpawnRuleCompon
|
|||||||
base.Started(uid, component, gameRule, args);
|
base.Started(uid, component, gameRule, args);
|
||||||
|
|
||||||
if (!_nukeopsRuleSystem.CheckLoneOpsSpawn())
|
if (!_nukeopsRuleSystem.CheckLoneOpsSpawn())
|
||||||
|
{
|
||||||
|
ForceEndSelf(uid, gameRule);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var shuttleMap = _mapManager.CreateMap();
|
var shuttleMap = _mapManager.CreateMap();
|
||||||
var options = new MapLoadOptions
|
var options = new MapLoadOptions
|
||||||
|
|||||||
@@ -279,4 +279,3 @@
|
|||||||
reoccurrenceDelay: 25
|
reoccurrenceDelay: 25
|
||||||
duration: 1
|
duration: 1
|
||||||
- type: LoneOpsSpawnRule
|
- type: LoneOpsSpawnRule
|
||||||
- type: NukeopsRule
|
|
||||||
|
|||||||
Reference in New Issue
Block a user