Difference between revisions of "Template:Weapon Iterated DPS Chart Segment"

From RimWorld Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Touch) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Touch) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  12 }}
+
{{#vardefine: upperRangeBracket |  12 }} }}
}}
 
 
{{#ifexpr: {{#var:currentRange}} = 12 |
 
{{#ifexpr: {{#var:currentRange}} = 12 |
 
{{#vardefine: lowerRangeBracket |  11 }}
 
{{#vardefine: lowerRangeBracket |  11 }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  12 }}
+
{{#vardefine: upperRangeBracket |  12 }} }}
}}
 
 
{{#ifexpr: {{#var:currentRange}} > 12 |
 
{{#ifexpr: {{#var:currentRange}} > 12 |
 
{{#vardefine: lowerRangeBracket |  12 }}
 
{{#vardefine: lowerRangeBracket |  12 }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Short) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  25 }}
+
{{#vardefine: upperRangeBracket |  25 }}}}
}}
 
 
{{#ifexpr: {{#var:currentRange}} = 25 |
 
{{#ifexpr: {{#var:currentRange}} = 25 |
 
{{#vardefine: lowerRangeBracket |  24 }}
 
{{#vardefine: lowerRangeBracket |  24 }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  25 }}
+
{{#vardefine: upperRangeBracket |  25 }} }}
}}
 
 
{{#ifexpr: {{#var:currentRange}} > 25 |
 
{{#ifexpr: {{#var:currentRange}} > 25 |
 
{{#vardefine: lowerRangeBracket |  25 }}
 
{{#vardefine: lowerRangeBracket |  25 }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Medium) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  40 }}
+
{{#vardefine: upperRangeBracket |  40 }} }}
}}
 
 
{{#ifexpr: {{#var:currentRange}} = 40 |
 
{{#ifexpr: {{#var:currentRange}} = 40 |
 
{{#vardefine: lowerRangeBracket |  39 }}
 
{{#vardefine: lowerRangeBracket |  39 }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: lowerRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#expr:{{Q|{{#var: name}}|Accuracy (Long) Base}}*{{#var:rangedAccuracyFactor}}/100 }} }}
{{#vardefine: upperRangeBracket |  40 }}
+
{{#vardefine: upperRangeBracket |  40 }} }}
}}
 
 
{{#vardefine: XAxisString | {{#var: XAxisString}}, {{#var:currentRange}}}}
 
{{#vardefine: XAxisString | {{#var: XAxisString}}, {{#var:currentRange}}}}
 
{{#vardefine: YAxisString | {{#var: YAxisString}}, {{#expr: {{#var: skillFactor}}^{{#var:currentRange}} * (({{#var:upperRangeBracket}}-{{#var:currentRange}})*{{#var: lowerRangeBracketAccuracy}} + ({{#var:currentRange}}-{{#var:lowerRangeBracket}})*{{#var: upperRangeBracketAccuracy}})*{{#var:DPS}}/({{#var:upperRangeBracket}}-{{#var:lowerRangeBracket}}) }}  }}
 
{{#vardefine: YAxisString | {{#var: YAxisString}}, {{#expr: {{#var: skillFactor}}^{{#var:currentRange}} * (({{#var:upperRangeBracket}}-{{#var:currentRange}})*{{#var: lowerRangeBracketAccuracy}} + ({{#var:currentRange}}-{{#var:lowerRangeBracket}})*{{#var: upperRangeBracketAccuracy}})*{{#var:DPS}}/({{#var:upperRangeBracket}}-{{#var:lowerRangeBracket}}) }}  }}

Revision as of 11:21, 6 February 2021

Expression error: Unexpected > operator. Expression error: Unexpected = operator. Expression error: Unexpected > operator. Expression error: Unexpected = operator. Expression error: Unexpected > operator. Expression error: Unexpected = operator.