BS12 Hooks

This commit is contained in:
Mloc-Argent
2014-05-22 23:56:35 +02:00
committed by alex-gh
parent a2a50586b0
commit 1b2f83dee4
18 changed files with 96 additions and 122 deletions
+5
View File
@@ -89,6 +89,9 @@
// rebuild all power networks from scratch
/hook/startup/proc/buildPowernets()
return makepowernets()
/proc/makepowernets()
for(var/datum/powernet/PN in powernets)
del(PN)
@@ -111,6 +114,8 @@
if(!M.powernet) continue // APCs have powernet=0 so they don't count as network nodes directly
M.powernet.nodes[M] = M
return 1
// returns a list of all power-related objects (nodes, cable, junctions) in turf,
// excluding source, that match the direction d