mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Fix: PagesでDRPWPMが最初のしか出てこない (#5707)
This commit is contained in:
parent
95703f4311
commit
e7f6833185
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue