From 98c3caf059687b2a2ee9454f821f69488edbbb1e Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 25 Sep 2025 17:46:27 -0500 Subject: [PATCH] Climbing desc is now an examine tag (#93120) ## About The Pull Request The climbing element used a seperate line in the description examine text to indicate it was climbable. This transfers that information to a examine tag to cut down on excessive desc text spam. This also could be replicated for lots of other things like anchoring, welding, etc. ## Why It's Good For The Game Better UX/UI dreamseeker_fHDHUJd45F ## Changelog :cl: qol: Climbable objects now show up as an examine tag. /:cl: --- code/datums/elements/climbable.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/datums/elements/climbable.dm b/code/datums/elements/climbable.dm index 2a928900b8e..8eaf86e2a3f 100644 --- a/code/datums/elements/climbable.dm +++ b/code/datums/elements/climbable.dm @@ -21,18 +21,20 @@ src.climb_stun = climb_stun RegisterSignal(target, COMSIG_ATOM_ATTACK_HAND, PROC_REF(attack_hand)) - RegisterSignal(target, COMSIG_ATOM_EXAMINE, PROC_REF(on_examine)) + RegisterSignal(target, COMSIG_ATOM_EXAMINE_TAGS, PROC_REF(get_examine_tags)) RegisterSignal(target, COMSIG_MOUSEDROPPED_ONTO, PROC_REF(mousedrop_receive)) ADD_TRAIT(target, TRAIT_CLIMBABLE, ELEMENT_TRAIT(type)) /datum/element/climbable/Detach(datum/target) - UnregisterSignal(target, list(COMSIG_ATOM_ATTACK_HAND, COMSIG_ATOM_EXAMINE, COMSIG_MOUSEDROPPED_ONTO, COMSIG_ATOM_BUMPED)) + UnregisterSignal(target, list(COMSIG_ATOM_ATTACK_HAND, COMSIG_ATOM_EXAMINE_TAGS, COMSIG_MOUSEDROPPED_ONTO, COMSIG_ATOM_BUMPED)) REMOVE_TRAIT(target, TRAIT_CLIMBABLE, ELEMENT_TRAIT(type)) return ..() -/datum/element/climbable/proc/on_examine(atom/source, mob/user, list/examine_texts) +///Someone inspected our embeddable item +/datum/element/climbable/proc/get_examine_tags(atom/source, mob/user, list/examine_list) SIGNAL_HANDLER - examine_texts += span_notice("[source] looks climbable.") + + examine_list["climbable"] = "It looks like it can be climbed on." /datum/element/climbable/proc/can_climb(atom/source, mob/user) if (!user.CanReach(source))