Prevent daily runs from breaking due to very (un)lucky RNG (#3841)

This commit is contained in:
NightKev 2024-08-30 20:10:38 -07:00 committed by GitHub
parent d9d147280b
commit 15205c5e00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export function getDailyRunStarters(scene: BattleScene, seed: string): Starter[]
} }
const starterCosts: integer[] = []; 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(Utils.randSeedInt(9 - starterCosts[0], 1));
starterCosts.push(10 - (starterCosts[0] + starterCosts[1])); starterCosts.push(10 - (starterCosts[0] + starterCosts[1]));