mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Fix APC power usage (#60472)
This commit is contained in:
@@ -1273,7 +1273,7 @@
|
||||
|
||||
if(cell && !shorted)
|
||||
// draw power from cell as before to power the area
|
||||
var/cellused = min(cell.charge, lastused_total) // clamp deduction to a max, amount left in cell
|
||||
var/cellused = min(cell.charge, lastused_total JOULES) // clamp deduction to a max, amount left in cell
|
||||
cell.use(cellused)
|
||||
|
||||
if(excess > lastused_total) // if power excess recharge the cell
|
||||
|
||||
Reference in New Issue
Block a user