From b33fc676a775c402819e6879dd61af24eb1e3c57 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:26:15 -0700 Subject: [PATCH] Apply Biome unsafe fixes --- src/data/balance/pokemon-evolutions.ts | 5 +++-- src/field/pokemon.ts | 2 +- src/modifier/modifier.ts | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/data/balance/pokemon-evolutions.ts b/src/data/balance/pokemon-evolutions.ts index cfe4ac35f9d..5d7426104c7 100644 --- a/src/data/balance/pokemon-evolutions.ts +++ b/src/data/balance/pokemon-evolutions.ts @@ -260,11 +260,12 @@ export class SpeciesFormEvolution { } this.desc = strings .filter(str => str !== "") - .map((str, index, arr) => { + .map((str, index) => { if (index === 0) { len = str.length; return str; - } else if (len + str.length > 60) { + } + if (len + str.length > 60) { len = str.length; return "\n" + str[0].toLowerCase() + str.slice(1); } diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 7cb193c94ce..b31b3bf280f 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -6068,7 +6068,7 @@ export class EnemyPokemon extends Pokemon { let prevolution: SpeciesId; let speciesId = species.speciesId; while ((prevolution = pokemonPrevolutions[speciesId])) { - const evolution = pokemonEvolutions[prevolution].find( + const _evolution = pokemonEvolutions[prevolution].find( pe => pe.speciesId === speciesId && (!pe.evoFormKey || pe.evoFormKey === this.getFormKey()), ); speciesId = prevolution; diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 5f440b8be49..54b7323569a 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -922,7 +922,7 @@ export class EvoTrackerModifier extends PokemonHeldItemModifier { return true; } - getIconStackText(virtual?: boolean): Phaser.GameObjects.BitmapText | null { + getIconStackText(_virtual?: boolean): Phaser.GameObjects.BitmapText | null { const pokemon = this.getPokemon(); const count = (pokemon?.getPersistentTreasureCount() || 0) + this.getStackCount(); @@ -937,7 +937,7 @@ export class EvoTrackerModifier extends PokemonHeldItemModifier { return text; } - getMaxHeldItemCount(pokemon: Pokemon): number { + getMaxHeldItemCount(_pokemon: Pokemon): number { return 999; }