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
@@ -272,7 +272,7 @@
reports += config.mode_reports[config_tag]
Count++
for(var/i in Count to rand(3,5)) //Between three and five wrong entries on the list.
var/false_report_type = pickweightAllowZero(report_weights)
var/false_report_type = pickweight(report_weights, 0)
report_weights[false_report_type] = 0 //Make it so the same false report won't be selected twice
reports += config.mode_reports[false_report_type]