Difference between revisions of "Template:Weapon Stats Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
}}
 
}}
 
{{#vardefine:value|    {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}
 
{{#vardefine:value|    {{formatnum:{{Q|{{#var:name}}|Market Value Base}}|R}}}}
{| {{STDT|sortable c_03 text-center}}
+
<div style="float: left;">{| {{STDT|sortable c_03 text-center}}
 
|-
 
|-
 
! Quality
 
! Quality
Line 193: Line 193:
 
| {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 5*{{#var:value|}}}} < {{ #expr: 3000+{{#var:value|}}}} | {{ #expr: 5*{{#var:value|}}}} | {{ #expr: 3000+{{#var:value|}}}}}}  }}}}
 
| {{icon|silver| {{Market Value | {{#ifexpr: {{ #expr: 5*{{#var:value|}}}} < {{ #expr: 3000+{{#var:value|}}}} | {{ #expr: 5*{{#var:value|}}}} | {{ #expr: 3000+{{#var:value|}}}}}}  }}}}
 
|-
 
|-
|}</includeonly>
+
|}</div></includeonly>
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:09, 5 September 2020


Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template generates a table summarizing stats for an given weapon, including average damage per second, armor piercing and Market Value, for each quality tier (if applicable) and every stuff option (if applicable).

Note that at the time of writing, weapons with no quality are hardcoded into the template, rather than pulled from the page properties. New no-quality weapons must be manually excepted from the template.

Property:Mode must be set to properly display melee weapons, otherwise it will default to the ranged format.

This template is part of the following system generating tables for all weapons:

Parameters

The first parameter (if present) will specify which weapon to generate the template for. If absent, {{PAGENAME}} will be used.

The no header parameter will disable the top heading, but not the subheadings for ranged and melee attacks, when set to true.

The header level parameter takes numbers and sets the size of the headings - note that top heading is sized by the number directly, with subheading one size smaller. Default value is 2. It can be used with or without no header.

Example usage

{{Weapon Stats Table | Persona monosword}}

Produces:

Quality Table

{| class="sortable c_03 text-center table"

|- ! Quality ! Average DPS ! Average AP

Accuracy
(Touch) Accuracy
(Short) Accuracy
(Medium) Accuracy
(Long) DPS
(Optimal) DPS
(Touch) DPS
(Short) DPS
(Medium) DPS
(Long)

! Market Value |- ! Awful Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 1500 |-


! Poor Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 1125 |-

! Normal Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 1125 |-

! Good Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 1405 |-

! Excellent Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 2110 |-

! Masterwork Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 4110 |-

! Legendary Persona monosword

Expression error: Unexpected round operator. Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.%

|| - || - || - || - | Silver 7110 |-

|}
{{Weapon Stats Table | Assault rifle|}}

Produces:

Quality Table

{| class="sortable c_03 text-center table"

|- ! Quality ! Average DPS ! Average AP

Accuracy
(Touch) Accuracy
(Short) Accuracy
(Medium) Accuracy
(Long) DPS
(Optimal) DPS
(Touch) DPS
(Short) DPS
(Medium) DPS
(Long)

! Market Value |- ! Awful Assault rifle

10.88 16% 48% 56% 52% 44% 10.88

| 5.22 | 6.09 | 5.66 | 4.79 | Silver 240 |-


! Poor Assault rifle

10.88 16% 54% 56% 58.5% 49.5% 10.88

| 5.88 | 6.85 | 6.36 | 5.39 | Silver 180 |-

! Normal Assault rifle

10.88 16% 60% 70% 65% 55% 10.88

| 6.53 | 7.62 | 7.07 | 5.98 | Silver 180 |-

! Good Assault rifle

10.88 16% 66% 77% 71.5% 60.5% 10.88

| 7.18 | 8.38 | 7.78 | 6.58 | Silver 225 |-

! Excellent Assault rifle

10.88 16% 72% 84% 78% 66% 10.88

| 7.83 | 9.14 | 8.49 | 7.18 | Silver 335 |-

! Masterwork Assault rifle

13.6 20% 81% 94.5% 87.75% 74.25% 10.88

| 8.81 | 10.28 | 9.55 | 8.08 | Silver 845 |-

! Legendary Assault rifle

16.32 24% 90% 105% 97.5% 82.5% 10.88

| 9.79 | 11.42 | 10.61 | 8.98 | Silver 3845 |-

|}
{{Weapon Stats Table | Incendiary launcher|}}

Produces:

Quality Table

{| class="sortable c_03 text-center table"

|- ! Quality ! Average DPS ! Average AP

Accuracy
(Touch) Accuracy
(Short) Accuracy
(Medium) Accuracy
(Long) DPS
(Optimal) DPS
(Touch) DPS
(Short) DPS
(Medium) DPS
(Long)

! Market Value |- ! Awful Incendiary launcher

1.43 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 170 |-


! Poor Incendiary launcher

1.43 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 128 |-

! Normal Incendiary launcher

1.43 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 128 |-

! Good Incendiary launcher

1.43 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 159 |-

! Excellent Incendiary launcher

1.43 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 240 |-

! Masterwork Incendiary launcher

1.79 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 600 |-

! Legendary Incendiary launcher

2.15 0% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% Expression error: Unexpected round operator.% 1.43

|| - || - || - || - | Silver 2990 |-

|}