From 00ec4ba7e20d84451c24aa2a68076b7cbadcbe8e Mon Sep 17 00:00:00 2001 From: Burzah <116982774+Burzah@users.noreply.github.com> Date: Fri, 3 May 2024 16:57:10 -0700 Subject: [PATCH] Adds an admin message and logging for 'Crew Traitor' smite (#25323) * adds an admin message for crew traitor smite * adds additional admin logging for smite --- code/modules/admin/topic.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 2f89291bc38..b945dca68e4 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2149,18 +2149,20 @@ if(ismindshielded(player.current)) possible_traitors -= player if(length(possible_traitors)) - var/datum/mind/newtraitormind = pick(possible_traitors) + var/datum/mind/new_traitor_mind = pick(possible_traitors) var/datum/objective/assassinate/kill_objective = new() kill_objective.target = H.mind kill_objective.explanation_text = "Assassinate [H.mind.name], the [H.mind.assigned_role]" - newtraitormind.add_mind_objective(kill_objective) + new_traitor_mind.add_mind_objective(kill_objective) var/datum/antagonist/traitor/T = new() T.give_objectives = FALSE - to_chat(newtraitormind.current, "ATTENTION: It is time to pay your debt to the Syndicate...") - to_chat(newtraitormind.current, "Goal: KILL [H.real_name], currently in [get_area(H.loc)]") - newtraitormind.add_antag_datum(T) + to_chat(new_traitor_mind.current, "ATTENTION: It is time to pay your debt to the Syndicate...") + to_chat(new_traitor_mind.current, "Goal: KILL [H.real_name], currently in [get_area(H.loc)]") + new_traitor_mind.add_antag_datum(T) + message_admins("[key_name_admin(new_traitor_mind)] was chosen to be the traitor for a smite!") + log_admin("[key_name(new_traitor_mind)] was made into a traitor to hunt [key_name(H)] for 'Crew Traitor' smite.") else to_chat(usr, "ERROR: Unable to find any valid candidate to send after [H].") return