Merge branch 'pagefaultgames:main' into patch-4

This commit is contained in:
Lugiad 2024-04-25 19:50:07 +02:00 committed by GitHub
commit 385232fba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"name": "pokemon-rogue-battle",
"private": true,
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"scripts": {
"start": "vite",

View File

@ -1000,6 +1000,10 @@ export class GameData {
if (incrementCount) {
dexEntry.seenCount++;
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())
this.gameStats.shinyPokemonSeen++;
}