From 6fb2c2e75734423ad9f1ce36a2167f8963f85589 Mon Sep 17 00:00:00 2001 From: MarcinSc Date: Mon, 27 May 2024 14:16:25 +0700 Subject: [PATCH] Migrated Wraith cards in set 18 to hjson --- .../lotro/cards/set18/wraith/Card18_133.java | 81 ----------- .../card-stubs/set18-Ringwraith.hjson | 88 ----------- .../official/set18/set18-Ringwraith.hjson | 137 ++++++++++++++++++ .../cards/official/set18/set18-wraith.hjson | 38 ----- 4 files changed, 137 insertions(+), 207 deletions(-) delete mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/wraith/Card18_133.java delete mode 100644 gemp-lotr/gemp-lotr-cards/src/main/resources/card-stubs/set18-Ringwraith.hjson create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-Ringwraith.hjson delete mode 100644 gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-wraith.hjson diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/wraith/Card18_133.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/wraith/Card18_133.java deleted file mode 100644 index 0a72c6375..000000000 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/wraith/Card18_133.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.gempukku.lotro.cards.set18.wraith; - -import com.gempukku.lotro.common.*; -import com.gempukku.lotro.filters.Filters; -import com.gempukku.lotro.game.PhysicalCard; -import com.gempukku.lotro.game.state.LotroGame; -import com.gempukku.lotro.logic.actions.PlayEventAction; -import com.gempukku.lotro.logic.cardtype.AbstractEvent; -import com.gempukku.lotro.logic.effects.AddUntilStartOfPhaseModifierEffect; -import com.gempukku.lotro.logic.effects.ChoiceEffect; -import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect; -import com.gempukku.lotro.logic.effects.RemoveBurdenEffect; -import com.gempukku.lotro.logic.effects.choose.ChooseAndAssignCharacterToMinionEffect; -import com.gempukku.lotro.logic.modifiers.AddKeywordModifier; -import com.gempukku.lotro.logic.modifiers.RemoveKeywordModifier; -import com.gempukku.lotro.logic.timing.Effect; -import com.gempukku.lotro.logic.timing.PlayConditions; - -import java.util.LinkedList; -import java.util.List; - -/** - * Set: Treachery & Deceit - * Side: Shadow - * Culture: Wraith - * Twilight Cost: 0 - * Type: Event • Assignment - * Game Text: Remove a burden to choose one: assign a [WRAITH] minion to a companion who has resistance 0; - * or have a [WRAITH] minion lose fierce and gain hunter 2 until the regroup phase. - */ -public class Card18_133 extends AbstractEvent { - public Card18_133() { - super(Side.SHADOW, 0, Culture.WRAITH, "Pull of the Ring", Phase.ASSIGNMENT); - } - - @Override - public boolean checkPlayRequirements(LotroGame game, PhysicalCard self) { - return PlayConditions.canRemoveBurdens(game, self, 1); - } - - @Override - public PlayEventAction getPlayEventCardAction(final String playerId, LotroGame game, final PhysicalCard self) { - final PlayEventAction action = new PlayEventAction(self); - action.appendCost( - new RemoveBurdenEffect(playerId, self, 1)); - List possibleEffects = new LinkedList<>(); - possibleEffects.add( - new ChooseActiveCardEffect(self, playerId, "Choose a WRAITH minion", Culture.WRAITH, CardType.MINION, Filters.assignableToSkirmishAgainst(Side.SHADOW, Filters.and(CardType.COMPANION, Filters.maxResistance(0)))) { - @Override - protected void cardSelected(LotroGame game, PhysicalCard minion) { - action.appendEffect( - new ChooseAndAssignCharacterToMinionEffect(action, playerId, minion, CardType.COMPANION, Filters.maxResistance(0))); - } - - @Override - public String getText(LotroGame game) { - return "Assign a WRAITH minion to a companion who has resistance 0"; - } - }); - possibleEffects.add( - new ChooseActiveCardEffect(self, playerId, "Choose a WRAITH minion", Culture.WRAITH, CardType.MINION) { - @Override - protected void cardSelected(LotroGame game, PhysicalCard minion) { - action.appendEffect( - new AddUntilStartOfPhaseModifierEffect( - new RemoveKeywordModifier(self, minion, Keyword.FIERCE), Phase.REGROUP)); - action.appendEffect( - new AddUntilStartOfPhaseModifierEffect( - new AddKeywordModifier(self, minion, Keyword.HUNTER, 2), Phase.REGROUP)); - } - - @Override - public String getText(LotroGame game) { - return "Make a WRAITH minion lose fierce and gain hunter 2 until the regroup phase"; - } - }); - action.appendEffect( - new ChoiceEffect(action, playerId, possibleEffects)); - return action; - } -} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/card-stubs/set18-Ringwraith.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/card-stubs/set18-Ringwraith.hjson deleted file mode 100644 index 53edca042..000000000 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/card-stubs/set18-Ringwraith.hjson +++ /dev/null @@ -1,88 +0,0 @@ -{ - - 18_132: { - cardInfo: { - imagePath: decipher/LOTR18132.jpg - javaClass: true - //parentId: 18_132 - //One of: Variant, Errata, Reprint - //parentType: Variant - //parentPath: alts/promo - version: 0 - collInfo: 18U132 - rarity: U - setNum: "18" - cardNum: 132 - style: Standard - } - title: All Life Flees - unique: false - side: Shadow - culture: Wraith - twilight: 2 - type: Event - keywords: Shadow - - effects: { - type: event - cost: { - }, - effect: [ - { - } - ] - } - gametext: To play, spot a Nazgûl.
Remove (X) to choose one: discard a follower from play that has a twilight cost of X; or play from deck a [wraith] minion that has a twilight cost of X. - lore: A sudden unreasoning fear of discovery laid hold of Frodo, and he thought of his Ring. - promotext: "" - alts: { - promos: { - } - errata: { - } - } - } - - 18_133: { - cardInfo: { - imagePath: decipher/LOTR18133.jpg - javaClass: true - //parentId: 18_133 - //One of: Variant, Errata, Reprint - //parentType: Variant - //parentPath: alts/promo - version: 0 - collInfo: 18R133 - rarity: R - setNum: "18" - cardNum: 133 - style: Standard - } - title: Pull of the Ring - unique: false - side: Shadow - culture: Wraith - twilight: 0 - type: Event - keywords: Assignment - - effects: { - type: event - cost: { - }, - effect: [ - { - } - ] - } - gametext: Remove a burden to choose one: assign a [wraith] minion to a companion who has resistance 0; or have a [wraith] minion lose fierce and gain hunter 2 until the regroup phase. - lore: I'm naked in the dark. There's nothing, no veil between me and the Wheel of Fire. I can see him with my waking eyes! - promotext: "" - alts: { - promos: { - } - errata: { - } - } - } -} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-Ringwraith.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-Ringwraith.hjson new file mode 100644 index 000000000..a29cbcc76 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-Ringwraith.hjson @@ -0,0 +1,137 @@ +{ + + 18_132: { + cardInfo: { + imagePath: decipher/LOTR18132.jpg + javaClass: true + //parentId: 18_132 + //One of: Variant, Errata, Reprint + //parentType: Variant + //parentPath: alts/promo + version: 0 + collInfo: 18U132 + rarity: U + setNum: "18" + cardNum: 132 + style: Standard + } + title: All Life Flees + unique: false + side: Shadow + culture: Wraith + twilight: 2 + type: Event + keywords: Shadow + effects: { + type: event + requires: { + type: canSpot + filter: nazgul + } + cost: { + type: chooseAndRemoveTwilight + memorize: X + } + effect: { + type: choice + texts: [ + Discard a follower from play with a twilight cost of {X} + Play a {wraith} minion from your draw deck with a twilight cost of {X} + ] + effects: [ + { + type: discard + filter: choose(follower,minTwilight(memory(X)),maxTwilight(memory(X))) + } + { + type: playCardFromDrawDeck + filter: choose(culture(wraith),minion,minTwilight(memory(X)),maxTwilight(memory(X))) + } + ] + } + } + gametext: To play, spot a Nazgûl.
Remove (X) to choose one: discard a follower from play that has a twilight cost of X; or play from deck a [wraith] minion that has a twilight cost of X. + lore: A sudden unreasoning fear of discovery laid hold of Frodo, and he thought of his Ring. + promotext: "" + alts: { + promos: { + } + errata: { + } + } + } + + 18_133: { + cardInfo: { + imagePath: decipher/LOTR18133.jpg + javaClass: true + //parentId: 18_133 + //One of: Variant, Errata, Reprint + //parentType: Variant + //parentPath: alts/promo + version: 0 + collInfo: 18R133 + rarity: R + setNum: "18" + cardNum: 133 + style: Standard + } + title: Pull of the Ring + unique: false + side: Shadow + culture: Wraith + twilight: 0 + type: Event + keywords: Assignment + effects: { + type: event + cost: { + type: removeBurdens + } + effect: [ + { + type: choice + texts: [ + Assign a {wraith} minion to a companion who has resistance 0 + Have a {wraith} minion lose fierce and gain huner 2 until the regroup phase + ] + effects: [ + { + type: assignFPCharacterToSkirmish + fpCharacter: choose(companion,maxResistance(0)) + against: choose(culture(wraith),minion) + } + { + type: multiple + effects: [ + { + type: removeKeyword + filter: choose(culture(wraith),minion) + keyword: fierce + until: regroup + memorize: chosenMinion + } + { + type: addKeyword + filter: memory(chosenMinion) + keyword: hunter + amount: 2 + until: regroup + } + ] + } + ] + } + ] + } + gametext: Remove a burden to choose one: assign a [wraith] minion to a companion who has resistance 0; or have a [wraith] minion lose fierce and gain hunter 2 until the regroup phase. + lore: I'm naked in the dark. There's nothing, no veil between me and the Wheel of Fire. I can see him with my waking eyes! + promotext: "" + alts: { + promos: { + } + errata: { + } + } + } +} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-wraith.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-wraith.hjson deleted file mode 100644 index e9e72ffe6..000000000 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set18/set18-wraith.hjson +++ /dev/null @@ -1,38 +0,0 @@ -{ - 18_132: { - title: All Life Flees - side: shadow - culture: Wraith - twilight: 2 - type: event - keyword: Shadow - effects: { - type: event - requires: { - type: canSpot - filter: nazgul - } - cost: { - type: chooseAndRemoveTwilight - memorize: X - } - effect: { - type: choice - texts: [ - Discard a follower from play with a twilight cost of {X} - Play a WRAITH minion from your draw deck with a twilight cost of {X} - ] - effects: [ - { - type: discard - filter: choose(follower,minTwilight(memory(X)),maxTwilight(memory(X))) - } - { - type: playCardFromDrawDeck - filter: choose(culture(wraith),minion,minTwilight(memory(X)),maxTwilight(memory(X))) - } - ] - } - } - } -} \ No newline at end of file