Template:Data damageType/doc

From Wildermyth Wiki
This is a documentation subpage for Template:Data damageType.

This template is used by the game data process to help automatically keep pages up-to-date.

Warning: Manually editing this template data may cause your changes to be overwritten or lost if the template is automatically updated. If specific game data is missing from this template, please ask about it on the Discord #wiki channel (to arrange for its data to automatically be added to these templates).

Usage

This template returns the damage (type) for a specific theme ability. A future update will add hero abilities.

The template uses the following parameter:

1
The name associated with the specific damage.

Examples

Theme ability damageType

{{Data damageType|Frenzy}}

x damage, 1 pierce, range 1.6 (Melee)

Hero ability actionPoints (to be added)

{{Data damageType|Infernal Rain}}
(No damage type is returned, as this hero ability data has not been added yet to the template.)

Technical details

Damage type data comes from Wildermyth's.json files. For example, assets/data/effects/pets/fireChicken_lightFire.json includes the following line:

{ "class": "Damage", "amount": "2", "type": "MAGIC", "pierce": "1" }

This shows the type of damage (magic), the (non-formula constant) amount of damage (2), and that the damage also pierces (for 1).

UI DiamondFeather.png swift action (free once per turn)

Fire Chicken

2 magic damage

<name>'s Pet can light a fire on an adjacent tile, once every three turns.