Ribbons are also awarded for first clear

pull/202/head
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,9 +3575,10 @@ export class GameOverPhase extends BattlePhase {
this.scene.clearPhaseQueue();
this.scene.ui.clearText();
this.handleUnlocks();
if (this.victory && !firstClear && success[1]) {
if (this.victory && success[1]) {
for (let species of this.firstRibbons)
this.scene.unshiftPhase(new RibbonModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PLUS, species));
if (!firstClear)
this.scene.unshiftPhase(new GameOverModifierRewardPhase(this.scene, modifierTypes.VOUCHER_PREMIUM));
}
this.scene.reset();