Fix PowerCellDrawComponent draw rate (#38562)
* fix power cell draw rate * comment
This commit is contained in:
@@ -28,7 +28,7 @@ public sealed partial class PowerCellSystem
|
||||
if (!TryGetBatteryFromSlot(uid, out var batteryEnt, out var battery, slot))
|
||||
continue;
|
||||
|
||||
if (_battery.TryUseCharge(batteryEnt.Value, comp.DrawRate, battery))
|
||||
if (_battery.TryUseCharge(batteryEnt.Value, comp.DrawRate * (float)comp.Delay.TotalSeconds, battery))
|
||||
continue;
|
||||
|
||||
var ev = new PowerCellSlotEmptyEvent();
|
||||
|
||||
Reference in New Issue
Block a user