Update code/game/gamemodes/revolution/revolution.dm (#7686)
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
var/finished = 0
|
||||
var/check_counter = 0
|
||||
var/max_headrevs = 3
|
||||
var/completioncheckstart
|
||||
var/datum/team/revolution/revolution
|
||||
var/list/datum/mind/headrev_candidates = list()
|
||||
var/end_when_heads_dead = TRUE
|
||||
@@ -61,6 +62,8 @@
|
||||
setup_error = "Not enough headrev candidates"
|
||||
return FALSE
|
||||
|
||||
completioncheckstart = world.time + 20 MINUTES
|
||||
|
||||
return TRUE
|
||||
|
||||
/datum/game_mode/revolution/post_setup()
|
||||
@@ -114,7 +117,7 @@
|
||||
/datum/game_mode/revolution/process()
|
||||
check_counter++
|
||||
if(check_counter >= 5)
|
||||
if(!finished)
|
||||
if(!finished && world.time >= completioncheckstart)
|
||||
SSticker.mode.check_win()
|
||||
check_counter = 0
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user