mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Merge pull request #9069 from Boggart/allowdisposalpipesonwalls
Fixes being unable to construct disposal pipes on walls, an RPD bug and moves it over to the datum/browser ui.
This commit is contained in:
@@ -170,10 +170,14 @@
|
||||
nicetype = "pipe"
|
||||
|
||||
var/turf/T = loc
|
||||
if(T.intact)
|
||||
if(T.intact && istype(T, /turf/simulated/floor))
|
||||
user << "You can only attach the [nicetype] if the floor plating is removed."
|
||||
return
|
||||
|
||||
|
||||
if(!ispipe && istype(T, /turf/simulated/wall))
|
||||
user << "You can't build [nicetype]s on walls, only disposal pipes."
|
||||
return
|
||||
|
||||
var/obj/structure/disposalpipe/CP = locate() in T
|
||||
|
||||
if(istype(I, /obj/item/weapon/wrench))
|
||||
|
||||
Reference in New Issue
Block a user