Editing Template:Melee Weapons Table Row

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly><!--
+
<includeonly>
 
+
! {{Icon Small|{{{?Name}}}}}
VARIABLES
+
! style="text-align: left" | [[{{{?Name}}}]]{{#switch: {{Q|{{{?Name}}}|From DLC}} | Royalty (DLC) = &nbsp;{{RoyaltyIcon}} | Ideology (DLC) = &nbsp;{{IdeologyIcon}} }}{{#ifeq: {{Q|{{{?Name}}}|Type}} | Medical Items | &nbsp;{{ref label|Body|B|B}} }}{{#ifeq: {{Q|{{{?Name}}}|Class}} | Ultra Weapons | &nbsp;{{ref label|Ultra|E|E}} }}{{#switch: {{{?Name}}}
-->{{#if: {{#var:ignoreMaterial}} | {{#vardefine:weaponMWT|{{{weaponMWT|}}} }} }}<!-- define the name of the weapon if {{Melee Weapons Table/Material}} wasn't used
+
  | Beer | Thrumbo horn | Elephant tusk | Wood =&nbsp;{{ref label|Body|B|B}}
-->{{#vardefine:hasQuality | {{Q|{{#var:weaponMWT}}|Has Quality}} }}<!--
+
  | Club =&nbsp;{{ref label|Quality|C|C}}
-->{{#vardefine:material  | {{{material|}}} }}<!--
+
   | Jade knife =&nbsp;{{ref label|Jade|D|D}}
-->{{#vardefine:isImplant  | {{#if: {{#pos: {{Q|{{#var:weaponMWT}}|Category}} | Implant }} | true }} }}<!--
+
   | Plasmasword | Persona Plasmasword =&nbsp;{{ref label|Plasma|F|F}}
-->{{#vardefine:bodyPart  | {{#if: {{#var:isImplant}} || {{Q|{{#var:weaponMWT}}|Body Part}} }} }}<!-- the body part that gets replaced if the weapon is an artificial body part but not an implant
 
-->{{#vardefine:normalDPS  | {{True Melee DPS Calculator <!-- Decide whether a body part is replaced -->
 
| {{#if: {{#var:isImplant}}{{#var:bodyPart}} || {{#var:weaponMWT}} }} <!-- Weapon -->
 
| {{#var:material}} <!-- Material -->
 
| Normal <!-- Quality -->
 
| Human <!-- Pawn -->
 
| {{#switch: {{#var:bodyPart}} | Hand | Arm | Shoulder = {{#var:weaponMWT}} }} <!-- Body parts that replace the left fist attack -->
 
| <!-- Body parts that replace the right fist attack -->
 
| <!-- Body parts that replace the teeth attack -->
 
| <!-- Body parts that replace the head attack -->
 
| {{#if: {{#var:isImplant}} | {{#var:weaponMWT}} }}<!-- Body parts that add an extra attack -->
 
}} }}<!--
 
-->{{#vardefine:normalAP  | {{#var:trueAP}} }}<!-- used as default sort value
 
 
 
TABLE ROW-->
 
<tr {{#if: {{#var:material}} | {{#ifeq: {{lc:{{#var:material}} }} | steel ||class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeWeaponsTable"}} }}>
 
! {{Icon Small|{{#var:weaponMWT}} }}
 
! style="text-align: left" | {{DLC Icons|{{#var:weaponMWT}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Class}} | Ultra Weapons | &nbsp;{{Ref label|Ultra|C|C}} }}{{#switch: {{#var:weaponMWT}}
 
   | Jade knife = &nbsp;{{Ref label|Jade|B|B}}
 
   | Plasmasword | Persona plasmasword = &nbsp;{{Ref label|Plasma|D|D}}
 
 
}}
 
}}
! {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{Icon Small|{{#var:material|steel}} }} [[{{#var:material|Steel}}]] | – }}
+
| {{Q|{{{?Name}}}|MeleeCooldown}} s
{{#ifeq: {{#var:hasQuality}} | true
+
| {{Q|{{{?Name}}}|MeleeDPS}}
| {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Awful|Human}}
+
| {{#if: {{#switch: Cut | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{{?Name}}}|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{{?Name}}}|Attack 2 Type}} | {{Q|{{{?Name}}}|Attack 3 Type}} | {{Q|{{{?Name}}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }}
  {{!}} {{#var:trueAP}}%
+
}}{{#switch: {{{?Name}}}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Poor|Human}}
 
  {{!}} {{#var:trueAP}}%
 
  {{!}} {{#var:normalDPS}}
 
  {{!}} {{#var:normalAP}}%
 
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Good|Human}}
 
  {{!}} {{#var:trueAP}}%
 
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Excellent|Human}}
 
  {{!}} {{#var:trueAP}}%
 
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Masterwork|Human}}
 
  {{!}} {{#var:trueAP}}%
 
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Legendary|Human}}
 
  {{!}} {{#var:trueAP}}%
 
| {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
  {{!}} {{#var:normalDPS}}
 
  {{!}} {{#var:normalAP}}%
 
  {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalDPS}}" {{!}} –
 
  {{!}} data-sort-value="{{#var:normalAP }}" {{!}} –
 
}}
 
| {{#expr: {{#var:weightedTimeTotal}} round 2}} s
 
| {{#if: {{#switch: Cut | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Stab | {{Q|{{#var:weaponMWT}}|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | {{#if: {{#switch: Scratch | {{Q|Club|Attack 1 Type}} | {{Q|{{#var:weaponMWT}}|Attack 2 Type}} | {{Q|{{#var:weaponMWT}}|Attack 3 Type}} | {{Q|{{#var:weaponMWT}}|Attack 4 Type}} = Sharp}} | Sharp | Blunt}} }}
 
}}{{#switch: {{#var:weaponMWT}}
 
 
  | Plasmasword | Persona plasmasword = &nbsp;+ Burn
 
  | Plasmasword | Persona plasmasword = &nbsp;+ Burn
 
  | Zeushammer | Persona zeushammer = &nbsp;+ EMP
 
  | Zeushammer | Persona zeushammer = &nbsp;+ EMP
 
}}
 
}}
| {{#if: {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Q|{{#var:weaponMWT}}|Market Value Base}} | {{Market Value Calculator|{{#var:weaponMWT}}| {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{#var:material|steel}} }} }} }}
+
| {{Q|{{{?Name}}}|MeleeAP}}
</tr></includeonly><noinclude>
+
| {{#if: {{Q|{{{?Name}}}|Market Value Base}} | {{Q|{{{?Name}}}|Market Value Base}} | {{Market Value Calculator|{{{?Name}}}|Steel}} }}
{{Documentation}}</noinclude>
+
|-</includeonly><noinclude>{{Documentation}}</noinclude>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)