mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
power
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
use_power = NO_POWER_USE
|
||||
idle_power_usage = 0
|
||||
active_power_usage = 0
|
||||
var/malfunction = FALSE
|
||||
|
||||
/obj/machinery/power/Destroy()
|
||||
disconnect_from_network()
|
||||
@@ -30,7 +31,7 @@
|
||||
// Non-machines should use add_delayedload(), delayed_surplus(), newavail()
|
||||
|
||||
/obj/machinery/power/proc/add_avail(amount)
|
||||
if(powernet)
|
||||
if(powernet && !malfunction)
|
||||
powernet.newavail += amount
|
||||
return TRUE
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user