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

From RimWorld Wiki
Jump to navigation Jump to search
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#vardefine:dps|{{Q|{{{name}}}|Maximum {{#if:{{{bandolier|}}}|Bandolier|}}{{#if:{{{triggerhappy|}}}|Triggerhappy|}} DPS|0}}}}{{#vardefine:range|{{Q|{{{name}}}|Range|0}}}}{{#vardefine:dpsTouch|{{#expr:{{#var:dps}}*{{#ifexpr:{{#vardefineecho|max|{{#expr:{{Q|{{{name}}}|Accuracy (Touch) Base|0}}*{{{accuracyFactor|1}}}}}}}>1|1|{{#var:max}}}}*{{{damageFactor|1}}}/100}}}}{{#vardefine:dpsShort|{{#expr:{{#var:dps}}*{{#ifexpr:{{#vardefineecho|max|{{#expr:{{Q|{{{name}}}|Accuracy (Short) Base|0}}*{{{accuracyFactor|1}}}}}}}>1|1|{{#var:max}}}}*{{{damageFactor|1}}}/100}}}}{{#vardefine:dpsMedium|{{#expr:{{#var:dps}}*{{#ifexpr:{{#vardefineecho|max|{{#expr:{{Q|{{{name}}}|Accuracy (Medium) Base|0}}*{{{accuracyFactor|1}}}}}}}>1|1|{{#var:max}}}}*{{{damageFactor|1}}}/100}}}}{{#vardefine:dpsLong|{{#expr:{{#var:dps}}*{{#ifexpr:{{#vardefineecho|max|{{#expr:{{Q|{{{name}}}|Accuracy (Long) Base|0}}*{{{accuracyFactor|1}}}}}}}>1|1|{{#var:max}}}}*{{{damageFactor|1}}}/100}}}}<!--
+
{{#vardefine:dps|{{Q|{{{name}}}|Maximum {{#if:{{{bandolier|}}}|Bandolier|}}{{#if:{{{triggerhappy|}}}|Triggerhappy|}} DPS|0}}}}{{#vardefine:range|{{Q|{{{name}}}|Range|0}}}}<!--
 +
-->{{#vardefine:dpsTouch|{{#expr:{{#var:dps}}*{{Max|{{#expr:{{Q|{{{name}}}|Accuracy (Touch) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 +
-->{{#vardefine:dpsShort|{{#expr:{{#var:dps}}*{{Max|{{#expr:{{Q|{{{name}}}|Accuracy (Short) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 +
-->{{#vardefine:dpsMedium|{{#expr:{{#var:dps}}*{{Max|{{#expr:{{Q|{{{name}}}|Accuracy (Medium) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 +
-->{{#vardefine:dpsLong|{{#expr:{{#var:dps}}*{{Max|{{#expr:{{Q|{{{name}}}|Accuracy (Long) Base|0}}*{{{accuracyFactor|1}}}/100}}|1}}*{{{damageFactor|1}}}}}}}<!--
 
Python code for generation:
 
Python code for generation:
 
output=''
 
output=''

Revision as of 08:05, 25 December 2024

0,0,0