Difference between revisions of "Template:DPS From Attacks"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{#vardefine:attack1weight|{{#expr:{{{attack1dps|0}}} * (1+{{{attack1ap|0}}}) * {{{attack1chancefactor|1}}} }} }}<!-- -->{{#vardefine:attack2weight|{{#expr:{{{attack2dps|0}}}...")
 
Line 1: Line 1:
{{#vardefine:attack1weight|{{#expr:{{{attack1dps|0}}} * (1+{{{attack1ap|0}}}) * {{{attack1chancefactor|1}}} }} }}<!--
+
<!--
-->{{#vardefine:attack2weight|{{#expr:{{{attack2dps|0}}} * (1+{{{attack2ap|0}}}) * {{{attack2chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack1weight|{{#expr:{{{attack1dps|0}}} * (1+{{{attack1ap|0}}}/100) * {{{attack1chancefactor|1}}} }} }}<!--
-->{{#vardefine:attack3weight|{{#expr:{{{attack3dps|0}}} * (1+{{{attack3ap|0}}}) * {{{attack3chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack2weight|{{#expr:{{{attack2dps|0}}} * (1+{{{attack2ap|0}}}/100) * {{{attack2chancefactor|1}}} }} }}<!--
-->{{#vardefine:attack4weight|{{#expr:{{{attack4dps|0}}} * (1+{{{attack4ap|0}}}) * {{{attack4chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack3weight|{{#expr:{{{attack3dps|0}}} * (1+{{{attack3ap|0}}}/100) * {{{attack3chancefactor|1}}} }} }}<!--
-->{{#vardefine:attack5weight|{{#expr:{{{attack5dps|0}}} * (1+{{{attack5ap|0}}}) * {{{attack5chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack4weight|{{#expr:{{{attack4dps|0}}} * (1+{{{attack4ap|0}}}/100) * {{{attack4chancefactor|1}}} }} }}<!--
-->{{#vardefine:attack6weight|{{#expr:{{{attack6dps|0}}} * (1+{{{attack6ap|0}}}) * {{{attack6chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack5weight|{{#expr:{{{attack5dps|0}}} * (1+{{{attack5ap|0}}}/100) * {{{attack5chancefactor|1}}} }} }}<!--
-->{{#vardefine:attack7weight|{{#expr:{{{attack7dps|0}}} * (1+{{{attack7ap|0}}}) * {{{attack7chancefactor|1}}} }} }}<!--
+
-->{{#vardefine:attack6weight|{{#expr:{{{attack6dps|0}}} * (1+{{{attack6ap|0}}}/100) * {{{attack6chancefactor|1}}} }} }}<!--
 +
-->{{#vardefine:attack7weight|{{#expr:{{{attack7dps|0}}} * (1+{{{attack7ap|0}}}/100) * {{{attack7chancefactor|1}}} }} }}<!--
 
-->{{#vardefine:maxWeight|{{#ifexpr:{{#var:attack1weight}} > {{#var:attack2weight}} | {{#var:attack1weight}} | {{#var:attack2weight}}}}}}<!--
 
-->{{#vardefine:maxWeight|{{#ifexpr:{{#var:attack1weight}} > {{#var:attack2weight}} | {{#var:attack1weight}} | {{#var:attack2weight}}}}}}<!--
 
-->{{#ifexpr:{{#var:attack3weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack3weight}}}}<!--
 
-->{{#ifexpr:{{#var:attack3weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack3weight}}}}<!--

Revision as of 11:39, 7 December 2024

0