Why did you check if the gamemode's type is an antagonist datum?

And why did it sort of work too?
I don't understand.
Pooj's copypasting this black magic, smh.
This commit is contained in:
Ghommie
2019-05-22 06:09:18 +02:00
parent d40d9791c4
commit 6bb70297ec
3 changed files with 73 additions and 68 deletions
+15
View File
@@ -97,6 +97,21 @@
main_cult = C.cult_team
..()
/datum/game_mode/cult/process()
if(finished)
return
var/datum/objective/sacrifice/sac_objective = locate() in main_cult.objectives
if(!sac_objective || sac_objective.check_completion())
return
var/datum/mind/sacrificial = sac_objective.get_target()
var/mob/living/t_current = sacrificial.current
if(!sacrificial || !sacrificial.current) //target is gone for good but not sacced.
main_cult.sort_sacrifice(TRUE)
if(QDELETED(sac_objective.target_current) || sac_objective.target_current != t_current) //target is now a different mob (monkey, simple mob)
sac_objective.sac_image = t_current.get_sac_image()
sac_objective.target_current = t_current
sac_objective.update_explanation_text()
/datum/game_mode/proc/add_cultist(datum/mind/cult_mind, stun , equip = FALSE) //BASE
if (!istype(cult_mind))
return FALSE