Update Vite and add sound for item rewards
This commit is contained in:
1 parent
c0e1c3bde7
commit
23a21af173
9 files changed
+386
-418
No files matched your search
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user