Skip to content

Commit

Permalink
Adds Additional Logging for AutoTraitor Game mode (#27764)
Browse files Browse the repository at this point in the history
* Logging addition

* Update code/game/gamemodes/autotraitor/autotraitor.dm

Co-authored-by: Adri <[email protected]>
Signed-off-by: Burzah <[email protected]>

* Log update

---------

Signed-off-by: Burzah <[email protected]>
Co-authored-by: Adri <[email protected]>
  • Loading branch information
Burzah and Miraviel authored Jan 6, 2025
1 parent dc155ee commit 14f4fee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/gamemodes/autotraitor/autotraitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,19 @@
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)
var/mob/living/new_traitor = new_traitor_mind.current

to_chat(new_traitor, "<span class='danger'>ATTENTION:</span> 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)

Expand Down Expand Up @@ -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()

0 comments on commit 14f4fee

Please sign in to comment.