From 15205c5e004349c5bf7ab35e2f2aa2b37db0e156 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Fri, 30 Aug 2024 20:10:38 -0700 Subject: [PATCH] Prevent daily runs from breaking due to very (un)lucky RNG (#3841) --- src/data/daily-run.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/daily-run.ts b/src/data/daily-run.ts index 0a02defe052..370b13ea3a3 100644 --- a/src/data/daily-run.ts +++ b/src/data/daily-run.ts @@ -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]));