Kills _globalvars/misc.dm (#60358)

This commit is contained in:
tralezab
2021-07-26 16:58:18 -07:00
committed by GitHub
parent b1041fed0b
commit 43fd840b2f
22 changed files with 107 additions and 96 deletions
@@ -13,10 +13,10 @@
if(battery_module && battery_module.battery && battery_module.battery.charge)
var/obj/item/stock_parts/cell/cell = battery_module.battery
if(cell.use(amount * GLOB.CELLRATE))
if(cell.use(amount JOULES))
return TRUE
else // Discharge the cell anyway.
cell.use(min(amount*GLOB.CELLRATE, cell.charge))
cell.use(min(amount JOULES, cell.charge))
return FALSE
return FALSE