Remove all obsolete BatteryComponent method calls (#25871)
Removed all obsolete, non-ECS method calls to BatteryComponent
This commit is contained in:
@@ -151,7 +151,7 @@ public sealed class EmergencyLightSystem : SharedEmergencyLightSystem
|
||||
}
|
||||
else
|
||||
{
|
||||
battery.CurrentCharge += component.ChargingWattage * frameTime * component.ChargingEfficiency;
|
||||
_battery.SetCharge(uid, battery.CurrentCharge + component.ChargingWattage * frameTime * component.ChargingEfficiency, battery);
|
||||
if (battery.IsFullyCharged)
|
||||
{
|
||||
if (TryComp<ApcPowerReceiverComponent>(uid, out var receiver))
|
||||
|
||||
Reference in New Issue
Block a user