Fix APC power usage (#60472)

This commit is contained in:
Jordan Brown
2021-07-26 20:02:53 -07:00
committed by GitHub
parent fb0113e56e
commit c44d61c25b
+1 -1
View File
@@ -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