Merge pull request #9023 from Anasari/LabelerLogging

Add labeler to investigate logs
This commit is contained in:
Crazy Lemon
2018-06-30 20:33:35 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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
+1
View File
@@ -35,6 +35,7 @@
user.visible_message("<span class='notice'>[user] labels [A] as [label].</span>", \
"<span class='notice'>You label [A] as [label].</span>")
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)