Actually fixes cultists getting multiple summon objectives (#12485)

This commit is contained in:
SteelSlayer
2019-10-03 13:50:37 -04:00
committed by variableundefined
parent 40abb4eb2f
commit 862ed0b4fd
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ var/global/list/all_cults = list()
..()
/datum/game_mode/cult/proc/memorize_cult_objectives(var/datum/mind/cult_mind)
for(var/obj_count = 1,obj_count <= objectives.len,obj_count++)
/datum/game_mode/cult/proc/memorize_cult_objectives(datum/mind/cult_mind)
for(var/obj_count in 1 to objectives.len)
var/explanation
switch(objectives[obj_count])
if("survive")
@@ -42,6 +42,8 @@
additional_phase()
/datum/game_mode/cult/proc/additional_phase()
if(objectives.Find("eldergod") || objectives.Find("slaughter"))
return
current_objective++
message_admins("Picking a new Cult objective.")
@@ -62,6 +64,7 @@
message_admins("There are less than 4 cultists! [SSticker.cultdat.entity_name] objective unlocked.")
log_admin("There are less than 4 cultists! [SSticker.cultdat.entity_name] objective unlocked.")
gtfo_phase()
return
if(!sacrificed.len && (new_objective != "sacrifice"))
sacrifice_target = null