RPDs can now place disposals pipes on dense non-wall turfs (#2035)
This commit is contained in:
committed by
kevinz000
parent
7a0c43e492
commit
6f7e908c89
@@ -9,12 +9,16 @@
|
||||
//Turfs
|
||||
#define isopenturf(A) (istype(A, /turf/open))
|
||||
|
||||
#define isindestructiblefloor(A) (istype(A, /turf/open/indestructible))
|
||||
|
||||
#define isspaceturf(A) (istype(A, /turf/open/space))
|
||||
|
||||
#define isfloorturf(A) (istype(A, /turf/open/floor))
|
||||
|
||||
#define isclosedturf(A) (istype(A, /turf/closed))
|
||||
|
||||
#define isindestructiblewall(A) (istype(A, /turf/closed/indestructible))
|
||||
|
||||
#define iswallturf(A) (istype(A, /turf/closed/wall))
|
||||
|
||||
#define ismineralturf(A) (istype(A, /turf/closed/mineral))
|
||||
|
||||
@@ -570,8 +570,8 @@ GLOBAL_LIST_INIT(RPD_recipes, list(
|
||||
new /obj/item/pipe_meter(A)
|
||||
|
||||
if(DISPOSALS_MODE) //Making disposals pipes
|
||||
if(is_anchored_dense_turf(A))
|
||||
to_chat(user, "<span class='warning'>The [src]'s error light flickers; there's something in the way!</span>")
|
||||
if(isclosedturf(A))
|
||||
to_chat(user, "<span class='warning'>[src]'s error light flickers; there's something in the way!</span>")
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You start building a disposals pipe...</span>")
|
||||
playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
|
||||
|
||||
Reference in New Issue
Block a user