Fix Pokemon icon positioning

This commit is contained in:
Flashfyre 2023-12-08 19:43:14 -05:00
parent d70ddcfe65
commit 35747c3dd6
6 changed files with 2 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 250 B

View File

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 362 B

View File

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 263 B

View File

Before

Width:  |  Height:  |  Size: 343 B

After

Width:  |  Height:  |  Size: 343 B

View File

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

View File

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