mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 10:56:35 +01:00
Fix: PagesでDRPWPMが最初のしか出てこない (#5707)
This commit is contained in:
parent
26b193d39d
commit
85971d3d88
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ export class ASEvaluator {
|
||||||
const r = seedrandom(`${day}:${block.id}`)() * totalFactor;
|
const r = seedrandom(`${day}:${block.id}`)() * totalFactor;
|
||||||
let stackedFactor = 0;
|
let stackedFactor = 0;
|
||||||
for (const x of xs) {
|
for (const x of xs) {
|
||||||
if (r >= stackedFactor && r <= x.factor) {
|
if (r >= stackedFactor && r <= stackedFactor + x.factor) {
|
||||||
return x.text;
|
return x.text;
|
||||||
} else {
|
} else {
|
||||||
stackedFactor += x.factor;
|
stackedFactor += x.factor;
|
||||||
|
|
Loading…
Reference in a new issue