[MIRROR] Fix APC power usage (#7161)

* Fix APC power usage

* Update apc.dm

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-07-28 23:04:32 +02:00
committed by GitHub
parent 292bfdcd9d
commit 0e021eceea
+1 -1
View File
@@ -1299,7 +1299,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