Difference between revisions of "Template:True Melee DPS Calculator"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}
 
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }}
  
{{#switch: {{#lc:{{{ 2 |}}}}}
+
{{#vardefine:material | {{{2|}}} }}
 +
 
 +
{{#switch: {{#lc:{{{ 3 |}}}}}
 
  | awful =      {{#vardefine:qualityFactor | 0.80}}
 
  | awful =      {{#vardefine:qualityFactor | 0.80}}
 
  | poor =      {{#vardefine:qualityFactor | 0.90}}
 
  | poor =      {{#vardefine:qualityFactor | 0.90}}
Line 18: Line 20:
 
{{#vardefine:qualityFactor | 1.00}}
 
{{#vardefine:qualityFactor | 1.00}}
  
{{#vardefine:name | Clawer }}
 
{{#vardefine:qualityFactor | 1.00}}
 
  
  
{{#vardefine: attack1InitialSelectionWeight | {{#expr:{{Q|{{#var: name}}|Attack 1 Damage}}*{{#var:qualityFactor}} * (1 + {{Q|{{#var: name}}|Attack 1 AP}}*{{#var:qualityFactor}}/100) * {{Q|{{#var: name}}|Attack 1 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 1 Cooldown}}) round 1}} }}
+
{{#switch: {{Q|{{#var: name}}|Attack 1 Type}}
{{#vardefine: attack2InitialSelectionWeight | {{#expr: {{Q|{{#var: name}}|Attack 2 Damage}}*{{#var:qualityFactor}} * (1 + {{Q|{{#var: name}}|Attack 2 AP}}*{{#var:qualityFactor}}/100) * {{Q|{{#var: name}}|Attack 2 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 2 Cooldown}}) round 1}} }}
+
| Cut
{{#vardefine: attack3InitialSelectionWeight | {{#expr: {{Q|{{#var: name}}|Attack 3 Damage}}*{{#var:qualityFactor}} * (1 + {{Q|{{#var: name}}|Attack 3 AP}}*{{#var:qualityFactor}}/100) * {{Q|{{#var: name}}|Attack 3 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 3 Cooldown}}) round 1}} }}
+
| Stab
{{#vardefine: attack4InitialSelectionWeight | {{#expr: {{Q|{{#var: name}}|Attack 4 Damage}}*{{#var:qualityFactor}} * (1 + {{Q|{{#var: name}}|Attack 4 AP}}*{{#var:qualityFactor}}/100) * {{Q|{{#var: name}}|Attack 4 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 4 Cooldown}}) round 1}} }}
+
| RangedStab
 +
| Bullet
 +
| Arrow
 +
| ArrowHighVelocity
 +
| Scratch
 +
| Bite
 +
| Bomb
 +
| BombSuper
 +
| Thump =
 +
{{#vardefine:attack1Damage| {{#expr: {{Q|{{#var: name}}|Attack 1 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}    }}}}
 +
{{#vardefine:attack1AP    | {{#expr: {{Q|{{#var: name}}|Attack 1 AP}}   *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}/100 }}}}
 +
| Crush
 +
| Blunt
 +
| Poke
 +
| Demolish =
 +
{{#vardefine:attack1Damage| {{#expr: {{Q|{{#var: name}}|Attack 1 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}    }}}}
 +
{{#vardefine:attack1AP    | {{#expr: {{Q|{{#var: name}}|Attack 1 AP}}    *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}/100 }}}}
 +
| {{Error|Unrecognised Damage Type: {{Q|{{#var: name}}|Attack 1 Type}}}}
 +
}}
 +
 
 +
{{#switch: {{Q|{{#var: name}}|Attack 2 Type}}
 +
| Cut
 +
| Stab
 +
| RangedStab
 +
| Bullet
 +
| Arrow
 +
| ArrowHighVelocity
 +
| Scratch
 +
| Bite
 +
| Bomb
 +
| BombSuper
 +
| Thump =
 +
{{#vardefine:attack2Damage| {{#expr: {{Q|{{#var: name}}|Attack 2 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}    }}}}
 +
{{#vardefine:attack2AP    | {{#expr: {{Q|{{#var: name}}|Attack 2 AP}}   *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}/100 }}}}
 +
| Crush
 +
| Blunt
 +
| Poke
 +
| Demolish =
 +
{{#vardefine:attack2Damage| {{#expr: {{Q|{{#var: name}}|Attack 2 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}    }}}}
 +
{{#vardefine:attack2AP    | {{#expr: {{Q|{{#var: name}}|Attack 2 AP}}    *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}/100 }}}}
 +
| {{Error|Unrecognised Damage Type: {{Q|{{#var: name}}|Attack 2 Type}}}}
 +
}}
 +
{{#switch: {{Q|{{#var: name}}|Attack 3 Type}}
 +
| Cut
 +
| Stab
 +
| RangedStab
 +
| Bullet
 +
| Arrow
 +
| ArrowHighVelocity
 +
| Scratch
 +
| Bite
 +
| Bomb
 +
| BombSuper
 +
| Thump =
 +
{{#vardefine:attack3Damage| {{#expr: {{Q|{{#var: name}}|Attack 3 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}    }}}}
 +
{{#vardefine:attack3AP    | {{#expr: {{Q|{{#var: name}}|Attack 3 AP}}   *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}/100 }}}}
 +
| Crush
 +
| Blunt
 +
| Poke
 +
| Demolish =
 +
{{#vardefine:attack3Damage| {{#expr: {{Q|{{#var: name}}|Attack 3 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}    }}}}
 +
{{#vardefine:attack3AP    | {{#expr: {{Q|{{#var: name}}|Attack 3 AP}}    *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}/100 }}}}
 +
| {{Error|Unrecognised Damage Type: {{Q|{{#var: name}}|Attack 3 Type}}}}
 +
}}
 +
{{#switch: {{Q|{{#var: name}}|Attack 4 Type}}
 +
| Cut
 +
| Stab
 +
| RangedStab
 +
| Bullet
 +
| Arrow
 +
| ArrowHighVelocity
 +
| Scratch
 +
| Bite
 +
| Bomb
 +
| BombSuper
 +
| Thump =
 +
{{#vardefine:attack4Damage| {{#expr: {{Q|{{#var: name}}|Attack 4 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}    }}}}
 +
{{#vardefine:attack4AP    | {{#expr: {{Q|{{#var: name}}|Attack 4 AP}}    *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Sharp Damage Factor|1}}/100 }}}}
 +
| Crush
 +
| Blunt
 +
| Poke
 +
| Demolish =
 +
{{#vardefine:attack4Damage| {{#expr: {{Q|{{#var: name}}|Attack 4 Damage}}*{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}    }}}}
 +
{{#vardefine:attack4AP    | {{#expr: {{Q|{{#var: name}}|Attack 4 AP}}   *{{#var:qualityFactor}}*{{Q|{{#var:material}}|Melee Blunt Damage Factor|1}}/100 }}}}
 +
| {{Error|Unrecognised Damage Type: {{Q|{{#var: name}}|Attack 4 Type}}}}
 +
}}
 +
 
 +
{{#vardefine: attack1InitialSelectionWeight | {{#expr: {{#var:attack1Damage}} * (1 + {{#var:attack1AP}}) * {{Q|{{#var: name}}|Attack 1 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 1 Cooldown}}) round 1}} }}
 +
{{#vardefine: attack2InitialSelectionWeight | {{#expr: {{#var:attack2Damage}} * (1 + {{#var:attack2AP}}) * {{Q|{{#var: name}}|Attack 2 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 2 Cooldown}}) round 1}} }}
 +
{{#vardefine: attack3InitialSelectionWeight | {{#expr: {{#var:attack3Damage}} * (1 + {{#var:attack3AP}}) * {{Q|{{#var: name}}|Attack 3 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 3 Cooldown}}) round 1}} }}
 +
{{#vardefine: attack4InitialSelectionWeight | {{#expr: {{#var:attack4Damage}} * (1 + {{#var:attack4AP}}) * {{Q|{{#var: name}}|Attack 4 Chance Factor|1}} / ({{Q|{{#var: name}}|Attack 4 Cooldown}}) round 1}} }}
  
  

Revision as of 12:17, 17 September 2021














10.6

10.6

6.1

1.3





Front left paw = Best best

Front right paw = Best best

Teeth = Mid mid

Head = Worst



True DPS =

(17/2 * (0.75/2))+

(17/2 * (0.75/2))+

(23.6/2.6 * (0.25/1)) +

(11/2 * 0)