Difference between revisions of "Template:Weapon Iterated DPS Chart Segment"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | {{#vardefine: currentRange | {{{1|}}} }} | + | <includeonly>{{#vardefine: currentRange | {{{1|}}} }} |
{{#ifexpr: {{#var:currentRange}} > 3 | | {{#ifexpr: {{#var:currentRange}} > 3 | | ||
{{#vardefine: lowerRangeBracket | 3 }} | {{#vardefine: lowerRangeBracket | 3 }} | ||
Line 32: | Line 32: | ||
{{#ifexpr: floor({{Q|{{#var:name}}|Minimum Range|0}}) < {{#var:currentRange}} | | {{#ifexpr: floor({{Q|{{#var:name}}|Minimum Range|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}}) }} }} }} | + | {{#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}} | ||
+ | [[Category:Math templates]] | ||
+ | </noinclude> |
Revision as of 09:20, 23 October 2022
This page has been marked as needing documentation of its function and purpose. You can help RimWorld Wiki by creating it here |
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |