Update Vite and add sound for item rewards

This commit is contained in:
Flashfyre committed 2023-10-25 23:15:54 -04:00
1 parent c0e1c3bde7
commit 23a21af173
9 files changed
+386 -418

No files matched your search

+4 -1
View File
@@ -2150,7 +2150,10 @@ export class ModifierRewardPhase extends BattlePhase {
const newModifier = this.modifierType.newModifier();
this.scene.addModifier(newModifier, true).then(() => this.scene.ui.showText(`You received\n${newModifier.type.name}!`, null, () => this.end(), null, true));
this.scene.addModifier(newModifier).then(() => {
this.scene.playSoundWithoutBgm('item_fanfare');
this.scene.ui.showText(`You received\n${newModifier.type.name}!`, null, () => this.end(), null, true);
});
}
}