mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Non-random traitor code word assignment.
This commit is contained in:
@@ -150,6 +150,14 @@
|
|||||||
..()
|
..()
|
||||||
return//Traitors will be checked as part of check_extra_completion. Leaving this here as a reminder.
|
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 << "<u><b>The Syndicate provided you with the following information on how to identify their agents:</b></u>"
|
||||||
|
traitor_mob << "<b>Code Phrase</b>: <span class='danger'>[syndicate_code_phrase]</span>"
|
||||||
|
traitor_mob << "<b>Code Response</b>: <span class='danger'>[syndicate_code_response]</span>"
|
||||||
|
traitor_mob.mind.store_memory("<b>Code Phrase</b>: [syndicate_code_phrase]")
|
||||||
|
traitor_mob.mind.store_memory("<b>Code Response</b>: [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()
|
/datum/game_mode/traitor/process()
|
||||||
// Make sure all objectives are processed regularly, so that objectives
|
// Make sure all objectives are processed regularly, so that objectives
|
||||||
// which can be checked mid-round are checked mid-round.
|
// which can be checked mid-round are checked mid-round.
|
||||||
@@ -165,21 +173,7 @@
|
|||||||
killer.set_zeroth_law(law, law_borg)
|
killer.set_zeroth_law(law, law_borg)
|
||||||
killer << "New law: 0. [law]"
|
killer << "New law: 0. [law]"
|
||||||
|
|
||||||
//Begin code phrase.
|
give_codewords(killer)
|
||||||
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("<b>Code Phrase</b>: [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("<b>Code Response</b>: [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.
|
|
||||||
|
|
||||||
|
|
||||||
/datum/game_mode/proc/auto_declare_completion_traitor()
|
/datum/game_mode/proc/auto_declare_completion_traitor()
|
||||||
if(traitors.len)
|
if(traitors.len)
|
||||||
@@ -305,19 +299,7 @@
|
|||||||
traitor_mob.mind.store_memory("<B>Uplink Passcode:</B> [pda_pass] ([R.name] [loc]).")
|
traitor_mob.mind.store_memory("<B>Uplink Passcode:</B> [pda_pass] ([R.name] [loc]).")
|
||||||
//Begin code phrase.
|
//Begin code phrase.
|
||||||
if(!safety)//If they are not a rev. Can be added on to.
|
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:"
|
give_codewords(traitor_mob)
|
||||||
if(prob(80))
|
|
||||||
traitor_mob << "\red Code Phrase: \black [syndicate_code_phrase]"
|
|
||||||
traitor_mob.mind.store_memory("<b>Code Phrase</b>: [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("<b>Code Response</b>: [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.
|
|
||||||
|
|
||||||
// Tell them about people they might want to contact.
|
// Tell them about people they might want to contact.
|
||||||
var/mob/living/carbon/human/M = get_nt_opposed()
|
var/mob/living/carbon/human/M = get_nt_opposed()
|
||||||
|
|||||||
Reference in New Issue
Block a user