Fix Pokemon icon positioning
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|