mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Allow RPD to place pipes on tiles with grilles/windows (#43671)
Before, clicking on windows or grilles with rpds would not do anything. Now, it will attempt to place a pipe/whatever on that tile. the inability to build pipes through windows without deconstructing them is obnoxious and arbitrary, especially since you can build through walls no problem. This streamlines the workflow of almost any atmos funtime shenanigans.
This commit is contained in:
committed by
Tad Hardesty
parent
4cf3ea152f
commit
907febbdcf
@@ -333,7 +333,7 @@ GLOBAL_LIST_INIT(transit_tube_recipes, list(
|
||||
//make sure what we're clicking is valid for the current category
|
||||
var/static/list/make_pipe_whitelist
|
||||
if(!make_pipe_whitelist)
|
||||
make_pipe_whitelist = typecacheof(list(/obj/structure/lattice, /obj/structure/girder, /obj/item/pipe))
|
||||
make_pipe_whitelist = typecacheof(list(/obj/structure/lattice, /obj/structure/girder, /obj/item/pipe, /obj/structure/window, /obj/structure/grille))
|
||||
var/can_make_pipe = (isturf(A) || is_type_in_typecache(A, make_pipe_whitelist))
|
||||
|
||||
. = FALSE
|
||||
|
||||
Reference in New Issue
Block a user