Fixes MCs not being rechargable

This commit is contained in:
Atermonera
2020-02-24 13:24:38 -08:00
committed by VirgoBot
parent bfa123c1f0
commit b353ec7d01
3 changed files with 14 additions and 22 deletions

View File

@@ -16,6 +16,12 @@
return TRUE
return FALSE
/obj/item/modular_computer/get_cell()
if(battery_module)
return battery_module.battery
else
..()
// Tries to use power from APC, if present.
/obj/item/modular_computer/proc/apc_power(var/power_usage = 0)
apc_powered = TRUE