Add monotype icons

This commit is contained in:
Flashfyre committed 2024-04-04 12:27:41 -04:00
1 parent 7b85b92a6e
commit fcecad8707
10 files changed
+1763

No files matched your search

+1
View File
@@ -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)