Only show event cost before you sign up for the event

This commit is contained in:
Chris H
2025-09-14 11:13:29 -04:00
parent 64897f1ab4
commit cdc696c506

View File

@@ -607,15 +607,18 @@ public class AdventureEventData implements Serializable {
description += "Block: " + getCardBlock() + "\n";
description += "Boosters: " + String.join(", ", packConfiguration) + "\n";
description += "Competition Style: " + participants.length + " players, matches played as best of " + eventRules.gamesPerMatch + ", " + (getPairingDescription()) + "\n\n";
description += String.format("Pay 1 Entry Fee\n- Gold %d[][+Gold][BLACK]\n- Mana Shards %d[][+Shards][BLACK]\n", Math.round(eventRules.goldToEnter * townPriceModifier), Math.round(eventRules.shardsToEnter * townPriceModifier));
if (eventRules.acceptsBronzeChallengeCoin) {
description += "- Bronze Challenge Coin [][+BronzeChallengeCoin][BLACK]\n\n";
} else if (eventRules.acceptsSilverChallengeCoin) {
description += "- Silver Challenge Coin [][+SilverChallengeCoin][BLACK]\n\n";
} else if (eventRules.acceptsChallengeCoin) {
description += "- Gold Challenge Coin [][+ChallengeCoin][BLACK]\n\n";
} else {
description += "\n";
if (eventStatus == AdventureEventController.EventStatus.Available) {
description += String.format("Pay 1 Entry Fee\n- Gold %d[][+Gold][BLACK]\n- Mana Shards %d[][+Shards][BLACK]\n", Math.round(eventRules.goldToEnter * townPriceModifier), Math.round(eventRules.shardsToEnter * townPriceModifier));
if (eventRules.acceptsBronzeChallengeCoin) {
description += "- Bronze Challenge Coin [][+BronzeChallengeCoin][BLACK]\n\n";
} else if (eventRules.acceptsSilverChallengeCoin) {
description += "- Silver Challenge Coin [][+SilverChallengeCoin][BLACK]\n\n";
} else if (eventRules.acceptsChallengeCoin) {
description += "- Gold Challenge Coin [][+ChallengeCoin][BLACK]\n\n";
} else {
description += "\n";
}
}
description += String.format("Prizes\nChampion: Keep drafted deck\n2+ round wins: Challenge Coin \n1+ round wins: %s Booster, %s Booster\n0 round wins: %s Booster", rewardPacks[0].getComment(), rewardPacks[1].getComment(), rewardPacks[2].getComment());
} else if (format.equals(AdventureEventController.EventFormat.Jumpstart)) {