Co-authored-by: Kara <lunarautomaton6@gmail.com> Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com> Co-authored-by: LankLTE <twlowe06@gmail.com> Co-authored-by: LankLTE <135308300+LankLTE@users.noreply.github.com>
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using Content.Server.Defusable.Components;
|
|
using Content.Server.Defusable.Systems;
|
|
using Content.Server.Doors.Systems;
|
|
using Content.Server.Explosion.EntitySystems;
|
|
using Content.Server.Popups;
|
|
using Content.Server.Wires;
|
|
using Content.Shared.Defusable;
|
|
using Content.Shared.Doors;
|
|
using Content.Shared.Doors.Components;
|
|
using Content.Shared.Wires;
|
|
|
|
namespace Content.Server.Defusable.WireActions;
|
|
|
|
public sealed partial class ActivateWireAction : ComponentWireAction<DefusableComponent>
|
|
{
|
|
public override Color Color { get; set; } = Color.Lime;
|
|
public override string Name { get; set; } = "wire-name-bomb-live";
|
|
|
|
public override StatusLightState? GetLightState(Wire wire, DefusableComponent comp)
|
|
{
|
|
return comp.Activated ? StatusLightState.BlinkingFast : StatusLightState.Off;
|
|
}
|
|
|
|
public override object StatusKey { get; } = DefusableWireStatus.LiveIndicator;
|
|
|
|
public override bool Cut(EntityUid user, Wire wire, DefusableComponent comp)
|
|
{
|
|
return EntityManager.System<DefusableSystem>().ActivateWireCut(user, wire, comp);
|
|
}
|
|
|
|
public override bool Mend(EntityUid user, Wire wire, DefusableComponent comp)
|
|
{
|
|
// if its not disposable defusable system already handles* this
|
|
// *probably
|
|
return true;
|
|
}
|
|
|
|
public override void Pulse(EntityUid user, Wire wire, DefusableComponent comp)
|
|
{
|
|
EntityManager.System<DefusableSystem>().ActivateWirePulse(user, wire, comp);
|
|
}
|
|
}
|