Difference between revisions of "Template:DPS From Attacks"

From RimWorld Wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
-->{{#ifexpr:{{#var:attack7weight}}>={{#var:bestweight}} | {{#vardefine:bestdps|{{#expr:{{#var:bestdps}}+{{{attack7dps|0}}} }} }}{{#vardefine:bestcount|{{#expr:{{#var:bestcount}}+1 }} }} | {{#ifexpr:{{#var:attack7weight}}>={{#var:midweight}} | {{#vardefine:middps|{{#expr:{{#var:middps}}+{{{attack7dps|0}}} }} }}{{#vardefine:midcount|{{#expr:{{#var:midcount}}+1 }} }} }} }}<!--
 
-->{{#ifexpr:{{#var:attack7weight}}>={{#var:bestweight}} | {{#vardefine:bestdps|{{#expr:{{#var:bestdps}}+{{{attack7dps|0}}} }} }}{{#vardefine:bestcount|{{#expr:{{#var:bestcount}}+1 }} }} | {{#ifexpr:{{#var:attack7weight}}>={{#var:midweight}} | {{#vardefine:middps|{{#expr:{{#var:middps}}+{{{attack7dps|0}}} }} }}{{#vardefine:midcount|{{#expr:{{#var:midcount}}+1 }} }} }} }}<!--
 
-->{{#ifeq:{{#var:bestcount}}|0||{{#vardefine:bestdps|{{#expr:{{#var:bestdps}}/{{#var:bestcount}} }} }} }}<!--
 
-->{{#ifeq:{{#var:bestcount}}|0||{{#vardefine:bestdps|{{#expr:{{#var:bestdps}}/{{#var:bestcount}} }} }} }}<!--
-->{{#ifeq:{{#var:midcount}}|0| {{#var:bestdps}} | {{#expr:{{#bestdps}}*0.75 + {{#var:middps}}/{{#var:midcount}}*0.25}} }}
+
-->{{#expr:0.62*{{#ifeq:{{#var:midcount}}|0| {{#var:bestdps}} | {{#expr:{{#bestdps}}*0.75 + {{#var:middps}}/{{#var:midcount}}*0.25}} }} }}

Revision as of 11:43, 7 December 2024

0