mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2026-02-14 12:22:42 +00:00
Chest modal
This commit is contained in:
@@ -27,8 +27,18 @@ export class GameModalLauncher {
|
||||
GameModalWindowTypes.LevelUp,
|
||||
{ availableUpgrades: Array.from(this.upgrader.getAvailableUpgrades()), translationData: this.translationData }
|
||||
);
|
||||
this.gamePauser.resume();
|
||||
this.upgrader.upgradeSkill(skillToUpgrade);
|
||||
this.gamePauser.resume();
|
||||
}
|
||||
|
||||
public async showChestModal(): Promise<void> {
|
||||
this.gamePauser.pause();
|
||||
const skillToUpgrade: UpgradeType = await this.modalWindowManager.showModal<LevelUpModalWindowParams, UpgradeType>(
|
||||
GameModalWindowTypes.Chest,
|
||||
{ availableUpgrades: Array.from(this.upgrader.getAvailableUpgrades()), translationData: this.translationData }
|
||||
);
|
||||
this.upgrader.upgradeSkill(skillToUpgrade);
|
||||
this.gamePauser.resume();
|
||||
}
|
||||
|
||||
public async showPauseModal(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user