Made some object lists less terrible to read
This commit is contained in:
@@ -301,7 +301,7 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
//first let's add turf cables to our powernet
|
||||
//then we'll connect machines on turf with a node cable is present
|
||||
for(var/AM in loc)
|
||||
if(istype(AM,/obj/structure/cable))
|
||||
if(istype(AM, /obj/structure/cable))
|
||||
var/obj/structure/cable/C = AM
|
||||
if(C.d1 == d1 || C.d2 == d1 || C.d1 == d2 || C.d2 == d2) //only connected if they have a common direction
|
||||
if(C.powernet == powernet)
|
||||
@@ -311,7 +311,7 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
else
|
||||
powernet.add_cable(C) //the cable was powernetless, let's just add it to our powernet
|
||||
|
||||
else if(istype(AM,/obj/machinery/power/apc))
|
||||
else if(istype(AM, /obj/machinery/power/apc))
|
||||
var/obj/machinery/power/apc/N = AM
|
||||
if(!N.terminal)
|
||||
continue // APC are connected through their terminal
|
||||
@@ -321,7 +321,7 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
|
||||
to_connect += N.terminal //we'll connect the machines after all cables are merged
|
||||
|
||||
else if(istype(AM,/obj/machinery/power)) //other power machines
|
||||
else if(istype(AM, /obj/machinery/power)) //other power machines
|
||||
var/obj/machinery/power/M = AM
|
||||
|
||||
if(M.powernet == powernet)
|
||||
|
||||
Reference in New Issue
Block a user