Difference between revisions of "Template:Weapon Material Table Row"

From RimWorld Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
| {{#var:trueAP}}%
 
| {{#var:trueAP}}%
 
| style="border:#d09c59 2px; border-style: none none none solid;"|{{#var: attack1Damage}}
 
| style="border:#d09c59 2px; border-style: none none none solid;"|{{#var: attack1Damage}}
| {{#expr: {{#var:attack1Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}
+
| {{#expr: {{#var:attack1Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}s
 
| {{#expr: {{#var: attack1AP}}}}%
 
| {{#expr: {{#var: attack1AP}}}}%
 
| {{#expr: {{#var: attack1Damage}}*{{#ifeq: Sharp| {{#var: attack1Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack1Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
 
| {{#expr: {{#var: attack1Damage}}*{{#ifeq: Sharp| {{#var: attack1Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack1Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
Line 10: Line 10:
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{#if: {{Q|{{#var:name}}|Attack 2 Damage}}|
 
{{!}} {{#var: attack2Damage}}
 
{{!}} {{#var: attack2Damage}}
{{!}} {{#expr: {{#var:attack2Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}
+
{{!}} {{#expr: {{#var:attack2Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}s
 
{{!}} {{#expr: {{#var: attack2AP}}}}%
 
{{!}} {{#expr: {{#var: attack2AP}}}}%
 
{{!}} {{#expr: {{#var: attack2Damage}}*{{#ifeq: Sharp| {{#var: attack2Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack2Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
 
{{!}} {{#expr: {{#var: attack2Damage}}*{{#ifeq: Sharp| {{#var: attack2Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack2Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
Line 16: Line 16:
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br>
 
}}{{#if: {{Q|{{#var:name}}|Attack 3 Damage}}|<br>
 
{{!}} {{#var: attack3Damage}}
 
{{!}} {{#var: attack3Damage}}
{{!}} {{#expr: {{#var:attack3Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}
+
{{!}} {{#expr: {{#var:attack3Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}s
 
{{!}} {{#expr: {{#var: attack3AP}}}}%
 
{{!}} {{#expr: {{#var: attack3AP}}}}%
 
{{!}} {{#expr: {{#var: attack3Damage}}*{{#ifeq: Sharp| {{#var: attack3Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack3Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
 
{{!}} {{#expr: {{#var: attack3Damage}}*{{#ifeq: Sharp| {{#var: attack3Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack3Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
Line 22: Line 22:
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br>
 
}}{{#if: {{Q|{{#var:name}}|Attack 4 Damage}}|<br>
 
{{!}} {{#var: attack4Damage}}
 
{{!}} {{#var: attack4Damage}}
{{!}} {{#expr: {{#var:attack4Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}
+
{{!}} {{#expr: {{#var:attack4Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}} }}s
 
{{!}} {{#expr: {{#var: attack4AP}}}}%
 
{{!}} {{#expr: {{#var: attack4AP}}}}%
 
{{!}} {{#expr: {{#var: attack4Damage}}*{{#ifeq: Sharp| {{#var: attack4Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack4Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}
 
{{!}} {{#expr: {{#var: attack4Damage}}*{{#ifeq: Sharp| {{#var: attack4Type}}|{{Q|{{{1|Steel}}}|Melee Sharp Damage Factor}}|{{Q|{{{1|Steel}}}|Melee Blunt Damage Factor}}}}/({{#var:attack4Cooldown}}*{{Q|{{{1|Steel}}}|Melee Cooldown Factor}}) round 2}}

Revision as of 11:50, 6 December 2021

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


Summary

This template is only ever called as part of Template:Weapon Material Table. It uses the variables defined in that template to render a single row of the table.

Example usage

This template isn't designed to be used in isolation, so as an example we'll show {{Weapon Material Table|Ikwa}}

Material table

  • Material DPS[1] AP[1] Handle (Blunt) Handle (Poke) Head (Stab) Edge (Cut) HP Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Wooden Ikwa 3.79 10.98% 8.1 2s 11.7% 3.65 37.5% 8.1 2s 11.7% 3.65 37.5%
    6 2s 8.8% 2.7 12.5%
    6 2s 8.8% 2.7 12.5% 65 73 Silver |- Bioferrite Ikwa 8.33 24.38% 8.1 2s 11.7% 3.65 12.5% 8.1 2s 11.7% 3.65 12.5%
    19.5 2s 28.6% 8.78 37.5%
    19.5 2s 28.6% 8.78 37.5% 200 83 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% 5.7 12.5% 8.1 1.28s 11.7% 5.7 12.5%
    16.5 1.28s 24.2% 11.6 37.5%
    16.5 1.28s 24.2% 11.6 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% 8.37 12.5% 13.5 2.42s 19.5% 8.37 12.5%
    16.5 2.42s 24.2% 10.23 37.5%
    16.5 2.42s 24.2% 10.23 37.5% 250 335 Silver

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

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 2.2 2.3 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder

    Material table

  • Material DPS[1] AP[1] Handle (Poke) Edge (Cut) HP Value [ExpandCollapse]
    Dam. Cool. AP DPS Chance[2] Dam. Cool. AP DPS Chance[2]
    Wooden Axe 3.79 10.98% 8.1 2s 11.7% 3.65 75% 6 2s 8.8% 2.7 25% 65 78 Silver |- Bioferrite Axe 8.33 24.38% 8.1 2s 11.7% 3.65 25% 19.5 2s 28.6% 8.78 75% 200 101 Silver |- Golden Axe 5.34 15.63% 9 2s 13% 4.5 25% 11.25 2s 16.5% 5.63 75% 60 5025 Silver |- Plasteel Axe 9 21.08% 8.1 1.28s 11.7% 5.7 25% 16.5 1.28s 24.2% 11.6 75% 280 505 Silver |- Silver Axe 5.91 17.28% 9 2s 13% 4.5 25% 12.75 2s 18.7% 6.38 75% 70 525 Silver |- Steel Axe 6.75 19.75% 9 2s 13% 4.5 25% 15 2s 22% 7.5 75% 100 120 Silver |- Uranium Axe 7.16 23.03% 13.5 2.42s 19.5% 8.37 25% 16.5 2.42s 24.2% 10.23 75% 250 350 Silver

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

    1. 1.0 1.1 Note: This is the actual base average derived from the melee verb system updated in 1.1.2610, it may sometimes disagree with the listed value in the in-game infobox.
      It may also change depending on the stats and the melee verbs available to the wielder
    2. 2.0 2.1 Chance for attack to be selected, assuming only the weapon's attack verbs are considered. It may change depending on the melee verbs available to the wielder