formatting

pull/370/head
shayebeadlingkl 2024-05-01 12:10:05 -04:00
parent 11f36c14de
commit f2098c8e9e
1 changed files with 6 additions and 5 deletions

View File

@ -1082,13 +1082,14 @@ export class GameData {
incrementStarterWinCount(species: PokemonSpecies):void {
const speciesWinCount = this.starterData[species.speciesId].winCount;
if(Number.isNaN(speciesWinCount))
this.starterData[species.speciesId].winCount = 0;
this.starterData[species.speciesId].winCount++;
console.log(this.starterData[species.speciesId].winCount);
if(Number.isNaN(speciesWinCount)) {
this.starterData[species.speciesId].winCount = 0;
}
this.starterData[species.speciesId].winCount++;
console.log(this.starterData[species.speciesId].winCount);
}
addStarterCandy(species: PokemonSpecies, count: integer): void {
this.scene.candyBar.showStarterSpeciesCandy(species.speciesId, count);
this.starterData[species.speciesId].candyCount += count;