From f0422fa7d91956170ceaa685b8fcebb7a8e8f11b Mon Sep 17 00:00:00 2001 From: sirzento Date: Sat, 22 Jun 2024 14:28:10 +0200 Subject: [PATCH] Hotfix: Rare Egg move rate from bought eggs where always common tier rates (#2512) * Hotfix: Rare Egg move rate from bought eggs where always common tier rates * Update src/data/egg.ts. Removed new line Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> --------- Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> --- src/data/egg.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/egg.ts b/src/data/egg.ts index e8c7dadcc0e..c2d6d711e6e 100644 --- a/src/data/egg.ts +++ b/src/data/egg.ts @@ -162,7 +162,6 @@ export class Egg { this._species = eggOptions.species ?? this.rollSpecies(eggOptions.scene); this._overrideHiddenAbility = eggOptions.overrideHiddenAbility ?? false; - this._eggMoveIndex = eggOptions.eggMoveIndex ?? this.rollEggMoveIndex(); // Override egg tier and hatchwaves if species was given if (eggOptions.species) { @@ -175,6 +174,8 @@ export class Egg { this._variantTier = VariantTier.COMMON; } } + // Needs this._tier so it needs to be generated afer the tier override if bought from same species + this._eggMoveIndex = eggOptions.eggMoveIndex ?? this.rollEggMoveIndex(); if (eggOptions.pulled) { this.addEggToGameData(eggOptions.scene); }