diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index f2e72125a1b..f3870c25d30 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -343,6 +343,9 @@ //for obj explosion block calculation #define EXPLOSION_BLOCK_PROC -1 +// Defines for investigate to prevent typos and for styling +#define INVESTIGATE_LABEL "labels" + #define INVESTIGATE_BOMB "bombs" // The SQL version required by this version of the code diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm index 2700c8702db..e3cceb9738a 100644 --- a/code/modules/paperwork/handlabeler.dm +++ b/code/modules/paperwork/handlabeler.dm @@ -35,6 +35,7 @@ user.visible_message("[user] labels [A] as [label].", \ "You label [A] as [label].") + investigate_log("[key_name(user)] labelled [A] as [label].", INVESTIGATE_LABEL) // Investigate goes BEFORE rename so the original name is preserved in the log A.name = "[A.name] ([label])" /obj/item/hand_labeler/attack_self(mob/user as mob)