diff --git a/code/modules/antagonists/cult/team_cult.dm b/code/modules/antagonists/cult/team_cult.dm index 8bf7e68cb7b..7301d9abb9a 100644 --- a/code/modules/antagonists/cult/team_cult.dm +++ b/code/modules/antagonists/cult/team_cult.dm @@ -31,14 +31,23 @@ RESTRICT_TYPE(/datum/team/cult) /// Boolean that prevents all_members_timer from being called multiple times var/is_in_transition = FALSE + /// Timer until we do a recount of cultist members + var/recount_timer + +/datum/team/cult/New(list/starting_members) + . = ..() + recount_timer = addtimer(CALLBACK(src, PROC_REF(cult_threshold_check)), 5 MINUTES, TIMER_STOPPABLE|TIMER_DELETE_ME|TIMER_LOOP) + +/datum/team/cult/Destroy(force, ...) + deltimer(recount_timer) + return ..() + /datum/team/cult/create_team(list/starting_members) cult_threshold_check() // Set this ALWAYS before any check_cult_size check, or . = ..() objective_holder.add_objective(/datum/objective/servecult) - addtimer(CALLBACK(src, PROC_REF(cult_threshold_check)), 2 MINUTES) // Check again in 2 minutes for latejoiners - cult_status = NARSIE_DEMANDS_SACRIFICE create_next_sacrifice()