Revert "add breakers to power batteries" (#17632)

This commit is contained in:
metalgearsloth
2023-07-08 12:47:38 +10:00
committed by GitHub
parent 434474f828
commit 2d1ac6e01d
6 changed files with 0 additions and 70 deletions

View File

@@ -1,7 +1,6 @@
using Content.Server.Emp;
using Content.Server.Popups;
using Content.Server.Power.Components;
using Content.Server.Power.Events;
using Content.Server.Power.Pow3r;
using Content.Shared.Access.Components;
using Content.Shared.Access.Systems;
@@ -37,7 +36,6 @@ namespace Content.Server.Power.EntitySystems
SubscribeLocalEvent<ApcComponent, ChargeChangedEvent>(OnBatteryChargeChanged);
SubscribeLocalEvent<ApcComponent, ApcToggleMainBreakerMessage>(OnToggleMainBreaker);
SubscribeLocalEvent<ApcComponent, GotEmaggedEvent>(OnEmagged);
SubscribeLocalEvent<ApcComponent, BreakerPoppedEvent>(OnBreakerPopped);
SubscribeLocalEvent<ApcComponent, EmpPulseEvent>(OnEmpPulse);
}
@@ -113,18 +111,6 @@ namespace Content.Server.Power.EntitySystems
args.Handled = true;
}
private void OnBreakerPopped(EntityUid uid, ApcComponent comp, BreakerPoppedEvent args)
{
// already disabled, do nothing
if (!comp.MainBreakerEnabled)
return;
ApcToggleBreaker(uid, comp);
// popup so its clear what happened
_popup.PopupEntity(Loc.GetString("apc-component-breaker-popped"), uid);
}
public void UpdateApcState(EntityUid uid,
ApcComponent? apc=null,
PowerNetworkBatteryComponent? battery = null)