Ribbons are also awarded for first clear

This commit is contained in:
Flashfyre 2024-05-07 10:15:40 -04:00
parent b9ce5cfaaa
commit 02b2c2d55b
1 changed files with 3 additions and 2 deletions

View File

@ -3575,10 +3575,11 @@ export class GameOverPhase extends BattlePhase {
this.scene.clearPhaseQueue(); this.scene.clearPhaseQueue();
this.scene.ui.clearText(); this.scene.ui.clearText();
this.handleUnlocks(); this.handleUnlocks();
if (this.victory && !firstClear && success[1]) { if (this.victory && success[1]) {
for (let species of this.firstRibbons) for (let species of this.firstRibbons)
this.scene.unshiftPhase(new RibbonModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PLUS, species)); this.scene.unshiftPhase(new RibbonModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PLUS, species));
this.scene.unshiftPhase(new GameOverModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PREMIUM)); if (!firstClear)
this.scene.unshiftPhase(new GameOverModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PREMIUM));
} }
this.scene.reset(); this.scene.reset();
this.scene.unshiftPhase(new TitlePhase(this.scene)); this.scene.unshiftPhase(new TitlePhase(this.scene));