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

From RimWorld Wiki
Jump to navigation Jump to search
 
Line 30: Line 30:
 
{{#vardefine: upperRangeBracketAccuracy | {{#var: accuracyLong}} }}
 
{{#vardefine: upperRangeBracketAccuracy | {{#var: accuracyLong}} }}
 
{{#vardefine: upperRangeBracket |  40 }} }}
 
{{#vardefine: upperRangeBracket |  40 }} }}
{{#ifexpr: floor({{Q|{{#var:name}}|Minimum Range|0}}) < {{#var:currentRange}} |
+
{{#ifexpr: floor({{#show:{{#var:name}}|?Minimum Range|default=0}}) < {{#var:currentRange}} |
 
{{#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}}) }} }} }}</includeonly><noinclude>
 
{{#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}}) }} }} }}</includeonly><noinclude>
 
{{Documentation wanted}}
 
{{Documentation wanted}}
 
{{Documentation}}
 
{{Documentation}}
 +
{{Weapon Iterated DPS Chart|Uranium slug turret}}
 
[[Category:Math templates]]
 
[[Category:Math templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:52, 10 August 2024


Documentation icon Template documentation[create]