<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wildermyth.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AData_mathFormula%2Fdoc</id>
	<title>Template:Data mathFormula/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wildermyth.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AData_mathFormula%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wildermyth.com/w/index.php?title=Template:Data_mathFormula/doc&amp;action=history"/>
	<updated>2026-04-14T12:30:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wildermyth.com/w/index.php?title=Template:Data_mathFormula/doc&amp;diff=19619&amp;oldid=prev</id>
		<title>FeralKitty: Created page with &quot;&lt;includeonly&gt;: &#039;&#039;This documentation is transcluded from Template:Data mathFormula/doc&#039;&#039;&lt;/includeonly&gt;&lt;!-- --&gt;&lt;noinclude&gt;&lt;div class=&quot;messagebox&quot; style=&quot;padding-left:1ex;&quot;&gt;&#039;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wildermyth.com/w/index.php?title=Template:Data_mathFormula/doc&amp;diff=19619&amp;oldid=prev"/>
		<updated>2022-01-21T20:39:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;: &amp;#039;&amp;#039;This documentation is transcluded from &lt;a href=&quot;/wiki/Template:Data_mathFormula/doc&quot; title=&quot;Template:Data mathFormula/doc&quot;&gt;Template:Data mathFormula/doc&lt;/a&gt;&amp;#039;&amp;#039;&amp;lt;/includeonly&amp;gt;&amp;lt;!-- --&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;div class=&amp;quot;messagebox&amp;quot; style=&amp;quot;padding-left:1ex;&amp;quot;&amp;gt;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;: &amp;#039;&amp;#039;This documentation is transcluded from [[Template:Data mathFormula/doc]]&amp;#039;&amp;#039;&amp;lt;/includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;div class=&amp;quot;messagebox&amp;quot; style=&amp;quot;padding-left:1ex;&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;This is a documentation subpage for [[Template:Data mathFormula]].&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{See also|Template:Tooltip ability}}&lt;br /&gt;
&lt;br /&gt;
This template is used by the game data process to help automatically keep pages up-to-date.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warning: Manually editing this template data may cause your changes to be overwritten or lost if the template is automatically updated.&amp;#039;&amp;#039;&amp;#039; 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).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
This template returns the (math) formula for a specific theme ability. A future update will add hero abilities.&lt;br /&gt;
&lt;br /&gt;
The template uses the following parameter:&lt;br /&gt;
&lt;br /&gt;
; &amp;#039;&amp;#039;1&amp;#039;&amp;#039; : The name associated with the specific math formula.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Theme ability math formula ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Data mathFormula|Bash}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Data mathFormula|Bash}}&lt;br /&gt;
&lt;br /&gt;
=== Hero ability math formula (to be added) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{Data mathFormula|Shieldshear}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Data mathFormula|Shieldshear}}(No math formula is returned, as this hero ability data has not been added yet to the template.)&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
{{See also|Template:Formulas}}&lt;br /&gt;
&lt;br /&gt;
Math formula data comes from Wildermyth&amp;#039;s&amp;lt;code&amp;gt;.json&amp;lt;/code&amp;gt; files. For example, &amp;lt;code&amp;gt;assets/data/effects/attack/morthagiArmHammer.json&amp;lt;/code&amp;gt; includes the following line:&lt;br /&gt;
 &amp;quot;amount&amp;quot;: &amp;quot;(((1d4+3)+(((self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)*0.5)*(1+self.theme_morthagi_upgrade)))+self.theme_morthagi_upgrade)+target.distanceTo.targetTile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This shows the actual formula used to calculate the damage amount, based on the hero&amp;#039;s Bonus Damage, Potency, and whether the morthagi theme has been upgraded or not.&lt;br /&gt;
&lt;br /&gt;
Note: An expression like &amp;#039;&amp;#039;self.theme_morthagi_upgrade&amp;#039;&amp;#039; evaluates to 0 if that aspect does not exist (i.e., the theme is not upgraded), or (the aspect value of) 1.0 if that aspect does exist.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{Formulas&lt;br /&gt;
| damage = {{Data mathFormula|Hammer}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Formulas&lt;br /&gt;
| damage = {{Data mathFormula|Hammer}}&lt;br /&gt;
}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Template]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>FeralKitty</name></author>
	</entry>
</feed>