Difference between revisions of "Template:Data formula"
FeralKitty (talk | contribs) (1.6+399 Edina Gramling) |
Psionusoid (talk | contribs) m (fixed missing close paren) |
||
(16 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
| Chain Lightning+ = Damage: 4 + ({{Bonus damage ability|pagename=Chain Lightning}} + {{Potency ability|pagename=Chain Lightning}})<!-- assets/text/effects/storm/chainLightningUpgrade.properties --> | | Chain Lightning+ = Damage: 4 + ({{Bonus damage ability|pagename=Chain Lightning}} + {{Potency ability|pagename=Chain Lightning}})<!-- assets/text/effects/storm/chainLightningUpgrade.properties --> | ||
| Cone of Fire = Damage: (1 to 3) + 1/2({{Bonus damage ability|pagename=Cone of Fire}} + {{Potency ability|pagename=Cone of Fire}})<!-- assets/text/effects/monster/fireArmFlameCone.properties --> | | Cone of Fire = Damage: (1 to 3) + 1/2({{Bonus damage ability|pagename=Cone of Fire}} + {{Potency ability|pagename=Cone of Fire}})<!-- assets/text/effects/monster/fireArmFlameCone.properties --> | ||
| Cone of Fire+ = Damage: ( | | Cone of Fire+ = Damage: (3 to 5) + 1/2({{Bonus damage ability|pagename=Cone of Fire}} + {{Potency ability|pagename=Cone of Fire}})<!-- assets/text/effects/monster/fireArmFlameCone.properties --> | ||
| Crow Scratch = Damage: (3 to 5) + 1/2 ({{Bonus damage ability|pagename=Crow Scratch}} + {{Potency ability|pagename=Crow Scratch}})<!-- assets/text/effects/attack/crowArmClaw.properties --> | | Crow Scratch = Damage: (3 to 5) + 1/2 ({{Bonus damage ability|pagename=Crow Scratch}} + {{Potency ability|pagename=Crow Scratch}})<!-- assets/text/effects/attack/crowArmClaw.properties --> | ||
| Crow Scratch+ = Damage: (4 to 6) + ({{Bonus damage ability|pagename=Crow Scratch}} + {{Potency ability|pagename=Crow Scratch}})<!-- assets/text/effects/attack/crowArmClaw.properties --> | | Crow Scratch+ = Damage: (4 to 6) + ({{Bonus damage ability|pagename=Crow Scratch}} + {{Potency ability|pagename=Crow Scratch}})<!-- assets/text/effects/attack/crowArmClaw.properties --> | ||
| Crush = Damage: (4 to 6) + 1/2({{Bonus damage ability|pagename=Crush}} + {{Potency ability|pagename=Crush}})<!-- assets/text/effects/attack/foothillArmBash.properties --> | | Crush = Damage: (4 to 6) + 1/2({{Bonus damage ability|pagename=Crush}} + {{Potency ability|pagename=Crush}})<!-- assets/text/effects/attack/foothillArmBash.properties --> | ||
| Crush+ = Damage: (5 to 7) + ({{Bonus damage ability|pagename=Crush}} + {{Potency ability|pagename=Crush}})<!-- assets/text/effects/attack/foothillArmBash.properties --> | | Crush+ = Damage: (5 to 7) + ({{Bonus damage ability|pagename=Crush}} + {{Potency ability|pagename=Crush}})<!-- assets/text/effects/attack/foothillArmBash.properties --> | ||
| Crystal Chrysalis (theme upgrade) = Damage: (2 to 5) + 1/2({{Bonus damage ability|pagename=Crystal Chrysalis}} + {{Potency ability|pagename=Crystal Chrysalis}})<br>Range: 1.6 + 1/3 {{Potency ability|pagename=Crystal Chrysalis}}<!-- assets/data/effects/crystalChrysalisExplosion.json --> | |||
| Crystal Sword = Damage: (4 to 7) + 1/2({{Bonus damage ability|pagename=Crystal Sword}} + {{Potency ability|pagename=Crystal Sword}})<!-- assets/text/effects/attack/gemArmSword.properties --> | | Crystal Sword = Damage: (4 to 7) + 1/2({{Bonus damage ability|pagename=Crystal Sword}} + {{Potency ability|pagename=Crystal Sword}})<!-- assets/text/effects/attack/gemArmSword.properties --> | ||
| Crystal Sword+ = Damage: (5 to 8) + ({{Bonus damage ability|pagename=Crystal Sword}} + {{Potency ability|pagename=Crystal Sword}})<!-- assets/text/effects/attack/gemArmSword.properties --> | | Crystal Sword+ = Damage: (5 to 8) + ({{Bonus damage ability|pagename=Crystal Sword}} + {{Potency ability|pagename=Crystal Sword}})<!-- assets/text/effects/attack/gemArmSword.properties --> | ||
Line 26: | Line 27: | ||
| Frenzy = Damage: (1 to 3) + 1/4({{Bonus damage ability|pagename=Frenzy}} + {{Potency ability|pagename=Frenzy}})<!-- assets/text/effects/attack/wolfArmClawFrenzy.properties --> | | Frenzy = Damage: (1 to 3) + 1/4({{Bonus damage ability|pagename=Frenzy}} + {{Potency ability|pagename=Frenzy}})<!-- assets/text/effects/attack/wolfArmClawFrenzy.properties --> | ||
| Frenzy+ = Damage: (2 to 4) + 1/2({{Bonus damage ability|pagename=Frenzy}} + {{Potency ability|pagename=Frenzy}})<!-- assets/text/effects/attack/wolfArmClawFrenzy.properties --> | | Frenzy+ = Damage: (2 to 4) + 1/2({{Bonus damage ability|pagename=Frenzy}} + {{Potency ability|pagename=Frenzy}})<!-- assets/text/effects/attack/wolfArmClawFrenzy.properties --> | ||
| Gouge = Damage: (1 to 5) + ({{Bonus damage ability|pagename=Hook Gouge}}) | |||
| Hammer = Damage: (4 to 7) + 1/2({{Bonus damage ability|pagename=Hammer}} + {{Potency ability|pagename=Hammer}})<!-- assets/text/effects/attack/morthagiArmHammer.properties --> | | Hammer = Damage: (4 to 7) + 1/2({{Bonus damage ability|pagename=Hammer}} + {{Potency ability|pagename=Hammer}})<!-- assets/text/effects/attack/morthagiArmHammer.properties --> | ||
| Hammer+ = Damage: (5 to 8) + ({{Bonus damage ability|pagename=Hammer}} + {{Potency ability|pagename=Hammer}})<!-- assets/text/effects/attack/morthagiArmHammer.properties --> | | Hammer+ = Damage: (5 to 8) + ({{Bonus damage ability|pagename=Hammer}} + {{Potency ability|pagename=Hammer}})<!-- assets/text/effects/attack/morthagiArmHammer.properties --> | ||
Line 40: | Line 42: | ||
| Scratch and Claw = Damage: (5 to 7) + 1/2 ({{Bonus damage ability|pagename=Scratch and Claw}} + {{Potency ability|pagename=Scratch and Claw}})<!-- assets/text/effects/attack/crowArmFrenzy.properties --> | | Scratch and Claw = Damage: (5 to 7) + 1/2 ({{Bonus damage ability|pagename=Scratch and Claw}} + {{Potency ability|pagename=Scratch and Claw}})<!-- assets/text/effects/attack/crowArmFrenzy.properties --> | ||
| Scratch and Claw+ = Damage: (6 to 8) + ({{Bonus damage ability|pagename=Scratch and Claw}} + {{Potency ability|pagename=Scratch and Claw}})<!-- assets/text/effects/attack/crowArmFrenzy.properties --> | | Scratch and Claw+ = Damage: (6 to 8) + ({{Bonus damage ability|pagename=Scratch and Claw}} + {{Potency ability|pagename=Scratch and Claw}})<!-- assets/text/effects/attack/crowArmFrenzy.properties --> | ||
| Shooting Star = Damage: (1 to 5) + 1/2({{Bonus damage ability|pagename=Shooting Star}} + {{Potency ability|pagename=Shooting Star}})<!-- assets/text/effects/attack/shootingStar.properties --> | | Shooting Star = Damage: (1 to 5) + 1/2({{Bonus damage ability|pagename=Shooting Star}} + {{Potency ability|pagename=Shooting Star}})<br><!-- assets/text/effects/attack/shootingStar.properties --> | ||
| Shooting Star+ = Damage: (2 to 6) + ({{Bonus damage ability|pagename=Shooting Star}} + {{Potency ability|pagename=Shooting Star}})<!-- assets/text/effects/attack/shootingStar.properties --> | | Shooting Star+ = Damage: (2 to 6) + ({{Bonus damage ability|pagename=Shooting Star}} + {{Potency ability|pagename=Shooting Star}})<br><!-- assets/text/effects/attack/shootingStar.properties --> | ||
| Skunk Spray = Poison: 1 + 1/3 {{Potency ability|pagename=Skunk Spray}}<!-- assets/text/effects/attack/skunkTailSpray.properties --> | | Skunk Spray = Poison: 1 + 1/3 {{Potency ability|pagename=Skunk Spray}}<br>Range: 5.6<!-- assets/text/effects/attack/skunkTailSpray.properties --> | ||
| Skunk Spray+ = Poison: 3 + 1/3 {{Potency ability|pagename=Skunk Spray}}<!-- assets/text/effects/attack/skunkTailSpray.properties --> | | Skunk Spray+ = Poison: 3 + 1/3 {{Potency ability|pagename=Skunk Spray}}<br>Range: 5.6<!-- assets/text/effects/attack/skunkTailSpray.properties --> | ||
| Sting = Damage: (2 to 3) + 1/2({{Bonus damage ability|pagename=Sting}} + {{Potency ability|pagename=Sting}})<!-- assets/text/effects/attack/scorpionTailStab.properties --> | | Sting = Damage: (2 to 3) + 1/2({{Bonus damage ability|pagename=Sting}} + {{Potency ability|pagename=Sting}})<!-- assets/text/effects/attack/scorpionTailStab.properties --> | ||
| Sting+ = Damage: (3 to 5) + ({{Bonus damage ability|pagename=Sting}} + {{Potency ability|pagename=Sting}})<!-- assets/text/effects/attack/scorpionTailStab.properties --> | | Sting+ = Damage: (3 to 5) + ({{Bonus damage ability|pagename=Sting}} + {{Potency ability|pagename=Sting}})<!-- assets/text/effects/attack/scorpionTailStab.properties --> | ||
Line 53: | Line 55: | ||
| Swipes+ = Damage: (5 to 7) + ({{Bonus damage ability|pagename=Swipes}} + {{Potency ability|pagename=Swipes}})<!-- assets/text/effects/bear/bearArmSwipe.properties --> | | Swipes+ = Damage: (5 to 7) + ({{Bonus damage ability|pagename=Swipes}} + {{Potency ability|pagename=Swipes}})<!-- assets/text/effects/bear/bearArmSwipe.properties --> | ||
| Thorn Lash = Damage: (1 to 3) + 1/2({{Bonus damage ability|pagename=Thorn Lash}} + {{Potency ability|pagename=Thorn Lash}})<!-- assets/text/effects/vine/vineArmThornLash.properties --> | | Thorn Lash = Damage: (1 to 3) + 1/2({{Bonus damage ability|pagename=Thorn Lash}} + {{Potency ability|pagename=Thorn Lash}})<!-- assets/text/effects/vine/vineArmThornLash.properties --> | ||
| Thorn Lash+ = Damage: ( | | Thorn Lash+ = Damage: (3 to 5) + 1/2({{Bonus damage ability|pagename=Thorn Lash}} + {{Potency ability|pagename=Thorn Lash}})<!-- assets/text/effects/vine/vineArmThornLash.properties --> | ||
| Thunder Stomp = Range: 1.6 + 1/3 {{Potency ability|pagename=Thunder Stomp}} (+1 if both legs)<!-- assets/text/effects/storm/thunderStompAttack.properties --> | | Thunder Stomp = Range: 1.6 + 1/3 {{Potency ability|pagename=Thunder Stomp}} (+1 if both legs)<!-- assets/text/effects/storm/thunderStompAttack.properties --> | ||
| Thunder Stomp+ = Range: 1.6 + 1/3 {{Potency ability|pagename=Thunder Stomp}} (+1 if both legs)<!-- assets/text/effects/storm/thunderStompAttack.properties --> | | Thunder Stomp+ = Range: 1.6 + 1/3 {{Potency ability|pagename=Thunder Stomp}} (+1 if both legs)<!-- assets/text/effects/storm/thunderStompAttack.properties --> |
Latest revision as of 16:44, 23 June 2024
- This documentation is transcluded from Template:Data formula/doc
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.
single action, ends turn |
Flame Strike x magic damage, range 1.6 (Melee) <self> blasts a nearby foe with their flaming fist. Damage: (3 to 6) + 1/2(Bonus Damage + Potency) |
single action, ends turn |
Flame Strike+ x magic damage, range 1.6 (Melee) <self> blasts a nearby foe with their flaming fist. Damage: (4 to 7) + (Bonus Damage + Potency) |