Merge pull request #11472 from Couls/code-phrase

Remove non-manifest names from the code phrases
This commit is contained in:
variableundefined
2019-05-17 19:17:01 +08:00
committed by GitHub
+1 -5
View File
@@ -161,12 +161,8 @@ GLOBAL_VAR(syndicate_code_response) //Code response for traitors.
if(1)//1 and 2 can only be selected once each to prevent more than two specific names/places/etc.
switch(rand(1,2))//Mainly to add more options later.
if(1)
if(names.len&&prob(70))
if(names.len)
code_phrase += pick(names)
else
code_phrase += pick(pick(GLOB.first_names_male,GLOB.first_names_female))
code_phrase += " "
code_phrase += pick(GLOB.last_names)
if(2)
code_phrase += pick(GLOB.joblist)//Returns a job.
safety -= 1