Apply Biome unsafe fixes

This commit is contained in:
NightKev 2025-06-12 20:26:15 -07:00
parent ad89d48072
commit b33fc676a7
3 changed files with 6 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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;
}