add formatting to gold display

This commit is contained in:
2023-04-02 21:54:11 +02:00
parent eb4b0fba00
commit 56407505ea
5 changed files with 19 additions and 4 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import type {GuildUpgrade} from "@/classes/GuildUpgrade";
import {AdventurerCapacityUpgrade} from "@/classes/guildUpgrades/AdventurerCapacityUpgrade";
import formatGold from "@/classes/NumberMagic";
export class Guild {
gold: number;
@@ -30,7 +31,7 @@ export class Guild {
} else {
const newCost = this.getUpgradeCost();
if (newCost === null) return;
this.displayUpgradeCost = newCost;
this.displayUpgradeCost = formatGold(newCost);
this.upgradeCost = newCost;
}
}