some cleanup

This commit is contained in:
shayebeadlingkl 2024-05-06 14:53:23 -04:00
parent efccef9f1c
commit ec30c8c9a0
2 changed files with 6 additions and 7 deletions

View File

@ -3543,7 +3543,6 @@ export class GameOverPhase extends BattlePhase {
const speciesRibbonCount = this.scene.gameData.incrementRibbonCount(speciesId, forStarter);
// first time classic win, award voucher
if (speciesRibbonCount === 1) {
const rootSpeciesId = species.getRootSpeciesId(true);
this.scene.pushPhase(new ModifierRewardPhase(this.scene, modifierTypes.VOUCHER));
}
}

View File

@ -1086,7 +1086,7 @@ export class GameData {
this.starterData[speciesIdToIncrement].winCount = 0;
}
if(this.starterData[speciesIdToIncrement].winCount === 0 || !this.starterData[speciesIdToIncrement].winCount)
if (!this.starterData[speciesIdToIncrement].winCount)
this.scene.gameData.gameStats.ribbonsOwned++;
const ribbonsInStats: integer = this.scene.gameData.gameStats.ribbonsOwned;