From 8c976f28b2e36fac69fd29c4e9606be4c289f762 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Fri, 12 Apr 2024 19:05:54 -0400 Subject: [PATCH] [MIRROR] Improves banned antag replacement logs (#1946) * Improves banned antag replacement logs (#82545) Just so you don't have to dive deep in the logs to find these. --------- Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> * Improves banned antag replacement logs --------- Co-authored-by: AnturK Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- code/modules/antagonists/_common/antag_datum.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/antagonists/_common/antag_datum.dm b/code/modules/antagonists/_common/antag_datum.dm index 56dc650cef1..c9e629bb3e2 100644 --- a/code/modules/antagonists/_common/antag_datum.dm +++ b/code/modules/antagonists/_common/antag_datum.dm @@ -296,9 +296,12 @@ GLOBAL_LIST_EMPTY(antagonists) var/mob/chosen_one = SSpolling.poll_ghosts_for_target(check_jobban = job_rank, role = job_rank, poll_time = 5 SECONDS, checked_target = owner.current, alert_pic = owner.current, role_name_text = name) if(chosen_one) to_chat(owner, "Your mob has been taken over by a ghost! Appeal your job ban if you want to avoid this in the future!") - message_admins("[key_name_admin(chosen_one)] has taken control of ([key_name_admin(owner)]) to replace a jobbanned player.") + message_admins("[key_name_admin(chosen_one)] has taken control of ([key_name_admin(owner)]) to replace antagonist banned player.") + log_game("[key_name(chosen_one)] has taken control of ([key_name(owner)]) to replace antagonist banned player.") owner.current.ghostize(FALSE) owner.current.key = chosen_one.key + else + log_game("Couldn't find antagonist ban replacement for ([key_name(owner)]).") /** * Called by the remove_antag_datum() and remove_all_antag_datums() mind procs for the antag datum to handle its own removal and deletion.