mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user