Allowed preventing dynamic storytellers if too common recently

This commit is contained in:
Putnam
2019-12-25 16:16:11 -08:00
parent 72cb63ae7e
commit 5764ccef1b
4 changed files with 25 additions and 16 deletions
+8 -2
View File
@@ -328,8 +328,14 @@ 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
if(initial(S.flags) & EXTREME_ROUND)
for(var/i in 1 to 3)
if(SSpersistence.saved_storytellers[i] == initial(S.name))
recent_rounds++
if(recent_rounds<2)
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")