Skip to content

Commit

Permalink
add nukeops autogamma
Browse files Browse the repository at this point in the history
  • Loading branch information
canvaswalker committed Jan 14, 2025
1 parent 7be50d7 commit c8c930a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
using Robust.Shared.Utility;
using Content.Server.StationEvents.Components;
using System.Linq;
using Content.Server.AlertLevel;
using Content.Shared.Store.Components;
using Robust.Shared.Prototypes;
using Content.Server.Maps;
using Content.Server.Station.Systems;

namespace Content.Server.GameTicking.Rules;

Expand All @@ -41,6 +43,8 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
[Dependency] private readonly StoreSystem _store = default!;
[Dependency] private readonly TagSystem _tag = default!;
[Dependency] private readonly IPrototypeManager _prototype = default!;
[Dependency] private readonly AlertLevelSystem _alertLevel = default!; //ss220 nukeops autogamma
[Dependency] private readonly StationSystem _station = default!; //ss220 nukeops autogamma

[ValidatePrototypeId<CurrencyPrototype>]
private const string TelecrystalCurrencyPrototype = "Telecrystal";
Expand Down Expand Up @@ -350,6 +354,13 @@ private void OnWarDeclared(ref WarDeclaredEvent ev)
ev.DeclaratorEntity.Comp.ShuttleDisabledTime = timeRemain;

DistributeExtraTc((uid, nukeops));

//ss220 nukeops autogamma
foreach (var station in _station.GetStations())
{
_alertLevel.SetLevel(station, "gamma", true, true, true);
}
//ss220 nukeops autogamma
}
}
}
Expand Down

0 comments on commit c8c930a

Please sign in to comment.