6
2025-08-05 10:00:54 +03:00

40 lines
1.4 KiB
C#

using Content.Server.Defusable.Components;
using Content.Server.Defusable.Systems;
using Content.Server.Doors.Systems;
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 BoomWireAction : ComponentWireAction<DefusableComponent>
{
public override Color Color { get; set; } = Color.Red;
public override string Name { get; set; } = "wire-name-bomb-boom";
public override bool LightRequiresPower { get; set; } = false;
public override StatusLightState? GetLightState(Wire wire, DefusableComponent comp)
{
return comp.Activated ? StatusLightState.On : StatusLightState.Off;
}
public override object StatusKey { get; } = DefusableWireStatus.BoomIndicator;
public override bool Cut(EntityUid user, Wire wire, DefusableComponent comp)
{
return EntityManager.System<DefusableSystem>().BoomWireCut(user, wire, comp);
}
public override bool Mend(EntityUid user, Wire wire, DefusableComponent comp)
{
return EntityManager.System<DefusableSystem>().BoomWireMend(user, wire, comp);
}
public override void Pulse(EntityUid user, Wire wire, DefusableComponent comp)
{
EntityManager.System<DefusableSystem>().BoomWirePulse(user, wire, comp);
}
}