Don't increment seen shiny count for trainers

This commit is contained in:
Flashfyre committed 2024-04-22 11:28:13 -04:00
1 parent 184a028e66
commit 26b1bb5f03
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -993,13 +993,13 @@ export class GameData {
this.starterData = starterData;
}
setPokemonSeen(pokemon: Pokemon, incrementCount: boolean = true): void {
setPokemonSeen(pokemon: Pokemon, incrementCount: boolean = true, trainer: boolean = false): void {
const dexEntry = this.dexData[pokemon.species.speciesId];
dexEntry.seenAttr |= pokemon.getDexAttr();
if (incrementCount) {
dexEntry.seenCount++;
this.gameStats.pokemonSeen++;
if (pokemon.isShiny())
if (!trainer && pokemon.isShiny())
this.gameStats.shinyPokemonSeen++;
}
}