From e0d2ec886d4faa7b55861b44fb024adea4d27b7d Mon Sep 17 00:00:00 2001 From: Cerebulon Date: Mon, 31 Oct 2022 03:04:06 +0000 Subject: [PATCH] Notifies player of additional lore/mechanical info on examined objects. --- code/game/atoms.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index f7a68a47c9..df40972d86 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -228,6 +228,11 @@ var/global/list/pre_init_created_atoms // atom creation ordering means some stuf var/list/output = list("[bicon(src)] That's [f_name] [suffix]", desc) + if(description_fluff || description_info) + to_chat(user, span("notice", "This item has additional examine info. \[View\]")) + if(description_antag && player_is_antag(user.mind)) + to_chat(user, span("notice", "This item has additional antag info. \[View\]")) + if(user.client?.prefs.examine_text_mode == EXAMINE_MODE_INCLUDE_USAGE) output += description_info @@ -237,6 +242,15 @@ var/global/list/pre_init_created_atoms // atom creation ordering means some stuf SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, user, output) return output +/atom/Topic(href,href_list[]) + . = ..() + if (.) + return + + switch(href_list["examine"]) + if("fluff") + usr.client.statpanel = "Examine" + // Don't make these call bicon or anything, these are what bicon uses. They need to return an icon. /atom/proc/examine_icon() return icon(icon=src.icon, icon_state=src.icon_state, dir=SOUTH, frame=1, moving=0)