Skip to content

Commit

Permalink
[MIRROR] Improves banned antag replacement logs (#1946)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Improves banned antag replacement logs

---------

Co-authored-by: AnturK <[email protected]>
Co-authored-by: Fikou <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Apr 12, 2024
1 parent 7d38d5c commit 8c976f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8c976f2

Please sign in to comment.