mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Adds Examine hints for Railing Deconstruction (#79205)
## About The Pull Request While railings already have contextual tips, the context requires you to already know what tool to be holding. Would probably be helpful to know at a glance which tool that is.  ## Why It's Good For The Game Usability? Is that the word? IDK I noticed it was missing as I kept hitting it with a screwdriver so I'm sure I can't be the only one. ## Changelog 🆑 qol: Railings now have Examine hints for how to deconstruct them /🆑
This commit is contained in:
@@ -63,6 +63,13 @@
|
||||
|
||||
AddComponent(/datum/component/simple_rotation, ROTATION_NEEDS_ROOM)
|
||||
|
||||
/obj/structure/railing/examine(mob/user)
|
||||
. = ..()
|
||||
if(anchored == TRUE)
|
||||
. += span_notice("The railing is <b>bolted</b> to the floor.")
|
||||
else
|
||||
. += span_notice("The railing is <i>unbolted</i> from the floor and can be deconstructed with <b>wirecutters</b>.")
|
||||
|
||||
/obj/structure/railing/attackby(obj/item/I, mob/living/user, params)
|
||||
..()
|
||||
add_fingerprint(user)
|
||||
|
||||
Reference in New Issue
Block a user