added get_cell() proc to remaining items using cells

This commit is contained in:
Arkatos1
2019-05-18 23:52:18 +02:00
parent e000e29b09
commit fdd2ca94d4
16 changed files with 47 additions and 7 deletions
@@ -26,6 +26,10 @@
return battery_module.battery.give(amount)
return 0
/obj/item/modular_computer/get_cell()
var/obj/item/computer_hardware/battery/battery_module = all_components[MC_CELL]
if(battery_module && battery_module.battery)
return battery_module.battery
// Used in following function to reduce copypaste
/obj/item/modular_computer/proc/power_failure()