mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Prevent daily runs from breaking due to very (un)lucky RNG (#3841)
This commit is contained in:
parent
d9d147280b
commit
15205c5e00
@ -40,7 +40,7 @@ export function getDailyRunStarters(scene: BattleScene, seed: string): Starter[]
|
||||
}
|
||||
|
||||
const starterCosts: integer[] = [];
|
||||
starterCosts.push(Math.round(3.5 + Math.abs(Utils.randSeedGauss(1))));
|
||||
starterCosts.push(Math.min(Math.round(3.5 + Math.abs(Utils.randSeedGauss(1))), 8));
|
||||
starterCosts.push(Utils.randSeedInt(9 - starterCosts[0], 1));
|
||||
starterCosts.push(10 - (starterCosts[0] + starterCosts[1]));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user