0
0

Fix: PagesでDRPWPMが最初のしか出てこない (#5707)

This commit is contained in:
MeiMei 2020-01-19 03:38:59 +09:00 committed by syuilo
parent 26b193d39d
commit 85971d3d88

View File

@ -195,7 +195,7 @@ export class ASEvaluator {
const r = seedrandom(`${day}:${block.id}`)() * totalFactor;
let stackedFactor = 0;
for (const x of xs) {
if (r >= stackedFactor && r <= x.factor) {
if (r >= stackedFactor && r <= stackedFactor + x.factor) {
return x.text;
} else {
stackedFactor += x.factor;