Add how much currency the user will lose if they claim a card #287

Merged
Vylpes merged 1 commit from feature/252-currency-label into develop 2024-07-06 19:14:16 +01:00

View file

@ -4,6 +4,7 @@ import CardRarityChances from "../constants/CardRarityChances";
import { DropResult } from "../contracts/SeriesMetadata";
import { CoreClient } from "../client/client";
import AppLogger from "../client/appLogger";
import CardConstants from "../constants/CardConstants";
export default class CardDropHelperMetadata {
public static GetRandomCard(): DropResult | undefined {
@ -105,7 +106,7 @@ export default class CardDropHelperMetadata {
.addComponents(
new ButtonBuilder()
.setCustomId(`claim ${drop.card.id} ${claimId} ${userId}`)
.setLabel("Claim")
.setLabel(`Claim (${CardConstants.ClaimCost} 🪙)`)
.setStyle(ButtonStyle.Primary)
.setDisabled(disabled),
new ButtonBuilder()
@ -113,4 +114,4 @@ export default class CardDropHelperMetadata {
.setLabel("Reroll")
.setStyle(ButtonStyle.Secondary));
}
}
}