Skip to content

Commit

Permalink
Moving around the timer (#27734)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGamerL authored Dec 30, 2024
1 parent 6bf673d commit 14445fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/modules/antagonists/cult/team_cult.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ RESTRICT_TYPE(/datum/team/cult)
/// 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 ..()
Expand All @@ -51,6 +47,7 @@ RESTRICT_TYPE(/datum/team/cult)
cult_status = NARSIE_DEMANDS_SACRIFICE

create_next_sacrifice()
recount_timer = addtimer(CALLBACK(src, PROC_REF(cult_threshold_check)), 5 MINUTES, TIMER_STOPPABLE|TIMER_DELETE_ME|TIMER_LOOP)

for(var/datum/mind/M as anything in starting_members)
var/datum/antagonist/cultist/cultist = M.has_antag_datum(/datum/antagonist/cultist)
Expand Down

0 comments on commit 14445fc

Please sign in to comment.