From 40483b4418397b583531f3a086c029c7f462dbc5 Mon Sep 17 00:00:00 2001 From: marius faust Date: Thu, 30 Nov 2023 14:54:30 +0100 Subject: [PATCH] update target for laneswap --- keywordedSchema.json | 2 +- keywords/laneswap.go | 2 +- keywords/testJsons/keywordedCard.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keywordedSchema.json b/keywordedSchema.json index bd9065d..5251ad8 100644 --- a/keywordedSchema.json +++ b/keywordedSchema.json @@ -1 +1 @@ -{"Card":{"$ref":"#/definitions/Card"},"definitions":{"AdditionalCost":{"type":"interface","name":"Additional Cost","description":"Choose a Additional Cost","children":{"SacrificeCost":{"$ref":"#/definitions/SacrificeCost"},"DiscardCost":{"$ref":"#/definitions/DiscardCost"},"VoidCost":{"$ref":"#/definitions/VoidCost"}}},"Attack":{"type":"int","name":"Attack","max":32},"BasicAmount":{"type":"int","name":"Basic Amount","max":32},"Card":{"type":"interface","name":"Card","description":"Choose a Card","children":{"Action":{"$ref":"#/definitions/action"},"Entity":{"$ref":"#/definitions/entity"},"Place":{"$ref":"#/definitions/place"},"Headquarter":{"$ref":"#/definitions/headquarter"}}},"CardMode":{"type":"enum","name":"Card Mode","enum":["ALL","THIS","RANDOM","TARGET"]},"CardName":{"type":"string","name":"Card Name","max":25,"min":1},"CardOppMode":{"type":"enum","name":"Card Opp Mode","enum":["ALL","RANDOM","TARGET"]},"CardType":{"type":"enum","name":"Card Type","enum":["ACTION","ENTITY","PLACE","HQ"]},"CastingCost":{"type":"int","name":"Casting Cost","max":64},"Class":{"type":"struct","name":"Class","description":"Build a Class","children":{"Nature":{"$ref":"#/definitions/Nature"},"Mysticism":{"$ref":"#/definitions/Mysticism"},"Technology":{"$ref":"#/definitions/Technology"},"Culture":{"$ref":"#/definitions/Culture"}},"required":["Nature","Mysticism","Technology","Culture"],"interactionText":"§Nature §Mysticism §Technology §Culture"},"Culture":{"type":"bool","name":"Culture"},"Delay":{"type":"int","name":"Delay","max":32,"min":1},"DiscardCost":{"type":"struct","name":"Discard Cost","description":"Build a Discard Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Discard §Amount card"},"DynamicZone":{"type":"enum","name":"Dynamic Zone","enum":["DECK","DUSTPILE","FIELD","HAND"]},"EntityMode":{"type":"enum","name":"Entity Mode","enum":["ALL","THIS","RANDOM","TARGET","CHOSENENTITY"]},"EntityOppMode":{"type":"enum","name":"Entity Opp Mode","enum":["ALL","RANDOM","TARGET","CHOSENENTITY"]},"FlavourText":{"type":"string","name":"Flavour Text","max":1000},"Health":{"type":"int","name":"Health","max":32},"IntValue":{"type":"interface","name":"Int Value","description":"Choose a Int Value","children":{"SimpleIntValue":{"$ref":"#/definitions/SimpleIntValue"},"IntVariable":{"$ref":"#/definitions/IntVariableName"}}},"IntVariableName":{"type":"enum","name":"Int Variable Name","enum":["X","Y","Z"]},"Keyword":{"type":"string","name":"Keyword","max":10000},"Keywords":{"type":"array","name":"Keywords","description":"Add some Keywords","children":{"Keyword":{"$ref":"#/definitions/Keyword"}},"max":3,"min":1},"Mysticism":{"type":"bool","name":"Mysticism"},"Nature":{"type":"bool","name":"Nature"},"PlaceMode":{"type":"enum","name":"Place Mode","enum":["ALL","THIS","RANDOM","TARGET","CHOSENPLACE"]},"PlaceOppMode":{"type":"enum","name":"Place Opp Mode","enum":["ALL","RANDOM","TARGET","CHOSENPLACE"]},"PlayerMode":{"type":"enum","name":"Player Mode","enum":["YOU","OPPONENT"]},"Rarity":{"type":"enum","name":"Rarity","enum":["COMMON","UNCOMMON","RARE"]},"RulesText":{"type":"string","name":"Rules Text","max":1000},"RulesTexts":{"type":"array","name":"Rules Texts","description":"Add some Rules Texts","children":{"RulesText":{"$ref":"#/definitions/RulesText"}},"max":4},"SacrificeCost":{"type":"struct","name":"Sacrifice Cost","description":"Build a Sacrifice Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Sacrifice §Amount card"},"SimpleIntValue":{"type":"int","name":"Simple Int Value","max":32},"Tag":{"type":"enum","name":"Tag","enum":["AIR","ALCHEMIST","ANIMAL","ARTIFACT","ASSASSIN","BEAST","BELIEVER","BOT","BUILDING","COLOSSUS","DISASTER","DOMESTIC","DRAGON","EARTH","EPIC","EVENT","FACTORY","FIRE","HUMAN","KNOWLEDGE","LANDSCAPE","PLANT","REINFORCEMENT","WIZARD","SHRINE","SPIRIT","TACTIC","TECHNOCRAT","UNDEAD","VEHICLE","WARRIOR","WATER","WEAPON","WORKER"]},"Tags":{"type":"array","name":"Tags","description":"Add some Tags","children":{"Tag":{"$ref":"#/definitions/Tag"}},"max":3,"min":1},"Technology":{"type":"bool","name":"Technology"},"VoidCost":{"type":"struct","name":"Void Cost","description":"Build a Void Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Void §Amount card"},"abilities":{"type":"array","name":"Abilities","description":"Add some Abilities","children":{"Ability":{"$ref":"#/definitions/ability"}},"max":3},"ability":{"type":"interface","name":"Ability","description":"Choose a Ability","children":{"Arrival":{"$ref":"#/definitions/arrival"},"Avenge":{"$ref":"#/definitions/avenge"},"Battlecry":{"$ref":"#/definitions/battlecry"},"Channel":{"$ref":"#/definitions/channel"},"DiscardPay":{"$ref":"#/definitions/discardPay"},"Dismantle":{"$ref":"#/definitions/dismantle"},"Dissolve":{"$ref":"#/definitions/dissolve"},"Furious":{"$ref":"#/definitions/furious"},"Loot":{"$ref":"#/definitions/loot"},"OnConstruction":{"$ref":"#/definitions/onConstruction"},"OnDeath":{"$ref":"#/definitions/onDeath"},"OnSpawn":{"$ref":"#/definitions/onSpawn"},"Pay":{"$ref":"#/definitions/pay"},"Periodic":{"$ref":"#/definitions/periodic"},"Tribute":{"$ref":"#/definitions/tribute"}}},"action":{"type":"struct","name":"Action","description":"Build a Action","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Effects":{"$ref":"#/definitions/effects"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Effects","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Effects §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"anthem":{"type":"struct","name":"Anthem","description":"Anthem gives all friendly Entities with selected tag +1/+1.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"required":["Tag"],"interactionText":"Anthem §Tag."},"arm":{"type":"struct","name":"Arm","description":"Arm gives a friendly Entity +X/+X.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","TECHNOLOGY"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Arm §Target §Amount."},"armor":{"type":"struct","name":"Armor","description":"Armor gives a friendly Entity +X Health permanently.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["NATURE","TECHNOLOGY"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Armor §Target §Amount."},"arrival":{"type":"struct","name":"Arrival","description":"When a friendly Entity is spawned, activate Effects","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","NATURE"],"required":["Effects"],"interactionText":"Arrival: §Effects."},"avatar":{"type":"struct","name":"Avatar","description":"A X/X entity token.","children":{},"interactionText":"X/X avatar"},"avenge":{"type":"struct","name":"Avenge","description":"Whenever another of your Entity dies, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Avenge: §Effects."},"battlecry":{"type":"struct","name":"Battlecry","description":"At the beginning of each Combat activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Battlecry: §Effects."},"beast":{"type":"struct","name":"Beast","description":"A 3/3 entity token.","children":{},"classes":["NATURE"],"interactionText":"3/3 beast"},"bot":{"type":"struct","name":"Bot","description":"A 2/2 entity token.","children":{},"classes":["TECHNOLOGY"],"interactionText":"2/2 Bot"},"bounce":{"type":"struct","name":"Bounce","description":"Return selected Entities to your opponent's hand.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"}},"classes":["TECHNOLOGY"],"required":["Target"],"interactionText":"Bounce §Target."},"burn":{"type":"struct","name":"Burn","description":"Deal X damage to the opposing HQ or an opposing Place.","children":{"Target":{"$ref":"#/definitions/PlaceOppMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Target","Amount"],"interactionText":"Burn §Target §Amount."},"channel":{"type":"struct","name":"Channel","description":"Whenever you play an Action, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["MYSTICISM","TECHNOLOGY"],"required":["Effects"],"interactionText":"Channel: §Effects."},"choose":{"type":"struct","name":"Choose","description":"Choose a card which is used for future effects.","children":{"Type":{"$ref":"#/definitions/CardType"},"Zone":{"$ref":"#/definitions/DynamicZone"}},"required":["Type","Zone"],"interactionText":"Choose a §Type in §Zone."},"count":{"type":"struct","name":"Count","description":"Count all cards on your board with a selected tag and save this number to X.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"required":["Tag"],"interactionText":"Count §Tag."},"countForces":{"type":"struct","name":"Count Forces","description":"Count your Entities with Attack greater or equal to selected Attack and save this number to X.","children":{"Power":{"$ref":"#/definitions/SimpleIntValue"}},"classes":["CULTURE","NATURE"],"required":["Power"],"interactionText":"Count Forces §Power."},"countPower":{"type":"struct","name":"Count Power","description":"Count the Attack of a friendly entity and save this number to X.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["NATURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"CountPower of §Target."},"dice":{"type":"struct","name":"Dice","description":"Set X to a random number.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Amount"],"interactionText":"Dice §Amount."},"discard":{"type":"struct","name":"Discard","description":"You have to discard a card.","children":{},"classes":["MYSTICISM"],"interactionText":"Discard."},"discardPay":{"type":"struct","name":"Discard Pay","description":"Discard a card and pay Mana(optional) to activate Effects.","children":{"ManaAmount":{"$ref":"#/definitions/SimpleIntValue"},"Effects":{"$ref":"#/definitions/effects"}},"required":["ManaAmount","Effects"],"interactionText":"Discard, Pay §ManaAmount: §Effects."},"discountAction":{"type":"struct","name":"Discount Action","description":"Reduce Mana Cost of up to X Actions in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["MYSTICISM"],"required":["Amount"],"interactionText":"Discount Action §Amount."},"discountEntity":{"type":"struct","name":"Discount Entity","description":"Reduce Mana Cost of up to X Entities in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE"],"required":["Amount"],"interactionText":"Discount Entity §Amount."},"discountPlace":{"type":"struct","name":"Discount Place","description":"Reduce Mana Cost of up to X Places in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY"],"required":["Amount"],"interactionText":"Discount Place §Amount."},"dismantle":{"type":"struct","name":"Dismantle","description":"Sacrifice a friendly Place to activate Effects.","children":{"Target":{"$ref":"#/definitions/CardMode"},"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","TECHNOLOGY"],"required":["Target","Effects"],"interactionText":"Dismantle §Target: §Effects."},"dissolve":{"type":"struct","name":"Dissolve","description":"Put cards from your Dustpile to the Void to activate Effects.","children":{"VoidAmount":{"$ref":"#/definitions/SimpleIntValue"},"Effects":{"$ref":"#/definitions/effects"}},"classes":["MYSTICISM","NATURE"],"required":["VoidAmount","Effects"],"interactionText":"Dissolve §VoidAmount: §Effects."},"drawAction":{"type":"struct","name":"Draw Action","description":"Draw an Action from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["MYSTICISM"],"interactionText":"Draw Action §Tag."},"drawEntity":{"type":"struct","name":"Draw Entity","description":"Draw an Entity from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["NATURE"],"interactionText":"Draw Entity §Tag."},"drawPlace":{"type":"struct","name":"Draw Place","description":"Draw a Place from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["TECHNOLOGY"],"interactionText":"Draw Place §Tag."},"effect":{"type":"interface","name":"Effect","description":"Choose a Effect","children":{"Anthem":{"$ref":"#/definitions/anthem"},"Arm":{"$ref":"#/definitions/arm"},"Armor":{"$ref":"#/definitions/armor"},"Bounce":{"$ref":"#/definitions/bounce"},"Burn":{"$ref":"#/definitions/burn"},"Choose":{"$ref":"#/definitions/choose"},"Count":{"$ref":"#/definitions/count"},"CountForces":{"$ref":"#/definitions/countForces"},"CountPower":{"$ref":"#/definitions/countPower"},"Dice":{"$ref":"#/definitions/dice"},"Discard":{"$ref":"#/definitions/discard"},"DiscountAction":{"$ref":"#/definitions/discountAction"},"DiscountEntity":{"$ref":"#/definitions/discountEntity"},"DiscountPlace":{"$ref":"#/definitions/discountPlace"},"DrawAction":{"$ref":"#/definitions/drawAction"},"DrawEntity":{"$ref":"#/definitions/drawEntity"},"DrawPlace":{"$ref":"#/definitions/drawPlace"},"Enrage":{"$ref":"#/definitions/enrage"},"Fortify":{"$ref":"#/definitions/fortify"},"Grind":{"$ref":"#/definitions/grind"},"Grow":{"$ref":"#/definitions/grow"},"Harm":{"$ref":"#/definitions/harm"},"Hasten":{"$ref":"#/definitions/hasten"},"Heal":{"$ref":"#/definitions/heal"},"Kill":{"$ref":"#/definitions/kill"},"Laneswap":{"$ref":"#/definitions/laneswap"},"Insight":{"$ref":"#/definitions/insight"},"Mill":{"$ref":"#/definitions/mill"},"Produce":{"$ref":"#/definitions/produce"},"Reassemble":{"$ref":"#/definitions/reassemble"},"RecoverAction":{"$ref":"#/definitions/recoverAction"},"RecoverEntity":{"$ref":"#/definitions/recoverEntity"},"RecoverPlace":{"$ref":"#/definitions/recoverPlace"},"Resurrect":{"$ref":"#/definitions/resurrect"},"Repair":{"$ref":"#/definitions/repair"},"Sacrifice":{"$ref":"#/definitions/sacrifice"},"Silence":{"$ref":"#/definitions/silence"},"Spawn":{"$ref":"#/definitions/spawn"},"Suffer":{"$ref":"#/definitions/suffer"},"Strengthen":{"$ref":"#/definitions/strengthen"},"Train":{"$ref":"#/definitions/train"},"Void":{"$ref":"#/definitions/void"},"Withdraw":{"$ref":"#/definitions/withdraw"}}},"effects":{"type":"array","name":"Effects","description":"Add some Effects","children":{"Effect":{"$ref":"#/definitions/effect"}},"max":3},"enrage":{"type":"struct","name":"Enrage","description":"Enraged Entity deals excess combat damage to places.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"required":["Target"],"interactionText":"Enrage §Target"},"entity":{"type":"struct","name":"Entity","description":"Build a Entity","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Abilities":{"$ref":"#/definitions/abilities"},"Attack":{"$ref":"#/definitions/Attack"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Abilities","Attack","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Abilities §Attack §Health §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"fortify":{"type":"struct","name":"Fortify","description":"Fortify adds X Health to friendly HQ.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY","CULTURE"],"required":["Amount"],"interactionText":"Fortify §Amount."},"furious":{"type":"struct","name":"Furious","description":"Whenever this takes damage, activate effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Furious: §Effects."},"grind":{"type":"struct","name":"Grind","description":"Deal X damage to a friendly place/HQ.","children":{"Target":{"$ref":"#/definitions/PlaceMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"types":["PLACE","HQ"],"required":["Target","Amount"],"interactionText":"Grind §Target §Amount."},"grow":{"type":"struct","name":"Grow","description":"Grow your HQ. 4 Growth increases its size by 1. The size of the HQ determines how much Mana you get at the beginning of a turn.","children":{"GrowthAmount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","NATURE"],"required":["GrowthAmount"],"interactionText":"Grow §GrowthAmount."},"harm":{"type":"struct","name":"Harm","description":"Deal X damage to an opposing Entity.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Target","Amount"],"interactionText":"Harm §Target §Amount."},"hasten":{"type":"struct","name":"Hasten","description":"Allow a friendly Entity's to attack the turn it is played.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"types":["ENTITY"],"required":["Target"],"interactionText":"Hasten §Target"},"headquarter":{"type":"struct","name":"Headquarter","description":"Build a Headquarter","children":{"CardName":{"$ref":"#/definitions/CardName"},"Class":{"$ref":"#/definitions/Class"},"Delay":{"$ref":"#/definitions/Delay"},"Abilities":{"$ref":"#/definitions/abilities"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","Class","Delay","Abilities","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §Class §Delay §Abilities §Health §Growth §StartingHandSize §Wisdom §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"heal":{"type":"struct","name":"Heal","description":"Restore a friendly Entity's health to full life.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["MYSTICISM","NATURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"Heal §Target"},"insight":{"type":"struct","name":"Insight","description":"Gain Wisdom. 4 Wisdom draws you a card.","children":{"WisdomAmount":{"$ref":"#/definitions/IntValue"}},"required":["WisdomAmount"],"interactionText":"Insight §WisdomAmount."},"kill":{"type":"struct","name":"Kill","description":"Put an opposing Entity from the Field in the Dustpile.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"}},"classes":["MYSTICISM"],"required":["Target"],"interactionText":"Kill §Target"},"laneswap":{"type":"struct","name":"Laneswap","description":"Chosen Entities swap their lane.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"required":["Target"],"interactionText":"Laneswap §Target"},"loot":{"type":"struct","name":"Loot","description":"Whenever opposing place or HQ is damaged by 1 or more Entities in combat activate effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","NATURE"],"required":["Effects"],"interactionText":"Loot: §Effects."},"mill":{"type":"struct","name":"Mill","description":"Put cards from a player's Deck in the Dustpile.","children":{"Amount":{"$ref":"#/definitions/IntValue"},"Player":{"$ref":"#/definitions/PlayerMode"}},"classes":["MYSTICISM","TECHNOLOGY"],"required":["Amount","Player"],"interactionText":"Mill §Player §Amount."},"onConstruction":{"type":"struct","name":"On Construction","description":"Whenever another friendly Place is spawned, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","TECHNOLOGY"],"required":["Effects"],"interactionText":"OnConstruction: §Effects."},"onDeath":{"type":"struct","name":"On Death","description":"When this dies, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"OnDeath: §Effects."},"onSpawn":{"type":"struct","name":"On Spawn","description":"When this card is spawned, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"OnSpawn: §Effects."},"pay":{"type":"struct","name":"Pay","description":"Pay Mana to activate Effects.","children":{"ManaAmount":{"$ref":"#/definitions/IntValue"},"Effects":{"$ref":"#/definitions/effects"}},"required":["ManaAmount","Effects"],"interactionText":"Pay §ManaAmount: §Effects."},"periodic":{"type":"struct","name":"Periodic","description":"At the beginning of each round activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Periodic: §Effects."},"place":{"type":"struct","name":"Place","description":"Build a Place","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Abilities":{"$ref":"#/definitions/abilities"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Abilities","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Abilities §Health §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"powerstone":{"type":"struct","name":"Powerstone","description":"A 1 health place token with Pay 2: Gain 4 Wisdom. Grind This 1. and Pay 1: Harm Target 1. Grind This 1.","children":{},"interactionText":"Powerstone"},"produce":{"type":"struct","name":"Produce","description":"Produce Mana.","children":{"ManaAmount":{"$ref":"#/definitions/IntValue"}},"classes":["NATURE","TECHNOLOGY"],"required":["ManaAmount"],"interactionText":"Produce §ManaAmount."},"reassemble":{"type":"struct","name":"Reassemble","description":"Return target Place from a Dustpile to your Field.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY"],"required":["Amount"],"interactionText":"Reassemble lvl §Amount."},"recoverAction":{"type":"struct","name":"Recover Action","description":"Return target Action from your Dustpile to your Hand.","children":{},"classes":["MYSTICISM"],"interactionText":"Recover Action."},"recoverEntity":{"type":"struct","name":"Recover Entity","description":"Return target Entity from your Dustpile to your Hand.","children":{},"classes":["NATURE"],"interactionText":"Recover Entity."},"recoverPlace":{"type":"struct","name":"Recover Place","description":"Return target Place from your Dustpile to your Hand.","children":{},"classes":["TECHNOLOGY"],"interactionText":"Recover Place."},"recruit":{"type":"struct","name":"Recruit","description":"A 1/1 entity token.","children":{},"classes":["CULTURE"],"interactionText":"1/1 recruit"},"repair":{"type":"struct","name":"Repair","description":"Restore lost Health of a friendly Place or HQ.","children":{"Target":{"$ref":"#/definitions/PlaceMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","TECHNOLOGY"],"types":["PLACE","HQ"],"required":["Target","Amount"],"interactionText":"Repair §Target §Amount."},"resurrect":{"type":"struct","name":"Resurrect","description":"Return target Entity from a Dustpile to your Field.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["MYSTICISM"],"required":["Amount"],"interactionText":"Resurrect lvl §Amount."},"sacrifice":{"type":"struct","name":"Sacrifice","description":"Put a friendly Entity from the Field in the Dustpile.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"types":["ENTITY"],"required":["Target"],"interactionText":"Sacrifice §Target"},"silence":{"type":"struct","name":"Silence","description":"Target Entity loses its abilities.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Player":{"$ref":"#/definitions/PlayerMode"}},"classes":["MYSTICISM"],"required":["Target","Player"],"interactionText":"Silence §Target §Player"},"spawn":{"type":"struct","name":"Spawn","description":"Spawns a number of selected Tokens.","children":{"Token":{"$ref":"#/definitions/token"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Token","Amount"],"interactionText":"Spawn §Amount §Token."},"spirit":{"type":"struct","name":"Spirit","description":"A 1/1 entity token with OnDeath: Insight 1.","children":{},"classes":["MYSTICISM"],"interactionText":"1/1 spirit"},"strengthen":{"type":"struct","name":"Strengthen","description":"Strengthen gives a friendly Entity +X attack permanently.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","NATURE"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Strengthen §Target §Amount."},"suffer":{"type":"struct","name":"Suffer","description":"Deal X damage to a friendly Entity.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Suffer §Target §Amount."},"token":{"type":"interface","name":"Token","description":"Choose a Token","children":{"Avatar":{"$ref":"#/definitions/avatar"},"Beast":{"$ref":"#/definitions/beast"},"Bot":{"$ref":"#/definitions/bot"},"Powerstone":{"$ref":"#/definitions/powerstone"},"Recruit":{"$ref":"#/definitions/recruit"},"Spirit":{"$ref":"#/definitions/spirit"}}},"train":{"type":"struct","name":"Train","description":"Train gives a friendly Entity in your Hand +X/+X.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Train §Target §Amount."},"tribute":{"type":"struct","name":"Tribute","description":"Sacrifice a friendly Entity to activate Effects.","children":{"Target":{"$ref":"#/definitions/CardMode"},"Effects":{"$ref":"#/definitions/effects"}},"required":["Target","Effects"],"interactionText":"Tribute §Target: §Effects."},"void":{"type":"struct","name":"Void","description":"Put opposing cards from the Dustpile in the Void.","children":{"Target":{"$ref":"#/definitions/CardOppMode"}},"classes":["MYSTICISM","NATURE"],"required":["Target"],"interactionText":"Void §Target"},"withdraw":{"type":"struct","name":"Withdraw","description":"Return Entities from the Field to your Hand.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["MYSTICISM","CULTURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"Withdraw §Target."}}} \ No newline at end of file +{"Card":{"$ref":"#/definitions/Card"},"definitions":{"AdditionalCost":{"type":"interface","name":"Additional Cost","description":"Choose a Additional Cost","children":{"SacrificeCost":{"$ref":"#/definitions/SacrificeCost"},"DiscardCost":{"$ref":"#/definitions/DiscardCost"},"VoidCost":{"$ref":"#/definitions/VoidCost"}}},"Attack":{"type":"int","name":"Attack","max":32},"BasicAmount":{"type":"int","name":"Basic Amount","max":32},"Card":{"type":"interface","name":"Card","description":"Choose a Card","children":{"Action":{"$ref":"#/definitions/action"},"Entity":{"$ref":"#/definitions/entity"},"Place":{"$ref":"#/definitions/place"},"Headquarter":{"$ref":"#/definitions/headquarter"}}},"CardMode":{"type":"enum","name":"Card Mode","enum":["ALL","THIS","RANDOM","TARGET"]},"CardName":{"type":"string","name":"Card Name","max":25,"min":1},"CardOppMode":{"type":"enum","name":"Card Opp Mode","enum":["ALL","RANDOM","TARGET"]},"CardType":{"type":"enum","name":"Card Type","enum":["ACTION","ENTITY","PLACE","HQ"]},"CastingCost":{"type":"int","name":"Casting Cost","max":64},"Class":{"type":"struct","name":"Class","description":"Build a Class","children":{"Nature":{"$ref":"#/definitions/Nature"},"Mysticism":{"$ref":"#/definitions/Mysticism"},"Technology":{"$ref":"#/definitions/Technology"},"Culture":{"$ref":"#/definitions/Culture"}},"required":["Nature","Mysticism","Technology","Culture"],"interactionText":"§Nature §Mysticism §Technology §Culture"},"Culture":{"type":"bool","name":"Culture"},"Delay":{"type":"int","name":"Delay","max":32,"min":1},"DiscardCost":{"type":"struct","name":"Discard Cost","description":"Build a Discard Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Discard §Amount card"},"DynamicZone":{"type":"enum","name":"Dynamic Zone","enum":["DECK","DUSTPILE","FIELD","HAND"]},"EntityMode":{"type":"enum","name":"Entity Mode","enum":["ALL","THIS","RANDOM","TARGET","CHOSENENTITY"]},"EntityOppMode":{"type":"enum","name":"Entity Opp Mode","enum":["ALL","RANDOM","TARGET","CHOSENENTITY"]},"FlavourText":{"type":"string","name":"Flavour Text","max":1000},"Health":{"type":"int","name":"Health","max":32},"IntValue":{"type":"interface","name":"Int Value","description":"Choose a Int Value","children":{"SimpleIntValue":{"$ref":"#/definitions/SimpleIntValue"},"IntVariable":{"$ref":"#/definitions/IntVariableName"}}},"IntVariableName":{"type":"enum","name":"Int Variable Name","enum":["X","Y","Z"]},"Keyword":{"type":"string","name":"Keyword","max":10000},"Keywords":{"type":"array","name":"Keywords","description":"Add some Keywords","children":{"Keyword":{"$ref":"#/definitions/Keyword"}},"max":3,"min":1},"Mysticism":{"type":"bool","name":"Mysticism"},"Nature":{"type":"bool","name":"Nature"},"PlaceMode":{"type":"enum","name":"Place Mode","enum":["ALL","THIS","RANDOM","TARGET","CHOSENPLACE"]},"PlaceOppMode":{"type":"enum","name":"Place Opp Mode","enum":["ALL","RANDOM","TARGET","CHOSENPLACE"]},"PlayerMode":{"type":"enum","name":"Player Mode","enum":["YOU","OPPONENT"]},"Rarity":{"type":"enum","name":"Rarity","enum":["COMMON","UNCOMMON","RARE"]},"RulesText":{"type":"string","name":"Rules Text","max":1000},"RulesTexts":{"type":"array","name":"Rules Texts","description":"Add some Rules Texts","children":{"RulesText":{"$ref":"#/definitions/RulesText"}},"max":4},"SacrificeCost":{"type":"struct","name":"Sacrifice Cost","description":"Build a Sacrifice Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Sacrifice §Amount card"},"SimpleIntValue":{"type":"int","name":"Simple Int Value","max":32},"Tag":{"type":"enum","name":"Tag","enum":["AIR","ALCHEMIST","ANIMAL","ARTIFACT","ASSASSIN","BEAST","BELIEVER","BOT","BUILDING","COLOSSUS","DISASTER","DOMESTIC","DRAGON","EARTH","EPIC","EVENT","FACTORY","FIRE","HUMAN","KNOWLEDGE","LANDSCAPE","PLANT","REINFORCEMENT","WIZARD","SHRINE","SPIRIT","TACTIC","TECHNOCRAT","UNDEAD","VEHICLE","WARRIOR","WATER","WEAPON","WORKER"]},"Tags":{"type":"array","name":"Tags","description":"Add some Tags","children":{"Tag":{"$ref":"#/definitions/Tag"}},"max":3,"min":1},"Technology":{"type":"bool","name":"Technology"},"VoidCost":{"type":"struct","name":"Void Cost","description":"Build a Void Cost","children":{"Amount":{"$ref":"#/definitions/BasicAmount"}},"required":["Amount"],"interactionText":"Void §Amount card"},"abilities":{"type":"array","name":"Abilities","description":"Add some Abilities","children":{"Ability":{"$ref":"#/definitions/ability"}},"max":3},"ability":{"type":"interface","name":"Ability","description":"Choose a Ability","children":{"Arrival":{"$ref":"#/definitions/arrival"},"Avenge":{"$ref":"#/definitions/avenge"},"Battlecry":{"$ref":"#/definitions/battlecry"},"Channel":{"$ref":"#/definitions/channel"},"DiscardPay":{"$ref":"#/definitions/discardPay"},"Dismantle":{"$ref":"#/definitions/dismantle"},"Dissolve":{"$ref":"#/definitions/dissolve"},"Furious":{"$ref":"#/definitions/furious"},"Loot":{"$ref":"#/definitions/loot"},"OnConstruction":{"$ref":"#/definitions/onConstruction"},"OnDeath":{"$ref":"#/definitions/onDeath"},"OnSpawn":{"$ref":"#/definitions/onSpawn"},"Pay":{"$ref":"#/definitions/pay"},"Periodic":{"$ref":"#/definitions/periodic"},"Tribute":{"$ref":"#/definitions/tribute"}}},"action":{"type":"struct","name":"Action","description":"Build a Action","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Effects":{"$ref":"#/definitions/effects"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Effects","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Effects §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"anthem":{"type":"struct","name":"Anthem","description":"Anthem gives all friendly Entities with selected tag +1/+1.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"required":["Tag"],"interactionText":"Anthem §Tag."},"arm":{"type":"struct","name":"Arm","description":"Arm gives a friendly Entity +X/+X.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","TECHNOLOGY"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Arm §Target §Amount."},"armor":{"type":"struct","name":"Armor","description":"Armor gives a friendly Entity +X Health permanently.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["NATURE","TECHNOLOGY"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Armor §Target §Amount."},"arrival":{"type":"struct","name":"Arrival","description":"When a friendly Entity is spawned, activate Effects","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","NATURE"],"required":["Effects"],"interactionText":"Arrival: §Effects."},"avatar":{"type":"struct","name":"Avatar","description":"A X/X entity token.","children":{},"interactionText":"X/X avatar"},"avenge":{"type":"struct","name":"Avenge","description":"Whenever another of your Entity dies, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Avenge: §Effects."},"battlecry":{"type":"struct","name":"Battlecry","description":"At the beginning of each Combat activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Battlecry: §Effects."},"beast":{"type":"struct","name":"Beast","description":"A 3/3 entity token.","children":{},"classes":["NATURE"],"interactionText":"3/3 beast"},"bot":{"type":"struct","name":"Bot","description":"A 2/2 entity token.","children":{},"classes":["TECHNOLOGY"],"interactionText":"2/2 Bot"},"bounce":{"type":"struct","name":"Bounce","description":"Return selected Entities to your opponent's hand.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"}},"classes":["TECHNOLOGY"],"required":["Target"],"interactionText":"Bounce §Target."},"burn":{"type":"struct","name":"Burn","description":"Deal X damage to the opposing HQ or an opposing Place.","children":{"Target":{"$ref":"#/definitions/PlaceOppMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Target","Amount"],"interactionText":"Burn §Target §Amount."},"channel":{"type":"struct","name":"Channel","description":"Whenever you play an Action, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["MYSTICISM","TECHNOLOGY"],"required":["Effects"],"interactionText":"Channel: §Effects."},"choose":{"type":"struct","name":"Choose","description":"Choose a card which is used for future effects.","children":{"Type":{"$ref":"#/definitions/CardType"},"Zone":{"$ref":"#/definitions/DynamicZone"}},"required":["Type","Zone"],"interactionText":"Choose a §Type in §Zone."},"count":{"type":"struct","name":"Count","description":"Count all cards on your board with a selected tag and save this number to X.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"required":["Tag"],"interactionText":"Count §Tag."},"countForces":{"type":"struct","name":"Count Forces","description":"Count your Entities with Attack greater or equal to selected Attack and save this number to X.","children":{"Power":{"$ref":"#/definitions/SimpleIntValue"}},"classes":["CULTURE","NATURE"],"required":["Power"],"interactionText":"Count Forces §Power."},"countPower":{"type":"struct","name":"Count Power","description":"Count the Attack of a friendly entity and save this number to X.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["NATURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"CountPower of §Target."},"dice":{"type":"struct","name":"Dice","description":"Set X to a random number.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Amount"],"interactionText":"Dice §Amount."},"discard":{"type":"struct","name":"Discard","description":"You have to discard a card.","children":{},"classes":["MYSTICISM"],"interactionText":"Discard."},"discardPay":{"type":"struct","name":"Discard Pay","description":"Discard a card and pay Mana(optional) to activate Effects.","children":{"ManaAmount":{"$ref":"#/definitions/SimpleIntValue"},"Effects":{"$ref":"#/definitions/effects"}},"required":["ManaAmount","Effects"],"interactionText":"Discard, Pay §ManaAmount: §Effects."},"discountAction":{"type":"struct","name":"Discount Action","description":"Reduce Mana Cost of up to X Actions in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["MYSTICISM"],"required":["Amount"],"interactionText":"Discount Action §Amount."},"discountEntity":{"type":"struct","name":"Discount Entity","description":"Reduce Mana Cost of up to X Entities in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE"],"required":["Amount"],"interactionText":"Discount Entity §Amount."},"discountPlace":{"type":"struct","name":"Discount Place","description":"Reduce Mana Cost of up to X Places in your hand by 1.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY"],"required":["Amount"],"interactionText":"Discount Place §Amount."},"dismantle":{"type":"struct","name":"Dismantle","description":"Sacrifice a friendly Place to activate Effects.","children":{"Target":{"$ref":"#/definitions/CardMode"},"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","TECHNOLOGY"],"required":["Target","Effects"],"interactionText":"Dismantle §Target: §Effects."},"dissolve":{"type":"struct","name":"Dissolve","description":"Put cards from your Dustpile to the Void to activate Effects.","children":{"VoidAmount":{"$ref":"#/definitions/SimpleIntValue"},"Effects":{"$ref":"#/definitions/effects"}},"classes":["MYSTICISM","NATURE"],"required":["VoidAmount","Effects"],"interactionText":"Dissolve §VoidAmount: §Effects."},"drawAction":{"type":"struct","name":"Draw Action","description":"Draw an Action from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["MYSTICISM"],"interactionText":"Draw Action §Tag."},"drawEntity":{"type":"struct","name":"Draw Entity","description":"Draw an Entity from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["NATURE"],"interactionText":"Draw Entity §Tag."},"drawPlace":{"type":"struct","name":"Draw Place","description":"Draw a Place from your deck.","children":{"Tag":{"$ref":"#/definitions/Tag"}},"classes":["TECHNOLOGY"],"interactionText":"Draw Place §Tag."},"effect":{"type":"interface","name":"Effect","description":"Choose a Effect","children":{"Anthem":{"$ref":"#/definitions/anthem"},"Arm":{"$ref":"#/definitions/arm"},"Armor":{"$ref":"#/definitions/armor"},"Bounce":{"$ref":"#/definitions/bounce"},"Burn":{"$ref":"#/definitions/burn"},"Choose":{"$ref":"#/definitions/choose"},"Count":{"$ref":"#/definitions/count"},"CountForces":{"$ref":"#/definitions/countForces"},"CountPower":{"$ref":"#/definitions/countPower"},"Dice":{"$ref":"#/definitions/dice"},"Discard":{"$ref":"#/definitions/discard"},"DiscountAction":{"$ref":"#/definitions/discountAction"},"DiscountEntity":{"$ref":"#/definitions/discountEntity"},"DiscountPlace":{"$ref":"#/definitions/discountPlace"},"DrawAction":{"$ref":"#/definitions/drawAction"},"DrawEntity":{"$ref":"#/definitions/drawEntity"},"DrawPlace":{"$ref":"#/definitions/drawPlace"},"Enrage":{"$ref":"#/definitions/enrage"},"Fortify":{"$ref":"#/definitions/fortify"},"Grind":{"$ref":"#/definitions/grind"},"Grow":{"$ref":"#/definitions/grow"},"Harm":{"$ref":"#/definitions/harm"},"Hasten":{"$ref":"#/definitions/hasten"},"Heal":{"$ref":"#/definitions/heal"},"Kill":{"$ref":"#/definitions/kill"},"Laneswap":{"$ref":"#/definitions/laneswap"},"Insight":{"$ref":"#/definitions/insight"},"Mill":{"$ref":"#/definitions/mill"},"Produce":{"$ref":"#/definitions/produce"},"Reassemble":{"$ref":"#/definitions/reassemble"},"RecoverAction":{"$ref":"#/definitions/recoverAction"},"RecoverEntity":{"$ref":"#/definitions/recoverEntity"},"RecoverPlace":{"$ref":"#/definitions/recoverPlace"},"Resurrect":{"$ref":"#/definitions/resurrect"},"Repair":{"$ref":"#/definitions/repair"},"Sacrifice":{"$ref":"#/definitions/sacrifice"},"Silence":{"$ref":"#/definitions/silence"},"Spawn":{"$ref":"#/definitions/spawn"},"Suffer":{"$ref":"#/definitions/suffer"},"Strengthen":{"$ref":"#/definitions/strengthen"},"Train":{"$ref":"#/definitions/train"},"Void":{"$ref":"#/definitions/void"},"Withdraw":{"$ref":"#/definitions/withdraw"}}},"effects":{"type":"array","name":"Effects","description":"Add some Effects","children":{"Effect":{"$ref":"#/definitions/effect"}},"max":3},"enrage":{"type":"struct","name":"Enrage","description":"Enraged Entity deals excess combat damage to places.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"required":["Target"],"interactionText":"Enrage §Target"},"entity":{"type":"struct","name":"Entity","description":"Build a Entity","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Abilities":{"$ref":"#/definitions/abilities"},"Attack":{"$ref":"#/definitions/Attack"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Abilities","Attack","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Abilities §Attack §Health §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"fortify":{"type":"struct","name":"Fortify","description":"Fortify adds X Health to friendly HQ.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY","CULTURE"],"required":["Amount"],"interactionText":"Fortify §Amount."},"furious":{"type":"struct","name":"Furious","description":"Whenever this takes damage, activate effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Furious: §Effects."},"grind":{"type":"struct","name":"Grind","description":"Deal X damage to a friendly place/HQ.","children":{"Target":{"$ref":"#/definitions/PlaceMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"types":["PLACE","HQ"],"required":["Target","Amount"],"interactionText":"Grind §Target §Amount."},"grow":{"type":"struct","name":"Grow","description":"Grow your HQ. 4 Growth increases its size by 1. The size of the HQ determines how much Mana you get at the beginning of a turn.","children":{"GrowthAmount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","NATURE"],"required":["GrowthAmount"],"interactionText":"Grow §GrowthAmount."},"harm":{"type":"struct","name":"Harm","description":"Deal X damage to an opposing Entity.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Target","Amount"],"interactionText":"Harm §Target §Amount."},"hasten":{"type":"struct","name":"Hasten","description":"Allow a friendly Entity's to attack the turn it is played.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"types":["ENTITY"],"required":["Target"],"interactionText":"Hasten §Target"},"headquarter":{"type":"struct","name":"Headquarter","description":"Build a Headquarter","children":{"CardName":{"$ref":"#/definitions/CardName"},"Class":{"$ref":"#/definitions/Class"},"Delay":{"$ref":"#/definitions/Delay"},"Abilities":{"$ref":"#/definitions/abilities"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","Class","Delay","Abilities","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §Class §Delay §Abilities §Health §Growth §StartingHandSize §Wisdom §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"heal":{"type":"struct","name":"Heal","description":"Restore a friendly Entity's health to full life.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["MYSTICISM","NATURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"Heal §Target"},"insight":{"type":"struct","name":"Insight","description":"Gain Wisdom. 4 Wisdom draws you a card.","children":{"WisdomAmount":{"$ref":"#/definitions/IntValue"}},"required":["WisdomAmount"],"interactionText":"Insight §WisdomAmount."},"kill":{"type":"struct","name":"Kill","description":"Put an opposing Entity from the Field in the Dustpile.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"}},"classes":["MYSTICISM"],"required":["Target"],"interactionText":"Kill §Target"},"laneswap":{"type":"struct","name":"Laneswap","description":"Chosen Entities swap their lane.","children":{"Target":{"$ref":"#/definitions/EntityOppMode"}},"required":["Target"],"interactionText":"Laneswap §Target"},"loot":{"type":"struct","name":"Loot","description":"Whenever opposing place or HQ is damaged by 1 or more Entities in combat activate effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","NATURE"],"required":["Effects"],"interactionText":"Loot: §Effects."},"mill":{"type":"struct","name":"Mill","description":"Put cards from a player's Deck in the Dustpile.","children":{"Amount":{"$ref":"#/definitions/IntValue"},"Player":{"$ref":"#/definitions/PlayerMode"}},"classes":["MYSTICISM","TECHNOLOGY"],"required":["Amount","Player"],"interactionText":"Mill §Player §Amount."},"onConstruction":{"type":"struct","name":"On Construction","description":"Whenever another friendly Place is spawned, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"classes":["CULTURE","TECHNOLOGY"],"required":["Effects"],"interactionText":"OnConstruction: §Effects."},"onDeath":{"type":"struct","name":"On Death","description":"When this dies, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"OnDeath: §Effects."},"onSpawn":{"type":"struct","name":"On Spawn","description":"When this card is spawned, activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"OnSpawn: §Effects."},"pay":{"type":"struct","name":"Pay","description":"Pay Mana to activate Effects.","children":{"ManaAmount":{"$ref":"#/definitions/IntValue"},"Effects":{"$ref":"#/definitions/effects"}},"required":["ManaAmount","Effects"],"interactionText":"Pay §ManaAmount: §Effects."},"periodic":{"type":"struct","name":"Periodic","description":"At the beginning of each round activate Effects.","children":{"Effects":{"$ref":"#/definitions/effects"}},"required":["Effects"],"interactionText":"Periodic: §Effects."},"place":{"type":"struct","name":"Place","description":"Build a Place","children":{"CardName":{"$ref":"#/definitions/CardName"},"CastingCost":{"$ref":"#/definitions/CastingCost"},"AdditionalCost":{"$ref":"#/definitions/AdditionalCost"},"Class":{"$ref":"#/definitions/Class"},"Abilities":{"$ref":"#/definitions/abilities"},"Health":{"$ref":"#/definitions/Health"},"FlavourText":{"$ref":"#/definitions/FlavourText"},"Tags":{"$ref":"#/definitions/Tags"},"Keywords":{"$ref":"#/definitions/Keywords"},"RulesTexts":{"$ref":"#/definitions/RulesTexts"},"Rarity":{"$ref":"#/definitions/Rarity"}},"required":["CardName","CastingCost","Class","Abilities","Health","FlavourText","Tags","Keywords","RulesTexts"],"interactionText":"§CardName §CastingCost §AdditionalCost §Class §Abilities §Health §FlavourText §Tags §Keywords §RulesTexts §Rarity"},"powerstone":{"type":"struct","name":"Powerstone","description":"A 1 health place token with Pay 2: Gain 4 Wisdom. Grind This 1. and Pay 1: Harm Target 1. Grind This 1.","children":{},"interactionText":"Powerstone"},"produce":{"type":"struct","name":"Produce","description":"Produce Mana.","children":{"ManaAmount":{"$ref":"#/definitions/IntValue"}},"classes":["NATURE","TECHNOLOGY"],"required":["ManaAmount"],"interactionText":"Produce §ManaAmount."},"reassemble":{"type":"struct","name":"Reassemble","description":"Return target Place from a Dustpile to your Field.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["TECHNOLOGY"],"required":["Amount"],"interactionText":"Reassemble lvl §Amount."},"recoverAction":{"type":"struct","name":"Recover Action","description":"Return target Action from your Dustpile to your Hand.","children":{},"classes":["MYSTICISM"],"interactionText":"Recover Action."},"recoverEntity":{"type":"struct","name":"Recover Entity","description":"Return target Entity from your Dustpile to your Hand.","children":{},"classes":["NATURE"],"interactionText":"Recover Entity."},"recoverPlace":{"type":"struct","name":"Recover Place","description":"Return target Place from your Dustpile to your Hand.","children":{},"classes":["TECHNOLOGY"],"interactionText":"Recover Place."},"recruit":{"type":"struct","name":"Recruit","description":"A 1/1 entity token.","children":{},"classes":["CULTURE"],"interactionText":"1/1 recruit"},"repair":{"type":"struct","name":"Repair","description":"Restore lost Health of a friendly Place or HQ.","children":{"Target":{"$ref":"#/definitions/PlaceMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","TECHNOLOGY"],"types":["PLACE","HQ"],"required":["Target","Amount"],"interactionText":"Repair §Target §Amount."},"resurrect":{"type":"struct","name":"Resurrect","description":"Return target Entity from a Dustpile to your Field.","children":{"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["MYSTICISM"],"required":["Amount"],"interactionText":"Resurrect lvl §Amount."},"sacrifice":{"type":"struct","name":"Sacrifice","description":"Put a friendly Entity from the Field in the Dustpile.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"types":["ENTITY"],"required":["Target"],"interactionText":"Sacrifice §Target"},"silence":{"type":"struct","name":"Silence","description":"Target Entity loses its abilities.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Player":{"$ref":"#/definitions/PlayerMode"}},"classes":["MYSTICISM"],"required":["Target","Player"],"interactionText":"Silence §Target §Player"},"spawn":{"type":"struct","name":"Spawn","description":"Spawns a number of selected Tokens.","children":{"Token":{"$ref":"#/definitions/token"},"Amount":{"$ref":"#/definitions/IntValue"}},"required":["Token","Amount"],"interactionText":"Spawn §Amount §Token."},"spirit":{"type":"struct","name":"Spirit","description":"A 1/1 entity token with OnDeath: Insight 1.","children":{},"classes":["MYSTICISM"],"interactionText":"1/1 spirit"},"strengthen":{"type":"struct","name":"Strengthen","description":"Strengthen gives a friendly Entity +X attack permanently.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE","NATURE"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Strengthen §Target §Amount."},"suffer":{"type":"struct","name":"Suffer","description":"Deal X damage to a friendly Entity.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Suffer §Target §Amount."},"token":{"type":"interface","name":"Token","description":"Choose a Token","children":{"Avatar":{"$ref":"#/definitions/avatar"},"Beast":{"$ref":"#/definitions/beast"},"Bot":{"$ref":"#/definitions/bot"},"Powerstone":{"$ref":"#/definitions/powerstone"},"Recruit":{"$ref":"#/definitions/recruit"},"Spirit":{"$ref":"#/definitions/spirit"}}},"train":{"type":"struct","name":"Train","description":"Train gives a friendly Entity in your Hand +X/+X.","children":{"Target":{"$ref":"#/definitions/EntityMode"},"Amount":{"$ref":"#/definitions/IntValue"}},"classes":["CULTURE"],"types":["ENTITY"],"required":["Target","Amount"],"interactionText":"Train §Target §Amount."},"tribute":{"type":"struct","name":"Tribute","description":"Sacrifice a friendly Entity to activate Effects.","children":{"Target":{"$ref":"#/definitions/CardMode"},"Effects":{"$ref":"#/definitions/effects"}},"required":["Target","Effects"],"interactionText":"Tribute §Target: §Effects."},"void":{"type":"struct","name":"Void","description":"Put opposing cards from the Dustpile in the Void.","children":{"Target":{"$ref":"#/definitions/CardOppMode"}},"classes":["MYSTICISM","NATURE"],"required":["Target"],"interactionText":"Void §Target"},"withdraw":{"type":"struct","name":"Withdraw","description":"Return Entities from the Field to your Hand.","children":{"Target":{"$ref":"#/definitions/EntityMode"}},"classes":["MYSTICISM","CULTURE"],"types":["ENTITY"],"required":["Target"],"interactionText":"Withdraw §Target."}}} \ No newline at end of file diff --git a/keywords/laneswap.go b/keywords/laneswap.go index 9619758..ca810eb 100644 --- a/keywords/laneswap.go +++ b/keywords/laneswap.go @@ -6,7 +6,7 @@ import ( ) type laneswap struct { - Target cardobject.EntityMode + Target cardobject.EntityOppMode } func (l laneswap) ValidateType(r jsonschema.RootElement) error { diff --git a/keywords/testJsons/keywordedCard.json b/keywords/testJsons/keywordedCard.json index 40ab74f..0e5570c 100644 --- a/keywords/testJsons/keywordedCard.json +++ b/keywords/testJsons/keywordedCard.json @@ -1 +1 @@ -{"Entity":{"CardName":"Name","CastingCost":13,"Class":{"Nature":false,"Mysticism":false,"Technology":true,"Culture":true},"Abilities":[{"Pay":{"ManaAmount":{"SimpleIntValue":3},"Effects":[{"Arm":{"Target":"RANDOM","Amount":{"SimpleIntValue":3}}},{"Spawn":{"Token":{"Recruit":{}},"Amount":{"SimpleIntValue":2}}}]}}],"Attack":10,"Health":10,"FlavourText":"-.-","Tags":["SPIRIT"],"Keywords":["ARM","PAY"],"RulesTexts":["This could be your RulesText",""]}} \ No newline at end of file +{"Entity":{"CardName":"Name","CastingCost":13,"Class":{"Nature":false,"Mysticism":false,"Technology":true,"Culture":true},"Abilities":[{"Pay":{"ManaAmount":{"SimpleIntValue":3},"Effects":[{"Arm":{"Target":"RANDOM","Amount":{"SimpleIntValue":3}}},{"Spawn":{"Token":{"Recruit":{}},"Amount":{"SimpleIntValue":2}}}]}}],"Attack":10,"Health":10,"FlavourText":"-.-","Tags":["SPIRIT"],"Keywords":["ARM","PAY"],"RulesTexts":["This could be your RulesText",""],"Rarity":"UNCOMMON"}} \ No newline at end of file