Difference between revisions of "Template:Weapon Iterated DPS Chart"
(Tried to add grid lines for the y axis on charts to make them readable) |
(Updates to match max range of all weapons (Uranium slug turret, 45.9 cells).) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
-->{{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }}<!-- | -->{{#vardefine: x | {{#explode: {{#var: string }} | && |0 }} }}<!-- | ||
-->{{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }}<!-- | -->{{#vardefine: y | {{#explode: {{#var: string }} | && |1 }} }}<!-- | ||
− | -->{{ | + | -->{{Graph:Chart|width=400 |
|height=200 | |height=200 | ||
|type=area | |type=area | ||
+ | |xGrid= | ||
|yGrid= | |yGrid= | ||
|xAxisTitle=Range (Cells) | |xAxisTitle=Range (Cells) | ||
|xAxisMin = 0 | |xAxisMin = 0 | ||
− | |xAxisMax = | + | |xAxisMax = 46 |
|yAxisMin = 1 | |yAxisMin = 1 | ||
|yAxisMax = {{#ifeq: {{Q|{{{1|}}}|Maximum DPS}}|100|100|30}} | |yAxisMax = {{#ifeq: {{Q|{{{1|}}}|Maximum DPS}}|100|100|30}} | ||
Line 14: | Line 15: | ||
|x= {{#var: x}} | |x= {{#var: x}} | ||
|y1= {{#var: y}} | |y1= {{#var: y}} | ||
− | }}</includeonly><noinclude> | + | }}</includeonly><noinclude>{{Recode|reason=If we add a simple multiplier to the initial parameters and send it down the line to the iterator, we can see the effect of aiming Time and ranged cool down factor}} |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 18:41, 9 August 2024
This page has been suggested for recoding. Reason: If we add a simple multiplier to the initial parameters and send it down the line to the iterator, we can see the effect of aiming Time and ranged cool down factor. You can help RimWorld Wiki by improving it. |
Summary[edit]
Creates a graph showing the DPS that a ranged weapon is capable of at each range, including parameters for accounting for quality and the shooting accuracy of the wielder.
The dimensions and display are standardized to offer ease of comparison.
This template is dependent on Template: Weapon DPS Iterator, which in turn is dependent on Template:Weapon Iterated DPS Chart Segment
Usage[edit]
Without parameters, the template will display the chart for the current PAGENAME, assuming normal quality. For example, if the following was used on the assault rifle page:
{{Weapon Iterated DPS Chart}}
it would produce:
The first parameter, if present, allows the weapon to be chosen if it is not used on the page of the weapon in question. The template will display the chart for the chosen weapon, assuming normal quality. For example, if the following was used on any page:
{{Weapon Iterated DPS Chart|Sniper rifle}}
it would produce:
The second parameter, if present, allows the quality of the weapon to be chosen. It can be used with or without first parameter. The template will display the chart for the chosen weapon and quality. For example, if the following was used on the minigun page
{{Weapon Iterated DPS Chart||Legendary}}
it would produce:
The third parameter, if present, allows the Shooting Accuracy of the shooter to be chosen, expressed as a value from 0 to 1. It can be used with or without first and second parameter. The template will display the chart for the chosen weapon, quality and shooting accuracy. For example, if the following was used on the Charge rifle page
{{Weapon Iterated DPS Chart|||0.95}}
it would produce:
The above documentation is transcluded from Template:Weapon Iterated DPS Chart/doc. (edit | history) 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. |