formatting

This commit is contained in:
shayebeadlingkl 2024-05-01 12:10:05 -04:00
parent 11f36c14de
commit f2098c8e9e

View File

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