Difference between revisions of "Template:Weapon Material Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
{{#vardefine: attack1AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#vardefine: attack1AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}
| Cut = {{#vardefine:attack1Type|Sharp}}
+
| Cut
| Stab = {{#vardefine:attack1Type|Sharp}}
+
| Stab
| RangedStab = {{#vardefine:attack1Type|Sharp}}
+
| RangedStab
| Bullet = {{#vardefine:attack1Type|Sharp}}
+
| Bullet
| Arrow = {{#vardefine:attack1Type|Sharp}}
+
| Arrow  
| ArrowHighVelocity = {{#vardefine:attack1Type|Sharp}}
+
| ArrowHighVelocity  
| Scratch = {{#vardefine:attack1Type|Sharp}}
+
| Scratch
| Bite = {{#vardefine:attack1Type|Sharp}}
+
| Bite  
| Bomb = {{#vardefine:attack1Type|Sharp}}
+
| Bomb
| BombSuper = {{#vardefine:attack1Type|Sharp}}
+
| BombSuper
 
| Thump = {{#vardefine:attack1Type|Sharp}}
 
| Thump = {{#vardefine:attack1Type|Sharp}}
| Crush = {{#vardefine:attack1Type|Blunt}}
+
| Crush
| Blunt = {{#vardefine:attack1Type|Blunt}}
+
| Blunt
| Poke = {{#vardefine:attack1Type|Blunt}}
+
| Poke
 
| Demolish = {{#vardefine:attack1Type|Blunt}}
 
| Demolish = {{#vardefine:attack1Type|Blunt}}
 
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}}}
 
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}}}
Line 33: Line 33:
 
{{#vardefine: attack2AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#vardefine: attack2AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}
| Cut = {{#vardefine:attack2Type|Sharp}}
+
| Cut
| Stab = {{#vardefine:attack2Type|Sharp}}
+
| Stab
| RangedStab = {{#vardefine:attack2Type|Sharp}}
+
| RangedStab
| Bullet = {{#vardefine:attack2Type|Sharp}}
+
| Bullet
| Arrow = {{#vardefine:attack2Type|Sharp}}
+
| Arrow  
| ArrowHighVelocity = {{#vardefine:attack2Type|Sharp}}
+
| ArrowHighVelocity  
| Scratch = {{#vardefine:attack2Type|Sharp}}
+
| Scratch
| Bite = {{#vardefine:attack2Type|Sharp}}
+
| Bite  
| Bomb = {{#vardefine:attack2Type|Sharp}}
+
| Bomb
| BombSuper = {{#vardefine:attack2Type|Sharp}}
+
| BombSuper
 
| Thump = {{#vardefine:attack2Type|Sharp}}
 
| Thump = {{#vardefine:attack2Type|Sharp}}
| Crush = {{#vardefine:attack2Type|Blunt}}
+
| Crush
| Blunt = {{#vardefine:attack2Type|Blunt}}
+
| Blunt
| Poke = {{#vardefine:attack2Type|Blunt}}
+
| Poke
 
| Demolish = {{#vardefine:attack2Type|Blunt}}
 
| Demolish = {{#vardefine:attack2Type|Blunt}}
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}}}
+
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 2 Type}}}}
 
}}
 
}}
  
Line 55: Line 55:
 
{{#vardefine: attack3AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#vardefine: attack3AP      |{{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 AP}}}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}
 
{{#switch: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}
| Cut = {{#vardefine:attack3Type|Sharp}}
+
| Cut
| Stab = {{#vardefine:attack3Type|Sharp}}
+
| Stab
| RangedStab = {{#vardefine:attack3Type|Sharp}}
+
| RangedStab
| Bullet = {{#vardefine:attack3Type|Sharp}}
+
| Bullet
| Arrow = {{#vardefine:attack3Type|Sharp}}
+
| Arrow  
| ArrowHighVelocity = {{#vardefine:attack3Type|Sharp}}
+
| ArrowHighVelocity  
| Scratch = {{#vardefine:attack3Type|Sharp}}
+
| Scratch
| Bite = {{#vardefine:attack3Type|Sharp}}
+
| Bite  
| Bomb = {{#vardefine:attack3Type|Sharp}}
+
| Bomb
| BombSuper = {{#vardefine:attack3Type|Sharp}}
+
| BombSuper
 
| Thump = {{#vardefine:attack3Type|Sharp}}
 
| Thump = {{#vardefine:attack3Type|Sharp}}
| Crush = {{#vardefine:attack3Type|Blunt}}
+
| Crush
| Blunt = {{#vardefine:attack3Type|Blunt}}
+
| Blunt
| Poke = {{#vardefine:attack3Type|Blunt}}
+
| Poke
 
| Demolish = {{#vardefine:attack3Type|Blunt}}
 
| Demolish = {{#vardefine:attack3Type|Blunt}}
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}}}
+
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 3 Type}}}}
 
}}
 
}}
  
Line 92: Line 92:
 
| Poke
 
| Poke
 
| Demolish = {{#vardefine:attack4Type|Blunt}}
 
| Demolish = {{#vardefine:attack4Type|Blunt}}
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 1 Type}}}}
+
| {{Error|Unrecognised Damage Type: {{Q|{{{ 1 | {{PAGENAME}}}}}|Attack 4 Type}}}}
 
}}
 
}}
 
{| {{STDT|sortable c_03 text-center}}
 
{| {{STDT|sortable c_03 text-center}}

Revision as of 11:18, 14 September 2021

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


Description

This template generates a table summarizing stats for a weapon for the variety of different materials available for it.

The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".

Note that it will automatically add the appropriate heading.

This template is dependent on Template:Weapon Material Table Row and Template:True Melee DPS Calculator

Parameters

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

Example usage

{{Weapon Material Table}}

on the Ikwa page would produce:

Material Table

Material Attack 1 Damage (Type) Attack 1 Cooldown Attack 1 AP Attack 1 DPS Attack 2 Damage (Type) Attack 2 Cooldown Attack 2 AP Attack 2 DPS Attack 3 Damage (Type) Attack 3 Cooldown Attack 3 AP Attack 3 DPS Attack 4 Damage (Type) Attack 4 Cooldown Attack 4 AP Attack 4 DPS Item HP Market Value
Wooden Ikwa 3.79 10.98% 8.1 2s 11.7% 4.05 37.5% 8.1 2s 11.7% 4.05 37.5% 6 2s 8.8% 3 12.5% 6 2s 8.8% 3 12.5% 65 73 Silver
Golden Ikwa 5.34 15.63% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 11.25 2s 16.5% 5.63 37.5% 11.25 2s 16.5% 5.63 37.5% 60 5015 Silver
Plasteel Ikwa 9 21.08% 8.1 1.28s 11.7% 6.33 12.5% 8.1 1.28s 11.7% 6.33 12.5% 16.5 1.28s 24.2% 12.89 37.5% 16.5 1.28s 24.2% 12.89 37.5% 280 490 Silver
Silver Ikwa 5.91 17.28% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 12.75 2s 18.7% 6.38 37.5% 12.75 2s 18.7% 6.38 37.5% 70 520 Silver
Steel Ikwa 6.75 19.75% 9 2s 13% 4.5 12.5% 9 2s 13% 4.5 12.5% 15 2s 22% 7.5 37.5% 15 2s 22% 7.5 37.5% 100 113 Silver
Uranium Ikwa 7.16 23.03% 13.5 2.42s 19.5% 5.58 12.5% 13.5 2.42s 19.5% 5.58 12.5% 16.5 2.42s 24.2% 6.82 37.5% 16.5 2.42s 24.2% 6.82 37.5% 250 335 Silver
Assuming Normal quality, for the effect of other qualities, see Quality.
{{Weapon Material Table | Axe}}

on any page would produce:

Material Table

Unrecognised Damage Type:



Unrecognised Damage Type:

Material Attack 1 Damage (Type) Attack 1 Cooldown Attack 1 AP Attack 1 DPS Attack 2 Damage (Type) Attack 2 Cooldown Attack 2 AP Attack 2 DPS


Item HP Market Value
Wooden Axe 3.79 10.98% 8.1 2s 11.7% 4.05 75% 6 2s 8.8% 3 25% Expression error: Missing operand for *. 78 Silver
Golden Axe 5.34 15.63% 9 2s 13% 4.5 25% 11.25 2s 16.5% 5.63 75% Expression error: Missing operand for *. 5025 Silver
Plasteel Axe 9 21.08% 8.1 1.28s 11.7% 6.33 25% 16.5 1.28s 24.2% 12.89 75% Expression error: Missing operand for *. 505 Silver
Silver Axe 5.91 17.28% 9 2s 13% 4.5 25% 12.75 2s 18.7% 6.38 75% Expression error: Missing operand for *. 525 Silver
Steel Axe 6.75 19.75% 9 2s 13% 4.5 25% 15 2s 22% 7.5 75% Expression error: Missing operand for *. 120 Silver
Uranium Axe 7.16 23.03% 13.5 2.42s 19.5% 5.58 25% 16.5 2.42s 24.2% 6.82 75% Expression error: Missing operand for *. 350 Silver

Assuming Normal quality, for the effect of other qualities, see Quality.