mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
Run biome
This commit is contained in:
parent
3a5c932a31
commit
10a69a2387
@ -626,10 +626,7 @@ export class StarterSummary extends Phaser.GameObjects.Container {
|
|||||||
// We will only update the sprite if there is a change to form, shiny/variant
|
// We will only update the sprite if there is a change to form, shiny/variant
|
||||||
// or gender for species with gender sprite differences
|
// or gender for species with gender sprite differences
|
||||||
const shouldUpdateSprite =
|
const shouldUpdateSprite =
|
||||||
(species.genderDiffs && female != null)
|
(species.genderDiffs && female != null) || formIndex != null || shiny != null || variant != null;
|
||||||
|| formIndex != null
|
|
||||||
|| shiny != null
|
|
||||||
|| variant != null;
|
|
||||||
|
|
||||||
this.updateCandyTooltip();
|
this.updateCandyTooltip();
|
||||||
|
|
||||||
|
@ -1461,9 +1461,7 @@ export class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
if (this.canCycleTera) {
|
if (this.canCycleTera) {
|
||||||
const speciesForm = getPokemonSpeciesForm(this.lastSpecies.speciesId, starterPreferences.formIndex ?? 0);
|
const speciesForm = getPokemonSpeciesForm(this.lastSpecies.speciesId, starterPreferences.formIndex ?? 0);
|
||||||
const newTera =
|
const newTera =
|
||||||
speciesForm.type1 === this.teraCursor && speciesForm.type2 != null
|
speciesForm.type1 === this.teraCursor && speciesForm.type2 != null ? speciesForm.type2 : speciesForm.type1;
|
||||||
? speciesForm.type2
|
|
||||||
: speciesForm.type1;
|
|
||||||
this.setNewTeraType(speciesId, newTera);
|
this.setNewTeraType(speciesId, newTera);
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user