Fix not updating legendary and mythical Pokemon seen stats
This commit is contained in:
parent
dcded952d5
commit
daba4e9482
|
@ -1000,6 +1000,10 @@ export class GameData {
|
||||||
if (incrementCount) {
|
if (incrementCount) {
|
||||||
dexEntry.seenCount++;
|
dexEntry.seenCount++;
|
||||||
this.gameStats.pokemonSeen++;
|
this.gameStats.pokemonSeen++;
|
||||||
|
if (!trainer && pokemon.species.pseudoLegendary || pokemon.species.legendary)
|
||||||
|
this.gameStats.legendaryPokemonSeen++;
|
||||||
|
else if (!trainer && pokemon.species.mythical)
|
||||||
|
this.gameStats.mythicalPokemonSeen++;
|
||||||
if (!trainer && pokemon.isShiny())
|
if (!trainer && pokemon.isShiny())
|
||||||
this.gameStats.shinyPokemonSeen++;
|
this.gameStats.shinyPokemonSeen++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue