compile
This commit is contained in:
@@ -56,13 +56,13 @@
|
||||
return network_directions
|
||||
|
||||
/// Directions should only ever have cardinals.
|
||||
/obj/effect/network_builder/atmos_pipe/build_network(list/directions = pipe_directions)
|
||||
/obj/effect/network_builder/atmos_pipe/build_network(list/directions = network_directions)
|
||||
if(!length(directions) <= 1)
|
||||
return
|
||||
var/obj/machinery/atmospherics/pipe/built
|
||||
switch(length(directions))
|
||||
if(2) //straight pipe
|
||||
built = new /obj/machinery/atmospherics/simple(loc)
|
||||
built = new /obj/machinery/atmospherics/pipe/simple(loc)
|
||||
built.setDir(directions[1] | directions[2])
|
||||
if(3) //manifold
|
||||
var/list/missing = directions ^ GLOB.cardinals
|
||||
@@ -72,7 +72,7 @@
|
||||
if(4) //4 way manifold
|
||||
built = new /obj/machinery/atmospherics/pipe/manifold4w(loc)
|
||||
built.SetInitDirections()
|
||||
built.on_construction(pipe_color, piping_layer)
|
||||
built.on_construction(pipe_color, pipe_layer)
|
||||
|
||||
/obj/effect/network_builder/atmos_pipe/distro
|
||||
name = "distro line autobuilder"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/// Scans directions, sets network_directions to have every direction that we can link to. If there's another power cable builder detected, make sure they know we're here by adding us to their cable directions list before we're deleted.
|
||||
/obj/effect/network_builder/power_cable/scan_directions()
|
||||
var/turf/T
|
||||
for(var/i in GLOB.cardinal)
|
||||
for(var/i in GLOB.cardinals)
|
||||
if(i in network_directions)
|
||||
continue //we're already set, that means another builder set us.
|
||||
T = get_step(loc, i)
|
||||
@@ -46,7 +46,6 @@
|
||||
else if(length(directions) == 1)
|
||||
var/do_knot = (knot == KNOT_FORCED) || ((knot == KNOT_AUTO) && should_auto_knot())
|
||||
if(do_knot)
|
||||
var/dir = directions[1]
|
||||
new /obj/structure/cable(loc, cable_color, NONE, directions[1])
|
||||
else
|
||||
if(knot == KNOT_FORCED)
|
||||
@@ -65,9 +64,9 @@
|
||||
do_knot = FALSE
|
||||
|
||||
/obj/effect/network_builder/power_cable/proc/should_auto_knot()
|
||||
return (locate(/obj/machinery/terminal) in loc)
|
||||
return (locate(/obj/machinery/power/terminal) in loc)
|
||||
|
||||
/obj/effect/network_buidler/power_cable/knot
|
||||
/obj/effect/network_builder/power_cable/knot
|
||||
icon_state = "powerlinebuilderknot"
|
||||
knot = KNOT_FORCED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user