-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Content.Server.GameTicking.Rules.Components; | ||
using Content.Server.StationEvents.Events; | ||
using Robust.Shared.Random; | ||
|
||
namespace Content.Server.Backmen.EvilTwin.StationEvents; | ||
public sealed partial class EvilTwinRule : StationEventSystem<EvilTwinRuleComponent> | ||
Check failure on line 6 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / Test Packaging
Check failure on line 6 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / Test Packaging
Check failure on line 6 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / build (ubuntu-latest)
Check failure on line 6 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / build (ubuntu-latest)
Check failure on line 6 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / YAML Linter
|
||
{ | ||
protected override void Started(EntityUid uid, EvilTwinRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args) | ||
Check failure on line 8 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / Test Packaging
Check failure on line 8 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / Test Packaging
Check failure on line 8 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / build (ubuntu-latest)
|
||
{ | ||
base.Started(uid, component, gameRule, args); | ||
|
||
if(!_evilTwinSystem.MakeTwin(out _)) | ||
{ | ||
Sawmill.Warning("Map not have latejoin spawnpoints for creating evil twin spawner"); | ||
} | ||
} | ||
|
||
[Dependency] private readonly EvilTwinSystem _evilTwinSystem = default!; | ||
Check failure on line 18 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / Test Packaging
Check failure on line 18 in Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs GitHub Actions / build (ubuntu-latest)
|
||
} |