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 2: Line 2:
  
 
VARIABLES
 
VARIABLES
 +
-->{{#vardefine:no_quality |}}<!-- Is set to "1" below, if weapon has no quality
 +
-->{{#vardefine:material  | {{{material|}}} }}<!--
 
-->{{#if: {{#var:ignoreMaterial}} | {{#vardefine:weaponMWT|{{{weaponMWT|}}} }} }}<!-- define the name of the weapon if {{Melee Weapons Table/Material}} wasn't used
 
-->{{#if: {{#var:ignoreMaterial}} | {{#vardefine:weaponMWT|{{{weaponMWT|}}} }} }}<!-- define the name of the weapon if {{Melee Weapons Table/Material}} wasn't used
-->{{#vardefine:hasQuality | {{Q|{{#var:weaponMWT}}|Has Quality}} }}<!--
+
-->{{#vardefine:bodyPart  | {{Q|{{#var:weaponMWT}}|Body Part}} }}<!-- the body part that gets replaced if the weapon is an artificial body part
-->{{#vardefine:material  | {{{material|}}} }}<!--
 
-->{{#vardefine:isImplant  | {{#if: {{#pos: {{Q|{{#var:weaponMWT}}|Category}} | Implant }} | true }} }}<!--
 
-->{{#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 -->
 
-->{{#vardefine:normalDPS  | {{True Melee DPS Calculator <!-- Decide whether a body part is replaced -->
  | {{#if: {{#var:isImplant}}{{#var:bodyPart}} || {{#var:weaponMWT}} }} <!-- Weapon -->
+
  | {{#if: {{#var:bodyPart}}||{{#var:weaponMWT}} }} <!-- Weapon -->
 
  | {{#var:material}} <!-- Material -->
 
  | {{#var:material}} <!-- Material -->
 
  | Normal <!-- Quality -->
 
  | Normal <!-- Quality -->
 
  | Human <!-- Pawn -->
 
  | Human <!-- Pawn -->
  | {{#switch: {{#var:bodyPart}} | Hand | Arm | Shoulder = {{#var:weaponMWT}} }} <!-- Body parts that replace the left fist attack -->
+
  ||{{#switch: {{#var:bodyPart}} | Hand | Shoulder = {{#var:weaponMWT}} }} | <!-- Body parts that replace the fist attack -->
  | <!-- Body parts that replace the right fist attack -->
+
  | {{#ifeq: {{#var:bodyPart}} | Teeth | {{#var:weaponMWT}} }} <!-- Body parts that replace the teeth attack -->
| <!-- Body parts that replace the teeth attack -->
+
  ||{{#switch: {{#var:bodyPart}} | Arm | Leg = {{#var:weaponMWT}} }} | <!-- Body parts that add an extra 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
 
-->{{#vardefine:normalAP  | {{#var:trueAP}} }}<!-- used as default sort value
Line 23: Line 20:
 
<tr {{#if: {{#var:material}} | {{#ifeq: {{lc:{{#var:material}} }} | steel ||class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeWeaponsTable"}} }}>
 
<tr {{#if: {{#var:material}} | {{#ifeq: {{lc:{{#var:material}} }} | steel ||class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseMeleeWeaponsTable"}} }}>
 
! {{Icon Small|{{#var:weaponMWT}} }}
 
! {{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}}
+
! style="text-align: left" | {{DLC Icons|{{#var:weaponMWT}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Type}} | Medical Items | &nbsp;{{Ref label|Body|B|B}}{{#vardefine:no_quality|1}} }}{{#ifeq: {{Q|{{#var:weaponMWT}}|Class}} | Ultra Weapons | &nbsp;{{Ref label|Ultra|E|E}} }}{{#switch: {{#var:weaponMWT}}
   | Jade knife = &nbsp;{{Ref label|Jade|B|B}}
+
  | Beer | Thrumbo horn | Elephant tusk | Wood = &nbsp;{{Ref label|Body|B|B}}{{#vardefine:no_quality|1}}
   | Plasmasword | Persona plasmasword = &nbsp;{{Ref label|Plasma|D|D}}
+
  | Club = &nbsp;{{Ref label|Quality|C|C}}{{#vardefine:no_quality|1}}
 +
   | Jade knife = &nbsp;{{Ref label|Jade|D|D}}
 +
   | Plasmasword | Persona Plasmasword = &nbsp;{{Ref label|Plasma|F|F}}
 
}}
 
}}
 
! {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{Icon Small|{{#var:material|steel}} }} [[{{#var:material|Steel}}]] | – }}
 
! {{#if: {{Q|{{#var:weaponMWT}}|Stuff Tags}} | {{Icon Small|{{#var:material|steel}} }} [[{{#var:material|Steel}}]] | – }}
{{#ifeq: {{#var:hasQuality}} | true
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Awful|Human}} }}
| {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Awful|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#var:trueAP}}%
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Poor|Human}} }}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Poor|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#var:trueAP}}%
+
| {{#var:normalDPS}}
  {{!}} {{#var:normalDPS}}
+
| {{#var:normalAP}}%
  {{!}} {{#var:normalAP}}%
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Good|Human}} }}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Good|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#var:trueAP}}%
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Excellent|Human}} }}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Excellent|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#var:trueAP}}%
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Masterwork|Human}} }}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Masterwork|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#var:trueAP}}%
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalDPS}}" {{!}} – | {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Legendary|Human}} }}
  {{!}} {{True Melee DPS Calculator|{{#var:weaponMWT}}|{{#var:material}}|Legendary|Human}}
+
| {{#if: {{#var:no_quality}} | data-sort-value="{{#var:normalAP }}" {{!}} – | {{#var:trueAP}}%}}
  {{!}} {{#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
 
| {{#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}} }}
 
| {{#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}} }}
Line 65: Line 48:
 
}}
 
}}
 
| {{#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}} }} }} }}
 
| {{#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}} }} }} }}
</tr></includeonly><noinclude>
+
</tr></includeonly><noinclude>{{Documentation}}</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)