mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-29 04:52:43 +02:00
Apply Biome unsafe fixes
This commit is contained in:
parent
ad89d48072
commit
b33fc676a7
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user