mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Merge pull request #9023 from Anasari/LabelerLogging
Add labeler to investigate logs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user