Fix some bugs and add seen Pokemon to starter screen
This commit is contained in:
1 parent
22054dddd5
commit
2f8df43db8
10 files changed
+80
-38
No files matched your search
@@ -860,7 +860,7 @@ export class GameData {
|
||||
} while (pokemonPrevolutions.hasOwnProperty(speciesId) && (speciesId = pokemonPrevolutions[speciesId]));
|
||||
}
|
||||
|
||||
getSpeciesDefaultDexAttr(species: PokemonSpecies): bigint {
|
||||
getSpeciesDefaultDexAttr(species: PokemonSpecies, forSeen: boolean = false): bigint {
|
||||
let ret = 0n;
|
||||
const dexEntry = this.dexData[species.speciesId];
|
||||
const attr = dexEntry.caughtAttr;
|
||||
|
||||
@@ -10,6 +10,8 @@ export class GameStats {
|
||||
public highestEndlessWave: integer;
|
||||
public highestLevel: integer;
|
||||
public highestMoney: integer;
|
||||
public highestDamage: integer;
|
||||
public highestHeal: integer;
|
||||
public pokemonSeen: integer;
|
||||
public pokemonDefeated: integer;
|
||||
public pokemonCaught: integer;
|
||||
@@ -40,6 +42,8 @@ export class GameStats {
|
||||
this.highestEndlessWave = source?.highestEndlessWave || 0;
|
||||
this.highestLevel = source?.highestLevel || 0;
|
||||
this.highestMoney = source?.highestMoney || 0;
|
||||
this.highestDamage = source?.highestDamage || 0;
|
||||
this.highestHeal = source?.highestHeal || 0;
|
||||
this.pokemonSeen = source?.pokemonSeen || 0;
|
||||
this.pokemonDefeated = source?.pokemonDefeated || 0;
|
||||
this.pokemonCaught = source?.pokemonCaught || 0;
|
||||
|
||||
Reference in new issue
Block a user