Add monotype icons
This commit is contained in:
1 parent
7b85b92a6e
commit
fcecad8707
10 files changed
+1763
No files matched your search
@@ -206,6 +206,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
||||
this.shinyIcon.setVisible(pokemon.isShiny());
|
||||
|
||||
const types = pokemon.getTypes(true);
|
||||
this.type1Icon.setTexture(`pbinfo_${this.player ? 'player' : 'enemy'}_type${types.length > 1 ? '1' : ''}`);
|
||||
this.type1Icon.setFrame(Type[types[0]].toLowerCase());
|
||||
this.type2Icon.setVisible(types.length > 1);
|
||||
if (types.length > 1)
|
||||
|
||||
Reference in new issue
Block a user