Difference between revisions of "User:BlarghBlargh/DamageBonus/ProtoSword"

From SpiralKnights

Jump to: navigation, search
m
m (Documenting.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
With Raw damage: {{{1}}}, Boost {{{2}}}, Damage increase {{{3}}}, and Frenzied Firestorm {{{4}}}...<br>
+
<noinclude>
{{#expr: ceil ({{{1}}}*(1+0.04*{{{2}}})*(1+0.20*{{{3}}})*(1+0.10*{{{4}}}))}}
+
By viewing this page, you probably want to look at the source to see how it is done, instead of reading this.
 +
 
 +
<nowiki>Parameters are called using {{{#}}} in the order in which they appear in templates and can be used for calculations.</nowiki>
 +
 
 +
This allows this template call:
 +
 
 +
<nowiki>{{User:BlarghBlargh/DamageBonus/ProtoSword|25|1|0|0}}</nowiki><br>
 +
to display<br>
 +
{{User:BlarghBlargh/DamageBonus/ProtoSword|25|1|0|0}}
 +
</noinclude>
 +
<includeonly>
 +
With Raw damage: {{{1}}}, Boost {{{3}}}, Damage increase {{{2}}}, and Frenzied Firestorm {{{4}}}...<br>
 +
Yields: {{#expr: ceil ({{{1}}}*(1+0.04*{{{2}}})*(1+0.20*{{{3}}})*(1+0.10*{{{4}}}))}} damage.
 +
</includeonly>

Latest revision as of 18:03, 5 August 2014

By viewing this page, you probably want to look at the source to see how it is done, instead of reading this.

Parameters are called using {{{#}}} in the order in which they appear in templates and can be used for calculations.

This allows this template call:

{{User:BlarghBlargh/DamageBonus/ProtoSword|25|1|0|0}}
to display


With Raw damage: 25, Boost 0, Damage increase 1, and Frenzied Firestorm 0...
Yields: 26 damage.


Personal tools