From cdc696c5063603e92e562cf6fdff6797f46b7020 Mon Sep 17 00:00:00 2001 From: Chris H Date: Sun, 14 Sep 2025 11:13:29 -0400 Subject: [PATCH] Only show event cost before you sign up for the event --- .../adventure/data/AdventureEventData.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/forge-gui-mobile/src/forge/adventure/data/AdventureEventData.java b/forge-gui-mobile/src/forge/adventure/data/AdventureEventData.java index dcabc8b1ffe..a47591b6684 100644 --- a/forge-gui-mobile/src/forge/adventure/data/AdventureEventData.java +++ b/forge-gui-mobile/src/forge/adventure/data/AdventureEventData.java @@ -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)) {