Difference between revisions of "Template:DPS From Attacks"

From RimWorld Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
-->{{#vardefine:attack7weight|{{#expr:{{{attack7dps|0}}} * (1+{{{attack7ap|0}}}/100) * {{{attack7chancefactor|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|{{#var:attack3weight}}}}}}<!--
-->{{#ifexpr:{{#var:attack4weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack4weight}}}}<!--
+
-->{{#ifexpr:{{#var:attack4weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|{{#var:attack4weight}}}}}}<!--
-->{{#ifexpr:{{#var:attack5weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack5weight}}}}<!--
+
-->{{#ifexpr:{{#var:attack5weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|{{#var:attack5weight}}}}}}<!--
-->{{#ifexpr:{{#var:attack6weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack6weight}}}}<!--
+
-->{{#ifexpr:{{#var:attack6weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|{{#var:attack6weight}}}}}}<!--
-->{{#ifexpr:{{#var:attack7weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|attack7weight}}}}<!--
+
-->{{#ifexpr:{{#var:attack7weight}} > {{#var:maxWeight}} | {{#vardefine:maxWeight|{{#var:attack7weight}}}}}}<!--
 
-->{{#vardefine:bestweight|{{#expr:{{#var:maxWeight}}*0.95}}}}<!--
 
-->{{#vardefine:bestweight|{{#expr:{{#var:maxWeight}}*0.95}}}}<!--
 
-->{{#vardefine:midweight|{{#expr:{{#var:maxWeight}}*0.25}}}}<!--
 
-->{{#vardefine:midweight|{{#expr:{{#var:maxWeight}}*0.25}}}}<!--

Revision as of 22:05, 8 December 2024

0