diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm
index 7d7651a362..899f7f42cc 100644
--- a/code/game/gamemodes/traitor/traitor.dm
+++ b/code/game/gamemodes/traitor/traitor.dm
@@ -150,6 +150,14 @@
..()
return//Traitors will be checked as part of check_extra_completion. Leaving this here as a reminder.
+/datum/game_mode/proc/give_codewords(mob/living/traitor_mob)
+ traitor_mob << "The Syndicate provided you with the following information on how to identify their agents:"
+ traitor_mob << "Code Phrase: [syndicate_code_phrase]"
+ traitor_mob << "Code Response: [syndicate_code_response]"
+ traitor_mob.mind.store_memory("Code Phrase: [syndicate_code_phrase]")
+ traitor_mob.mind.store_memory("Code Response: [syndicate_code_response]")
+ traitor_mob << "Use the code words, preferably in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe."
+
/datum/game_mode/traitor/process()
// Make sure all objectives are processed regularly, so that objectives
// which can be checked mid-round are checked mid-round.
@@ -165,21 +173,7 @@
killer.set_zeroth_law(law, law_borg)
killer << "New law: 0. [law]"
- //Begin code phrase.
- killer << "The Syndicate provided you with the following information on how to identify their agents:"
- if(prob(80))
- killer << "\red Code Phrase: \black [syndicate_code_phrase]"
- killer.mind.store_memory("Code Phrase: [syndicate_code_phrase]")
- else
- killer << "Unfortunately, the Syndicate did not provide you with a code phrase."
- if(prob(80))
- killer << "\red Code Response: \black [syndicate_code_response]"
- killer.mind.store_memory("Code Response: [syndicate_code_response]")
- else
- killer << "Unfortunately, the Syndicate did not provide you with a code response."
- killer << "Use the code words in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe."
- //End code phrase.
-
+ give_codewords(killer)
/datum/game_mode/proc/auto_declare_completion_traitor()
if(traitors.len)
@@ -305,19 +299,7 @@
traitor_mob.mind.store_memory("Uplink Passcode: [pda_pass] ([R.name] [loc]).")
//Begin code phrase.
if(!safety)//If they are not a rev. Can be added on to.
- traitor_mob << "The Syndicate provided you with the following information on how to identify other agents:"
- if(prob(80))
- traitor_mob << "\red Code Phrase: \black [syndicate_code_phrase]"
- traitor_mob.mind.store_memory("Code Phrase: [syndicate_code_phrase]")
- else
- traitor_mob << "Unfortunetly, the Syndicate did not provide you with a code phrase."
- if(prob(80))
- traitor_mob << "\red Code Response: \black [syndicate_code_response]"
- traitor_mob.mind.store_memory("Code Response: [syndicate_code_response]")
- else
- traitor_mob << "Unfortunately, the Syndicate did not provide you with a code response."
- traitor_mob << "Use the code words in the order provided, during regular conversation, to identify other agents. Proceed with caution, however, as everyone is a potential foe."
- //End code phrase.
+ give_codewords(traitor_mob)
// Tell them about people they might want to contact.
var/mob/living/carbon/human/M = get_nt_opposed()