some cleanup
parent
efccef9f1c
commit
ec30c8c9a0
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue