Fixes railings mentioning tables on inspect. (#23554)

* teehee

* cinnamonsnowball review

* contra review

* Update railings.dm

* Update code/game/objects/structures.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
1080pCat
2024-02-05 07:37:16 +10:00
committed by GitHub
parent 97f46ffe84
commit a2ff8ada2d
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -154,6 +154,9 @@
return FALSE
return TRUE
/obj/structure/proc/get_climb_text()
return "<span class='info'>You can <b>Click-Drag</b> yourself to [src] to climb on top of it after a short delay.</span>"
/obj/structure/examine(mob/user)
. = ..()
if(!(resistance_flags & INDESTRUCTIBLE))
@@ -165,7 +168,7 @@
if(examine_status)
. += examine_status
if(climbable)
. += "<span class='info'>You can <b>Click-Drag</b> someone to [src] to put them on the table after a short delay.</span>"
. += get_climb_text()
/obj/structure/proc/examine_status(mob/user) //An overridable proc, mostly for falsewalls.
var/healthpercent = (obj_integrity/max_integrity) * 100
+3
View File
@@ -12,6 +12,9 @@
var/currently_climbed = FALSE
var/mover_dir = null
/obj/structure/railing/get_climb_text()
return "<span class='info'>You can <b>Click-Drag</b> yourself to [src] to climb over it after a short delay.</span>"
/obj/structure/railing/corner //aesthetic corner sharp edges hurt oof ouch
icon_state = "railing_corner"
density = FALSE