Merge pull request #11993 from Ghommie/Ghommie-cit704

porting CEV-Eris pickweight procs.
This commit is contained in:
Lin
2020-04-25 18:30:26 +00:00
committed by GitHub
6 changed files with 64 additions and 20 deletions
+1 -1
View File
@@ -253,7 +253,7 @@
var/datum/ai_laws/lawtype
var/list/law_weights = CONFIG_GET(keyed_list/law_weight)
while(!lawtype && law_weights.len)
var/possible_id = pickweightAllowZero(law_weights)
var/possible_id = pickweight(law_weights, 0)
lawtype = lawid_to_type(possible_id)
if(!lawtype)
law_weights -= possible_id