Fix loneops (#15874)

This commit is contained in:
Nemanja 2023-04-28 23:14:15 -04:00 committed by GitHub
parent 0821f53b8a
commit f028b35ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ namespace Content.Server.GameTicking.Rules;
public abstract class GameRuleSystem<T> : EntitySystem where T : Component
{
[Dependency] protected GameTicker GameTicker = default!;
[Dependency] protected readonly GameTicker GameTicker = default!;
public override void Initialize()
{

View File

@ -20,7 +20,10 @@ public sealed class LoneOpsSpawnRule : StationEventSystem<LoneOpsSpawnRuleCompon
base.Started(uid, component, gameRule, args);
if (!_nukeopsRuleSystem.CheckLoneOpsSpawn())
{
ForceEndSelf(uid, gameRule);
return;
}
var shuttleMap = _mapManager.CreateMap();
var options = new MapLoadOptions

View File

@ -279,4 +279,3 @@
reoccurrenceDelay: 25
duration: 1
- type: LoneOpsSpawnRule
- type: NukeopsRule