From c44d61c25bfb594a3ec7b2387f05f0e2d288998b Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 26 Jul 2021 23:02:53 -0400 Subject: [PATCH] Fix APC power usage (#60472) --- code/modules/power/apc.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 302d7cd3597..63fa8938323 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -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