Difference between revisions of "Template:Formulas/doc"
From Wildermyth Wiki
FeralKitty (talk | contribs) (Created page with "<includeonly>: ''This documentation is transcluded from Template:Formulas/doc''</includeonly><!-- --><noinclude><div class="messagebox" style="padding-left:1ex;">'''This i...") |
FeralKitty (talk | contribs) (Change from subpage to damage parameter) |
||
| Line 7: | Line 7: | ||
The Infobox uses the following parameters: | The Infobox uses the following parameters: | ||
; ''damage'' : (Mathematical) damage equation | |||
; ''note'' : Optional note(s) about the targets | ; ''note'' : Optional note(s) about the targets | ||
| Line 14: | Line 16: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Formulas | {{Formulas | ||
| damage = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE | |||
| note = Blah blah blah | | note = Blah blah blah | ||
}} | }} | ||
| Line 19: | Line 22: | ||
{{Formulas | {{Formulas | ||
| damage = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE | |||
| note = Blah blah blah | | note = Blah blah blah | ||
}} | }} | ||
Revision as of 16:51, 21 September 2021
Usage
This template displays the formulas for an ability.
The Infobox uses the following parameters:
- damage
- (Mathematical) damage equation
- note
- Optional note(s) about the targets
Example
{{Formulas
| damage = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE
| note = Blah blah blah
}}
| Formulas |
Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade) |
| Note: Blah blah blahSee Formulas Guide for help with math functions. |