Refactor modifiers

This commit is contained in:
Flashfyre committed 2023-04-09 19:15:21 -04:00
1 parent 4ec91695f7
commit 15105231ba
14 files changed
+1919 -1551

No files matched your search

+4 -2
View File
@@ -158,6 +158,8 @@ export default class PartyUiHandler extends MessageUiHandler {
selectCallback(this.cursor);
} else if (this.cursor)
(this.scene.getCurrentPhase() as CommandPhase).handleCommand(Command.POKEMON, this.cursor);
if (this.partyUiMode !== PartyUiMode.MODIFIER)
ui.playSelect();
return;
} else {
this.clearOptions();
@@ -396,9 +398,9 @@ class PartySlot extends Phaser.GameObjects.Container {
this.add(slotPb);
const pokemonIcon = this.scene.add.sprite(slotPb.x, slotPb.y, this.pokemon.getIconAtlasKey());
const pokemonIcon = this.scene.add.sprite(slotPb.x, slotPb.y, this.pokemon.species.getIconAtlasKey());
console.log(pokemonIcon)
pokemonIcon.play(this.pokemon.getIconKey());
pokemonIcon.play(this.pokemon.species.getIconKey());
this.slotPokemonIcon = pokemonIcon;
this.add(pokemonIcon);