mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
Improves powernet destruction.
While we currently do hard del datums this is a step towards a better world.
This commit is contained in:
@@ -19,8 +19,14 @@
|
||||
..()
|
||||
|
||||
/datum/powernet/Destroy()
|
||||
for(var/obj/structure/cable/C in cables)
|
||||
cables -= C
|
||||
C.powernet = null
|
||||
for(var/obj/machinery/power/M in nodes)
|
||||
nodes -= M
|
||||
M.powernet = null
|
||||
powernets -= src
|
||||
..()
|
||||
return ..()
|
||||
|
||||
//Returns the amount of excess power (before refunding to SMESs) from last tick.
|
||||
//This is for machines that might adjust their power consumption using this data.
|
||||
|
||||
Reference in New Issue
Block a user