Greentexting as a traitor hardcore random now gives you hardcore random points (#60957)

Every time a traitor greentexts with hardcore random, it runtimes and returns. I think it's because of the escape alive objective.

I've tested this before and after several times just to be completely sure this fixes it.
This commit is contained in:
John Willard
2021-08-29 21:18:02 -03:00
committed by GitHub
parent 3f13258e1f
commit 7cb4bb59f9
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -189,10 +189,8 @@
if(human_mob.mind && (human_mob.mind.special_role || length(human_mob.mind.antag_datums) > 0))
var/didthegamerwin = TRUE
for(var/a in human_mob.mind.antag_datums)
var/datum/antagonist/antag_datum = a
for(var/i in antag_datum.objectives)
var/datum/objective/objective_datum = i
for(var/datum/antagonist/antag_datums as anything in human_mob.mind.antag_datums)
for(var/datum/objective/objective_datum as anything in antag_datums.objectives)
if(!objective_datum.check_completion())
didthegamerwin = FALSE
if(!didthegamerwin)
@@ -107,7 +107,7 @@
// for(in...to) loops iterate inclusively, so to reach objective_limit we need to loop to objective_limit - 1
// This does not give them 1 fewer objectives than intended.
for(var/i in objective_count to objective_limit - 1)
objectives += forge_single_generic_objective()
forge_single_generic_objective()
/**