card
Vars | |
cardsubtype | An extra descriptor for the card. Combined with the cardtype for a larger card descriptor, i.e. Creature- Xenomorph, Spell- Instant, that sort of thing. For creatures, this has no effect, for spells, this is important. |
---|---|
cardtype | Used to define the behaviour the card uses during the game. |
faction | Someone please come up with a ruleset so I can comment this |
id | Unique ID, for use in lookups and (eventually) for persistence. MAKE SURE THIS IS UNIQUE FOR EACH CARD IN AS SERIES, OR THE ENTIRE SYSTEM WILL BREAK, AND I WILL BE VERY DISAPPOINTED. |
power | How hard this card hits (by default) |
rarity | The rarity of this card, determines how much (or little) it shows up in packs. Rarities are common, uncommon, rare, epic, legendary and misprint. |
resolve | How hard this card can get hit (by default) |
rules | This handles any extra rules for the card, i.e. extra attributes, special effects, etc. If you've played any other card game, you know how this works. |
series | Defines the series that the card originates from, this is very important for spawning the cards via packs. |
summon_icon_file | Icon file that summons are pulled from |
summon_icon_state | Icon state for summons to use |
summoncost | What it costs to summon this card to the battlefield. |
Procs | |
apply | For each var that the card datum and the json entry share, we set the datum var to the json entry |
applyKeywords | Searches for keywords in the card's variables, marked by wrapping them in {$} Adds on hovor logic to them, using the passed in list We use the changed_vars list just to make the var searching faster |
applyTemplates | Applies a json file to a card datum |
Var Details
cardsubtype
An extra descriptor for the card. Combined with the cardtype for a larger card descriptor, i.e. Creature- Xenomorph, Spell- Instant, that sort of thing. For creatures, this has no effect, for spells, this is important.
cardtype
Used to define the behaviour the card uses during the game.
faction
Someone please come up with a ruleset so I can comment this
id
Unique ID, for use in lookups and (eventually) for persistence. MAKE SURE THIS IS UNIQUE FOR EACH CARD IN AS SERIES, OR THE ENTIRE SYSTEM WILL BREAK, AND I WILL BE VERY DISAPPOINTED.
power
How hard this card hits (by default)
rarity
The rarity of this card, determines how much (or little) it shows up in packs. Rarities are common, uncommon, rare, epic, legendary and misprint.
resolve
How hard this card can get hit (by default)
rules
This handles any extra rules for the card, i.e. extra attributes, special effects, etc. If you've played any other card game, you know how this works.
series
Defines the series that the card originates from, this is very important for spawning the cards via packs.
summon_icon_file
Icon file that summons are pulled from
summon_icon_state
Icon state for summons to use
summoncost
What it costs to summon this card to the battlefield.
Proc Details
apply
For each var that the card datum and the json entry share, we set the datum var to the json entry
applyKeywords
Searches for keywords in the card's variables, marked by wrapping them in {$} Adds on hovor logic to them, using the passed in list We use the changed_vars list just to make the var searching faster
applyTemplates
Applies a json file to a card datum