From 14f4fee7e3969cd5e6fe4a16d5f21311432ca74c Mon Sep 17 00:00:00 2001 From: Burzah <116982774+Burzah@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:40:31 -0700 Subject: [PATCH] Adds Additional Logging for AutoTraitor Game mode (#27764) * Logging addition * Update code/game/gamemodes/autotraitor/autotraitor.dm Co-authored-by: Adri <33333517+Miraviel@users.noreply.github.com> Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> * Log update --------- Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Adri <33333517+Miraviel@users.noreply.github.com> --- code/game/gamemodes/autotraitor/autotraitor.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/gamemodes/autotraitor/autotraitor.dm b/code/game/gamemodes/autotraitor/autotraitor.dm index 25203e503e1..9c510fc5a74 100644 --- a/code/game/gamemodes/autotraitor/autotraitor.dm +++ b/code/game/gamemodes/autotraitor/autotraitor.dm @@ -98,8 +98,10 @@ if(traitor_count < max_traitors) if(prob(traitor_prob)) message_admins("Making a new Traitor.") + log_game("Making a new Traitor.") if(!length(possible_traitors)) message_admins("No potential traitors. Cancelling new traitor.") + log_game("No potential traitors. Cancelling new traitor.") addtimer(CALLBACK(src, PROC_REF(traitor_check_loop)), 15 MINUTES) return var/datum/mind/new_traitor_mind = pick(possible_traitors) @@ -107,6 +109,8 @@ to_chat(new_traitor, "ATTENTION: It is time to pay your debt to the Syndicate...") new_traitor.mind.add_antag_datum(/datum/antagonist/traitor) + message_admins("[key_name(new_traitor)] was added in as a traitor!") + log_game("[key_name(new_traitor)] was added in as a traitor.") addtimer(CALLBACK(src, PROC_REF(traitor_check_loop)), 15 MINUTES) @@ -138,4 +142,5 @@ if(prob(traitor_prob)) message_admins("New traitor roll passed. Making a new Traitor.") + log_game("New traitor roll passed. Making a new Traitor.") character.mind.make_Traitor()