This is the documentation page for Module:Card/data
Description
This module stores all data about the currently existing playable cards in alphabetical order. Whenever card changes occur this module needs to be updated respectively.
- Syntax
All cards' data is stored in a standardized way as shown below.
["card name (variant)"] = { affinity = , card_id = , description = , starter_card = , type = , construction_time = , gender = , movement_speed = , orbs = , power_cost = , charges = , squadqsize = , class = , weapon_type = , counter = , size = , damage = , health = , edition = , rarity = , booster_locations = , upgrade_locations = , general_upgrade_text = , abilities = { { name = ability 1, type = , hide_on_card = , upgrade_availability = , affinity_dependency = , cost = , description = , values = , upgrade_text = , }, { name = ability n, type = , hide_on_card = , upgrade_availability = , affinity_dependency = , cost = , description = , values = , upgrade_text = , } } },
- Parameter and Syntax Explanation
Parameter | Explanation / Usage Notes | Omissible | Accepted Input |
---|---|---|---|
["<card name> <variant>"] |
Full name of the card followed by the variant. |
| |
affinity |
Overwrites indicated affinity by variant (for promo cards with affinities). |
| |
card_id |
The card's unique id for upgrade 0, to be used for scripting purposes. |
| |
description |
Descriptive sentence that is shown in the card's tooltip above the abilities. Use \n for a line break. |
| |
starter_card |
Indicates that the card is owned by all players as a PvE starter card. |
| |
type |
Type of the card. |
| |
construction_time |
Base construction time of the building in seconds. |
| |
gender |
Gender class of the card. |
| |
movement_speed |
Movement speed of the unit in meters per second (shown at the top of the tooltip). |
| |
orbs |
Required orbs of the card, ordered from right to left; up to 4 separated by comma; all mono or dual color combinations are allowed. |
| |
power_cost |
Power cost of the card. |
| |
charges |
Number of times the fully charged card can be played before the recharge cooldown starts. |
| |
squadsize |
Amount of individual members of which the the squad consists. |
| |
class |
Class of the card |
| |
weapon_type |
Attack type of the card, Melee and Ranged can be influenced by counter . |
| |
counter |
Size type countered by the card, can be influenced by weapon_type , omit if weapon_type is "Special" . |
| |
size |
Size type of the card. |
| |
damage |
Displayed attack value of the card. |
| |
health |
Amount of health points the entity has. |
| |
edition |
Edition icon in the bottom right corner, influenced by rarity (does not work alone). |
| |
rarity |
Rarity icon in the bottom right corner, influenced by edition (does not work alone). |
| |
booster_locations |
Names of the boosters from which the card can be drawn. Only required if the card has been assigned to a booster that deviates from its orbs' colors or if the card's orbs constitute it being Neutral/Legendary and thus sorting based on orb colors is not possible. |
| |
upgrade_locations |
Campaign drop locations of each upgrade card. Most left being upgrade 1, most right being upgrade 3. |
| |
general_upgrade_text |
Text on upgrade cards that does not belong to a specific ability. Changes in construction_time , power_cost , damage or health are excluded and will be displayed automatically. |
| |
Ability related parameters (this block repeats as many times as there are abilities) | |||
name |
Name of the ability. | Custom text of moderate length | |
type |
Type of the ability. |
| |
hide_on_card |
Disables the ability to be shown on the card, but limits it to the tooltip. |
| |
upgrade_availability |
Indicates on which card upgrade levels the ability is available. |
| |
affinity_dependency |
Affinity dependency of the ability, is tied to card parameter affinity , defaults to False |
| |
cost |
Power cost of the ability, omit if free (0) |
| |
description |
Full description of the ability, use %s as placeholder for values which change on upgrades. Use \n for a line break. |
| |
values |
Corresponding values to the placeholders, enter in same order as they occur in description . |
| |
upgrade_text |
Text displayed on the upgrade card, that specifically belongs to this ability. Learning an ability upon reaching a certain upgrade is excluded and will be displayed automatically. |
|
See also