Difference between revisions of "Template:Weapon Stats Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>==Quality Table==
 
<includeonly>==Quality Table==
 
{{#vardefine:name| {{{ 1 | {{PAGENAME}} }}} }}
 
{{#vardefine:name| {{{ 1 | {{PAGENAME}} }}} }}
 
 
  
 
{{#ifeq: {{{ 2|}}} | Melee |  
 
{{#ifeq: {{{ 2|}}} | Melee |  
Line 21: Line 19:
  
  
! '''Awful'''
+
! '''Awful {{#var:name}}'''
 
| {{ #expr: 0.8*{{#var:avgDPS|}}}}
 
| {{ #expr: 0.8*{{#var:avgDPS|}}}}
 
| {{ #expr: 0.8*{{#var:avgAP|}}}}%
 
| {{ #expr: 0.8*{{#var:avgAP|}}}}%
Line 28: Line 26:
  
  
! '''Poor'''
+
! '''Poor {{#var:name}}'''
 
| {{ #expr: 0.9*{{#var:avgDPS|}}}}
 
| {{ #expr: 0.9*{{#var:avgDPS|}}}}
 
| {{ #expr: 0.9*{{#var:avgAP|}}}}%
 
| {{ #expr: 0.9*{{#var:avgAP|}}}}%
Line 34: Line 32:
 
|-
 
|-
  
! '''Normal'''
+
! '''Normal {{#var:name}}'''
 
| {{ #expr: 1.0*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.0*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.0*{{#var:avgAP|}}}}%
 
| {{ #expr: 1.0*{{#var:avgAP|}}}}%
Line 40: Line 38:
 
|-
 
|-
  
! '''Good'''
+
! '''Good {{#var:name}}'''
 
| {{ #expr: 1.1*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.1*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.1*{{#var:avgAP|}}}}%
 
| {{ #expr: 1.1*{{#var:avgAP|}}}}%
Line 46: Line 44:
 
|-
 
|-
  
! '''Excellent'''
+
! '''Excellent {{#var:name}}'''
 
| {{ #expr: 1.2*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.2*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.2*{{#var:avgAP|}}}}%
 
| {{ #expr: 1.2*{{#var:avgAP|}}}}%
Line 52: Line 50:
 
|-
 
|-
  
! '''Masterwork'''
+
! '''Masterwork {{#var:name}}'''
 
| {{ #expr: 1.45*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.45*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.45*{{#var:avgAP|}}}}%
 
| {{ #expr: 1.45*{{#var:avgAP|}}}}%
Line 58: Line 56:
 
|-
 
|-
  
! '''Legendary'''
+
! '''Legendary {{#var:name}}'''
 
| {{ #expr: 1.65*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.65*{{#var:avgDPS|}}}}
 
| {{ #expr: 1.65*{{#var:avgAP|}}}}%
 
| {{ #expr: 1.65*{{#var:avgAP|}}}}%

Revision as of 14:00, 28 August 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

Quality Average DPS Average AP Market Value
Awful Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 1500
Poor Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 1125
Normal Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 1125
Good Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 1405
Excellent Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 2110
Masterwork Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 4110
Legendary Persona monosword Expression error: Missing operand for *. Expression error: Missing operand for *.% Silver 7110
{{Weapon Stats Table | Assault rifle|}}

Produces:

Quality Table

Quality Average DPS Average AP Market Value
Awful Assault rifle 8.704 8.8% Silver 240
Poor Assault rifle 9.792 9.9% Silver 180
Normal Assault rifle 10.88 11% Silver 180
Good Assault rifle 11.968 12.1% Silver 225
Excellent Assault rifle 13.056 13.2% Silver 335
Masterwork Assault rifle 15.776 15.95% Silver 845
Legendary Assault rifle 17.952 18.15% Silver 3845
{{Weapon Stats Table | Incendiary launcher|}}

Produces:

Quality Table

Quality Average DPS Average AP Market Value
Awful Incendiary launcher 1.144 8% Silver 170
Poor Incendiary launcher 1.287 9% Silver 128
Normal Incendiary launcher 1.43 10% Silver 128
Good Incendiary launcher 1.573 11% Silver 159
Excellent Incendiary launcher 1.716 12% Silver 240
Masterwork Incendiary launcher 2.0735 14.5% Silver 600
Legendary Incendiary launcher 2.3595 16.5% Silver 2990