mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-12 03:12:18 +02:00
some cleanup
This commit is contained in:
parent
efccef9f1c
commit
ec30c8c9a0
@ -3543,7 +3543,6 @@ export class GameOverPhase extends BattlePhase {
|
|||||||
const speciesRibbonCount = this.scene.gameData.incrementRibbonCount(speciesId, forStarter);
|
const speciesRibbonCount = this.scene.gameData.incrementRibbonCount(speciesId, forStarter);
|
||||||
// first time classic win, award voucher
|
// first time classic win, award voucher
|
||||||
if (speciesRibbonCount === 1) {
|
if (speciesRibbonCount === 1) {
|
||||||
const rootSpeciesId = species.getRootSpeciesId(true);
|
|
||||||
this.scene.pushPhase(new ModifierRewardPhase(this.scene, modifierTypes.VOUCHER));
|
this.scene.pushPhase(new ModifierRewardPhase(this.scene, modifierTypes.VOUCHER));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1086,7 +1086,7 @@ export class GameData {
|
|||||||
this.starterData[speciesIdToIncrement].winCount = 0;
|
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++;
|
this.scene.gameData.gameStats.ribbonsOwned++;
|
||||||
|
|
||||||
const ribbonsInStats: integer = this.scene.gameData.gameStats.ribbonsOwned;
|
const ribbonsInStats: integer = this.scene.gameData.gameStats.ribbonsOwned;
|
||||||
|
Loading…
Reference in New Issue
Block a user