fixes final steelslayer issue

This commit is contained in:
S34NW
2021-04-23 20:58:28 +01:00
parent d50c7273fc
commit c7db5e0d16
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -507,7 +507,7 @@
user.visible_message( \
"[user] fastens the [src].", \
"<span class='notice'>You have fastened the [src].</span>", \
"You hear ratchet.")
"You hear ratcheting.")
qdel(src) // remove the pipe item
return
@@ -171,7 +171,7 @@ Pipelines + Other Objects -> Pipe network
/obj/machinery/atmospherics/attackby(obj/item/W, mob/user)
var/turf/T = get_turf(src)
if(can_unwrench && istype(W, /obj/item/wrench))
if(T.transparent_floor && istype(src, /obj/machinery/atmospherics/pipe))
if(T.transparent_floor && istype(src, /obj/machinery/atmospherics/pipe) && layer != GAS_PIPE_VISIBLE_LAYER) //pipes on GAS_PIPE_VISIBLE_LAYER are above the transparent floor and should be interactable
to_chat(user, "<span class='danger'>You can't interact with something that's under the floor!</span>")
return
if(level == 1 && isturf(T) && T.intact)