Difference between revisions of "Template:Ranged Weapon Comparison/datapoints"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#vardefine:dps|{{Q|{{{name}}}|Maximum {{#if:{{{bandolier|}}}|Bandolier|}}{{#if:{{{triggerhappy|}}}|Triggerhappy|}} DPS|0}}}}{{#vardefine:range|{{Q|{{{name}}}|Range|0}}}}<!--
+
{{#vardefine:dps|{{#expr:{{Q|{{{name}}}|Maximum {{#if:{{{bandolier|}}}|Bandolier|}}{{#if:{{{triggerhappy|}}}|Triggerhappy|}} DPS|0}}*{{Apparel AP Calculation|armor1={{{armor|0}}}|ap={{{ap|0}}}}}/100}}}}{{#vardefine:range|{{Q|{{{name}}}|Range|0}}}}<!--
 
-->{{#vardefine:dpsTouch|{{#expr:{{#var:dps}}*{{Min|{{#expr:{{Q|{{{name}}}|Accuracy (Touch) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 
-->{{#vardefine:dpsTouch|{{#expr:{{#var:dps}}*{{Min|{{#expr:{{Q|{{{name}}}|Accuracy (Touch) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 
-->{{#vardefine:dpsShort|{{#expr:{{#var:dps}}*{{Min|{{#expr:{{Q|{{{name}}}|Accuracy (Short) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 
-->{{#vardefine:dpsShort|{{#expr:{{#var:dps}}*{{Min|{{#expr:{{Q|{{{name}}}|Accuracy (Short) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--

Revision as of 10:08, 25 December 2024

0