Template:Data formula/doc

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

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 (human-readable) formula 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 formula.

Examples

Theme ability formula

{{Data formula|Scratch and Claw+}}

Damage: (6 to 8) + (Bonus Damage + Potency)

Hero ability formula (to be added)

{{Data formula|Backslam+}}
(No formula is returned, as this hero ability data has not been added yet to the template.)

Technical details

Formula data comes from Wildermyth's.properties files. For example, assets/text/effects/attack/flameArmMelee.properties includes the following line:

.formula=Damage: <self.theme_fire_upgrade:(4 to 7) + (Bonus Damage + Potency)/(3 to 6) + 1</>2(Bonus Damage + Potency)>

This shows both the base formula on the right side of the "/", and the upgraded formula on the left side.

UI DiamondRed.png single action, ends turn

Flame Strike

x magic damage, range 1.6 (Melee)
EquipmentIcon fire.pngFire Stunt

<self> blasts a nearby foe with their flaming fist.

Damage: (3 to 6) + 1/2(Bonus Damage + Potency)


UI DiamondRed.png single action, ends turn

Flame Strike+

x magic damage, range 1.6 (Melee)
EquipmentIcon fire.pngFire Stunt

<self> blasts a nearby foe with their flaming fist.

Damage: (4 to 7) + (Bonus Damage + Potency)