porting CEV-Eris pickweight procs.

This commit is contained in:
Ghommie
2020-04-23 21:47:54 +02:00
parent debbd3edab
commit de531bd047
6 changed files with 64 additions and 20 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ SUBSYSTEM_DEF(vote)
picked = S
runnable_storytellers[S] *= round(stored_gamemode_votes[initial(S.name)]*100000,1)
if(!picked)
picked = pickweightAllowZero(runnable_storytellers)
picked = pickweight(runnable_storytellers, 0)
GLOB.dynamic_storyteller_type = picked
if("map")
var/datum/map_config/VM = config.maplist[.]