mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
[MIRROR] Kills _globalvars/misc.dm (#7152)
* Kills _globalvars/misc.dm * aaa Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
co-authored by
tralezab
Gandalf
parent
eda8512a83
commit
f8f51cbd86
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user