remove unnecessary logs, update upgrade cost after upgrading

This commit is contained in:
2023-03-19 16:10:10 +01:00
parent 6323b530ca
commit 76fb24a948
3 changed files with 9 additions and 4 deletions
+4
View File
@@ -17,6 +17,10 @@ export class Guild {
this.level += 1;
if (this.level > 7) {
this.displayUpgradeCost = "Max level";
} else {
const newCost = this.getUpgradeCost();
if (newCost === null) return;
this.displayUpgradeCost = newCost;
}
}