Chest modal

This commit is contained in:
Martin
2023-01-02 08:57:59 +01:00
parent 756e9db049
commit bbae1a3145
12 changed files with 1714 additions and 14 deletions

View File

@@ -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> {