try recent round removal again

This commit is contained in:
Putnam
2020-01-01 00:26:55 -08:00
parent 42347fd5ea
commit 6bbdd5d576
2 changed files with 9 additions and 3 deletions
+7 -2
View File
@@ -377,8 +377,13 @@ SUBSYSTEM_DEF(vote)
if("dynamic")
for(var/T in config.storyteller_cache)
var/datum/dynamic_storyteller/S = T
choices.Add(initial(S.name))
choice_descs.Add(initial(S.desc))
var/recent_rounds = 0
for(var/i in SSpersistence.saved_storytellers.len)
if(SSpersistence.saved_storytellers[i] == initial(S.name))
recent_rounds++
if(recent_rounds<initial(S.weight))
choices.Add(initial(S.name))
choice_descs.Add(initial(S.desc))
choices.Add("Secret")
choice_descs.Add("Standard secret. Switches mode if it wins.")
if("custom")