nuke lights code change (#19315)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -29,6 +29,7 @@ public sealed class NukeSystem : EntitySystem
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly ITileDefinitionManager _tileDefManager = default!;
|
||||
[Dependency] private readonly ItemSlotsSystem _itemSlots = default!;
|
||||
[Dependency] private readonly PointLightSystem _pointLight = default!;
|
||||
[Dependency] private readonly PopupSystem _popups = default!;
|
||||
[Dependency] private readonly ServerGlobalSoundSystem _sound = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
@@ -455,6 +456,9 @@ public sealed class NukeSystem : EntitySystem
|
||||
|
||||
_sound.PlayGlobalOnStation(uid, _audio.GetSound(component.ArmSound));
|
||||
|
||||
// turn on the spinny light
|
||||
_pointLight.SetEnabled(uid, true);
|
||||
|
||||
_itemSlots.SetLock(uid, component.DiskSlot, true);
|
||||
if (!nukeXform.Anchored)
|
||||
{
|
||||
@@ -494,6 +498,9 @@ public sealed class NukeSystem : EntitySystem
|
||||
component.PlayedAlertSound = false;
|
||||
component.AlertAudioStream?.Stop();
|
||||
|
||||
// turn off the spinny light
|
||||
_pointLight.SetEnabled(uid, false);
|
||||
|
||||
// start bomb cooldown
|
||||
_itemSlots.SetLock(uid, component.DiskSlot, false);
|
||||
component.Status = NukeStatus.COOLDOWN;
|
||||
|
||||
Reference in New Issue
Block a user