From 35747c3dd6cab52128afdd4ef925b58ff2dd8a2d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 8 Dec 2023 19:43:14 -0500 Subject: [PATCH] Fix Pokemon icon positioning --- .../pokemon/icons/{664-meadow.png => 664.png} | Bin .../pokemon/icons/{664s-meadow.png => 664s.png} | Bin .../pokemon/icons/{665-meadow.png => 665.png} | Bin .../pokemon/icons/{665s-meadow.png => 665s.png} | Bin src/modifier/modifier.ts | 2 +- src/ui/party-exp-bar.ts | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename public/images/pokemon/icons/{664-meadow.png => 664.png} (100%) rename public/images/pokemon/icons/{664s-meadow.png => 664s.png} (100%) rename public/images/pokemon/icons/{665-meadow.png => 665.png} (100%) rename public/images/pokemon/icons/{665s-meadow.png => 665s.png} (100%) diff --git a/public/images/pokemon/icons/664-meadow.png b/public/images/pokemon/icons/664.png similarity index 100% rename from public/images/pokemon/icons/664-meadow.png rename to public/images/pokemon/icons/664.png diff --git a/public/images/pokemon/icons/664s-meadow.png b/public/images/pokemon/icons/664s.png similarity index 100% rename from public/images/pokemon/icons/664s-meadow.png rename to public/images/pokemon/icons/664s.png diff --git a/public/images/pokemon/icons/665-meadow.png b/public/images/pokemon/icons/665.png similarity index 100% rename from public/images/pokemon/icons/665-meadow.png rename to public/images/pokemon/icons/665.png diff --git a/public/images/pokemon/icons/665s-meadow.png b/public/images/pokemon/icons/665s.png similarity index 100% rename from public/images/pokemon/icons/665s-meadow.png rename to public/images/pokemon/icons/665s.png diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 7a2ee9e25..b24cf24b3 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -397,7 +397,7 @@ export abstract class PokemonHeldItemModifier extends PersistentModifier { const pokemon = this.getPokemon(scene); const isIconShown = pokemon instanceof PlayerPokemon || scene.currentBattle.seenEnemyPartyMemberIds.has(pokemon.id); const iconAtlasKey = isIconShown ? pokemon.getIconAtlasKey() : 'pokemon_icons_0'; - const pokemonIcon = scene.add.sprite(0, 8, iconAtlasKey); + const pokemonIcon = scene.add.sprite(-2, 10, iconAtlasKey); pokemonIcon.setFrame(pokemon.getIconId()); pokemonIcon.setOrigin(0, 0.5); diff --git a/src/ui/party-exp-bar.ts b/src/ui/party-exp-bar.ts index b9669fbee..ad5663e27 100644 --- a/src/ui/party-exp-bar.ts +++ b/src/ui/party-exp-bar.ts @@ -21,7 +21,7 @@ export default class PartyExpBar extends Phaser.GameObjects.Container { this.add(this.bg); - this.pokemonIcon = this.scene.add.sprite(3, 7, 'pokemon_icons_0'); + this.pokemonIcon = this.scene.add.sprite(1, 9, 'pokemon_icons_0'); this.pokemonIcon.setOrigin(0, 0.5); this.pokemonIcon.setScale(0.5); this.add(this.pokemonIcon);