Remove events from survival (#289)

* Survival

* Remove events
This commit is contained in:
Aviu00
2023-08-10 15:37:55 +03:00
committed by Aviu00
parent 8b3361a52a
commit bcfe04ebee
3 changed files with 32 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using Content.Server.GameTicking;
using System.Linq;
using Content.Server.GameTicking;
using Content.Server.GameTicking.Rules;
using Content.Server.GameTicking.Rules.Components;
using Content.Server.StationEvents.Components;
@@ -93,4 +94,9 @@ public sealed class RampingStationEventSchedulerSystem : GameRuleSystem<RampingS
// 4-12 minutes baseline. Will get faster over time as the chaos mod increases.
component.TimeUntilNextEvent = _random.NextFloat(240f / mod, 720f / mod);
}
public bool CheckRampingEventRule() // WD
{
return EntityQuery<RampingStationEventSchedulerComponent>().Any();
}
}