Difference between revisions of "Template:Weapon Stats Table/Ranged"
Line 20: | Line 20: | ||
! Market<br>Value | ! Market<br>Value | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Awful {{#var:name}} |
| {{#expr: 0.9*{{#vardefineecho:damage| {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }} round 2}} | | {{#expr: 0.9*{{#vardefineecho:damage| {{formatnum:{{Q|{{#var:name}}|Damage Base}}|R}} }} round 2}} | ||
| {{#if: {{#vardefineecho:avgAP| {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }} | {{%|0.9*{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#vardefineecho:avgAP| {{formatnum:{{Q|{{#var:name}}|Armor Penetration}}|R}}/100 }} | {{%|0.9*{{#var:avgAP}} round 4}} | -}} | ||
Line 41: | Line 41: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Poor {{#var:name}} |
| {{#var:damage}} | | {{#var:damage}} | ||
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | ||
Line 62: | Line 62: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Normal {{#var:name}} |
| {{#var:damage}} | | {{#var:damage}} | ||
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | ||
Line 83: | Line 83: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Good {{#var:name}} |
| {{#var:damage}} | | {{#var:damage}} | ||
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | ||
Line 104: | Line 104: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Excellent {{#var:name}} |
| {{#var:damage}} | | {{#var:damage}} | ||
| {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|{{#var:avgAP}} round 4}} | -}} | ||
Line 125: | Line 125: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Masterwork {{#var:name}} |
| {{#expr: 1.25*{{#var:damage}} round 2}} | | {{#expr: 1.25*{{#var:damage}} round 2}} | ||
| {{#if: {{#var:avgAP}} | {{%|1.25*{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|1.25*{{#var:avgAP}} round 4}} | -}} | ||
Line 146: | Line 146: | ||
|- | |- | ||
− | ! style="text-align:right;" | | + | ! style="text-align:right;" | Legendary {{#var:name}} |
| {{#expr: 1.5*{{#var:damage}} round 2}} | | {{#expr: 1.5*{{#var:damage}} round 2}} | ||
| {{#if: {{#var:avgAP}} | {{%|1.5*{{#var:avgAP}} round 4}} | -}} | | {{#if: {{#var:avgAP}} | {{%|1.5*{{#var:avgAP}} round 4}} | -}} |
Revision as of 12:12, 31 December 2022
This page has been marked as needing documentation of its function and purpose. You can help RimWorld Wiki by creating it here |
Summary
This template is part of the following system generating tables for all weapons:
- Template:Weapon Stats Table - Usually the template that should be called on normal pages. Creates the headers.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
- Template:Weapon Stats Table/Ranged/Row - Creates the rows for the ranged combat table.
- Template:Weapon Stats Table/Melee - Creates the table for melee attacks.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:True Melee DPS Calculator - Does a lot of the calculations and defines essential variables for the /Melee/Row template.
- Template:Weapon Stats Table/Melee/Row - Creates the rows for the melee attacks table.
- Template:Weapon Stats Table/Ranged - Creates the table for ranged combat.
Parameters
If you want to use this template specifically you can specify the weapon as the first parameter:
{{Weapon Stats Table/Ranged|Sniper rifle}}
Otherwise it will use the name of the page it's placed on:
{{Weapon Stats Table/Ranged}}
Examples
Sniper rifle
A weapon with quality, no AOE, and range greater than long
{{Weapon Stats Table/Ranged|Sniper rifle}}
For the full effects of qualities, see Quality.
Chain shotgun
A weapon with quality, no AOE, and range below long
{{Weapon Stats Table/Ranged|Chain shotgun}}
For the full effects of qualities, see Quality.
Incendiary launcher
A weapon with quality and AOE
{{Weapon Stats Table/Ranged|Incendiary launcher}}
For the full effects of qualities, see Quality.
Frag grenades
A weapon with no quality and AOE
{{Weapon Stats Table/Ranged|Frag grenades}}
For the full effects of qualities, see Quality.
Charge blaster turret
A weapon with no quality and no AOE
{{Weapon Stats Table/Ranged|Charge blaster turret}}
For the full effects of qualities, see Quality.
The above documentation is transcluded from Template:Weapon Stats Table/Ranged/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. |
Template:Weapon Quality Table/Ranged Template:Weapon Quality Table/Ranged