Allows RPD to place pipes on catwalks/girders (#32141)

* Allows RPD to place pipes on catwalks

* allows girders too

* fixes parenthesis

i sniff glue
This commit is contained in:
PKPenguin321
2017-10-28 09:59:12 -07:00
committed by CitadelStationBot
parent 1265e804c5
commit d5856ad609
+1 -1
View File
@@ -548,7 +548,7 @@ GLOBAL_LIST_INIT(RPD_recipes, list(
//make sure what we're clicking is valid for the current mode
var/is_paintable = (p_class == PAINT_MODE && istype(A, /obj/machinery/atmospherics/pipe))
var/is_consumable = (p_class == EATING_MODE && (istype(A, /obj/item/pipe) || istype(A, /obj/item/pipe_meter) || istype(A, /obj/structure/disposalconstruct)))
var/can_make_pipe = ((atmos_piping_mode || p_class == DISPOSALS_MODE) && isturf(A))
var/can_make_pipe = ((atmos_piping_mode || p_class == DISPOSALS_MODE) && (isturf(A)) || istype(A, /obj/structure/lattice/catwalk) || istype(A, /obj/structure/girder))
if(!is_paintable && !is_consumable && !can_make_pipe)
return ..()