Template:Weapon Stats Table

From RimWorld Wiki
Revision as of 13:49, 28 August 2020 by Harakoni (talk | contribs) (Creating page - not currently valid for ranged but will be.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 1500
Poor Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 1125
Normal Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 1125
Good Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 1405
Excellent Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 2110
Masterwork Expression error: Missing operand for *.% Expression error: Missing operand for *.% Silver 4110
Legendary 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 8.704% 8.8% Silver 240
Poor 9.792% 9.9% Silver 180
Normal 10.88% 11% Silver 180
Good 11.968% 12.1% Silver 225
Excellent 13.056% 13.2% Silver 335
Masterwork 15.776% 15.95% Silver 845
Legendary 17.952% 18.15% Silver 3845
{{Weapon Stats Table | Incendiary launcher|}}

Produces:

Quality Table

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