mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +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
|
this.desc = strings
|
||||||
.filter(str => str !== "")
|
.filter(str => str !== "")
|
||||||
.map((str, index, arr) => {
|
.map((str, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
len = str.length;
|
len = str.length;
|
||||||
return str;
|
return str;
|
||||||
} else if (len + str.length > 60) {
|
}
|
||||||
|
if (len + str.length > 60) {
|
||||||
len = str.length;
|
len = str.length;
|
||||||
return "\n" + str[0].toLowerCase() + str.slice(1);
|
return "\n" + str[0].toLowerCase() + str.slice(1);
|
||||||
}
|
}
|
||||||
|
@ -6068,7 +6068,7 @@ export class EnemyPokemon extends Pokemon {
|
|||||||
let prevolution: SpeciesId;
|
let prevolution: SpeciesId;
|
||||||
let speciesId = species.speciesId;
|
let speciesId = species.speciesId;
|
||||||
while ((prevolution = pokemonPrevolutions[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()),
|
pe => pe.speciesId === speciesId && (!pe.evoFormKey || pe.evoFormKey === this.getFormKey()),
|
||||||
);
|
);
|
||||||
speciesId = prevolution;
|
speciesId = prevolution;
|
||||||
|
@ -922,7 +922,7 @@ export class EvoTrackerModifier extends PokemonHeldItemModifier {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getIconStackText(virtual?: boolean): Phaser.GameObjects.BitmapText | null {
|
getIconStackText(_virtual?: boolean): Phaser.GameObjects.BitmapText | null {
|
||||||
const pokemon = this.getPokemon();
|
const pokemon = this.getPokemon();
|
||||||
|
|
||||||
const count = (pokemon?.getPersistentTreasureCount() || 0) + this.getStackCount();
|
const count = (pokemon?.getPersistentTreasureCount() || 0) + this.getStackCount();
|
||||||
@ -937,7 +937,7 @@ export class EvoTrackerModifier extends PokemonHeldItemModifier {
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
getMaxHeldItemCount(pokemon: Pokemon): number {
|
getMaxHeldItemCount(_pokemon: Pokemon): number {
|
||||||
return 999;
|
return 999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user