Tweak floor tile replacement and add missing catwalk sprite (#21607)

* Cat.

* Cat.
This commit is contained in:
Vi3trice
2023-07-17 15:36:51 +01:00
committed by GitHub
parent f180792228
commit 19c718ac78
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ GLOBAL_LIST_INIT(icons_to_ignore_at_floor_init, list("damaged1","damaged2","dama
if(..())
return TRUE
if(intact && istype(C, /obj/item/stack/tile))
if((intact || transparent_floor) && istype(C, /obj/item/stack/tile))
try_replace_tile(C, user, params)
return TRUE
@@ -121,6 +121,12 @@
/turf/simulated/floor/transparent/glass/can_lay_cable()
return FALSE // this turf isn't "intact" but you also can't lay cable on it
/turf/simulated/floor/transparent/glass/try_replace_tile(obj/item/stack/tile/T, mob/user, params)
var/obj/item/thing = user.get_inactive_hand()
if(!thing || !prying_tool_list.Find(thing.tool_behaviour))
return
to_chat(user, "<span class='danger'>You need to hold two sheets of metal to dismantle \the [src]!</span>")
/turf/simulated/floor/transparent/glass/reinforced
name = "reinforced glass floor"
desc = "Jump on it, it can cope. Promise..."