mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-17 09:47:43 +00:00
[Bug] Game Stats Sub-Legendary NaN bug for new game files (#3122)
* Bug Fix * Update src/system/game-stats.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * Fixing a test * Revert "Fixing a test" This reverts commit 1bdbe2da5a7e29dce17911eb7c1084de44328573. * Test Re-Run --------- Co-authored-by: Frutescens <info@laptop> Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
f3a98efd39
commit
3c93aa6d36
@ -58,9 +58,9 @@ export class GameStats {
|
|||||||
this.pokemonCaught = source?.pokemonCaught || 0;
|
this.pokemonCaught = source?.pokemonCaught || 0;
|
||||||
this.pokemonHatched = source?.pokemonHatched || 0;
|
this.pokemonHatched = source?.pokemonHatched || 0;
|
||||||
// Currently handled by migration
|
// Currently handled by migration
|
||||||
this.subLegendaryPokemonSeen = source?.subLegendaryPokemonSeen;
|
this.subLegendaryPokemonSeen = source?.subLegendaryPokemonSeen ?? 0;
|
||||||
this.subLegendaryPokemonCaught = source?.subLegendaryPokemonCaught;
|
this.subLegendaryPokemonCaught = source?.subLegendaryPokemonCaught ?? 0;
|
||||||
this.subLegendaryPokemonHatched = source?.subLegendaryPokemonHatched;
|
this.subLegendaryPokemonHatched = source?.subLegendaryPokemonHatched ?? 0;
|
||||||
this.legendaryPokemonSeen = source?.legendaryPokemonSeen || 0;
|
this.legendaryPokemonSeen = source?.legendaryPokemonSeen || 0;
|
||||||
this.legendaryPokemonCaught = source?.legendaryPokemonCaught || 0;
|
this.legendaryPokemonCaught = source?.legendaryPokemonCaught || 0;
|
||||||
this.legendaryPokemonHatched = source?.legendaryPokemonHatched || 0;
|
this.legendaryPokemonHatched = source?.legendaryPokemonHatched || 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user