mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
fix mech runtime
This commit is contained in:
@@ -1378,14 +1378,16 @@
|
||||
/obj/mecha/proc/use_power(amount)
|
||||
if(get_charge())
|
||||
cell.use(amount)
|
||||
update_cell()
|
||||
if(occupant)
|
||||
update_cell()
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/obj/mecha/proc/give_power(amount)
|
||||
if(!isnull(get_charge()))
|
||||
cell.give(amount)
|
||||
update_cell()
|
||||
if(occupant)
|
||||
update_cell()
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user