Rework dex system and add starter IVs
This commit is contained in:
1 parent
4f6f17e63e
commit
b4f2700a59
12 files changed
+326
-422
No files matched your search
@@ -129,9 +129,9 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
if (!this.player) {
|
||||
const speciesOwned = !!pokemon.scene.gameData.getDefaultDexEntry(pokemon.species)?.entry?.caught;
|
||||
this.ownedIcon.setVisible(speciesOwned);
|
||||
if (!pokemon.scene.gameData.getPokemonDexEntry(pokemon)?.caught)
|
||||
const dexEntry = pokemon.scene.gameData.dexData[pokemon.species.speciesId];
|
||||
this.ownedIcon.setVisible(!!dexEntry.caughtAttr);
|
||||
if (!(dexEntry.caughtAttr & pokemon.getDexAttrs()))
|
||||
this.ownedIcon.setTint(0x808080);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user