From Dark and Darker Wiki
(Hyperlinked Action Movement Penalty to explanation.) |
(Name of certain properties were changed. Fixed the most obvious cases.) |
||
Line 92: | Line 92: | ||
-->{{#if:{{#var:is_shield}}<!-- | -->{{#if:{{#var:is_shield}}<!-- | ||
-->||<td><!-- | -->||<td><!-- | ||
Physical Weapon Damage | Physical Base Weapon Damage | ||
If the weapon has Physical Weapon Damage value or it has Physical Weapon Damage 0-7 values display it. | If the weapon has Physical Base Weapon Damage value or it has Physical Base Weapon Damage 0-7 values display it. | ||
Note: The weapon can have Physical Weapon Damage Add, which should no be displayed here. | Note: The weapon can have Physical Base Weapon Damage Add, which should no be displayed here. | ||
-->{{#if: {{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if: {{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage}} }}<!-- | ||
-->{{#vardefineecho:weapon_stat_5|{{Weapon Data|{{#var:current}}|stats| | -->{{#vardefineecho:weapon_stat_5|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 5}} }}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top; margin-left:15px; margin-right:15px;"><!-- | -->|<div style="display:inline-block; vertical-align:top; margin-left:15px; margin-right:15px;"><!-- | ||
--><span style="color:#eee8;">Physical Weapon Damage<br></span><!-- | --><span style="color:#eee8;">Physical Base Weapon Damage<br></span><!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage}} }}<!-- | ||
-->|{{#var:weapon_stat}}<!-- | -->|{{#var:weapon_stat}}<!-- | ||
-->|{{#vardefine:use_horizontal_format|{{#if:{{#vardefineecho:mag_weapon_stat_5|{{Weapon Data|{{#var:current}}|stats| | -->|{{#vardefine:use_horizontal_format|{{#if:{{#vardefineecho:mag_weapon_stat_5|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 5}} }}|1}} }}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 0}} }}<!-- | ||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 1}} }}<!-- | ||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 2}} }}<!-- | ||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 3}} }}<!-- | ||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 4}} }}<!-- | ||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#var:weapon_stat_5}}<!-- | -->{{#if:{{#var:weapon_stat_5}}<!-- | ||
-->|<span class="colorrarity5">{{#var:weapon_stat_5}}</span><br>}}<!-- | -->|<span class="colorrarity5">{{#var:weapon_stat_5}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 6}} }}<!-- | ||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 7}} }}<!-- | ||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats| | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|Physical Base Weapon Damage}} }}<!-- | ||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}} }}</div>}}<!-- | -->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}} }}</div>}}<!-- | ||
Magical Weapon Damage | Magical Base Weapon Damage | ||
-->{{#if:{{#pos:{{#var:AllStats}}|Magical Weapon Damage}}<!-- | -->{{#if:{{#pos:{{#var:AllStats}}|Magical Base Weapon Damage}}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top; margin-left:15px; margin-right:15px;"><!-- | -->|<div style="display:inline-block; vertical-align:top; margin-left:15px; margin-right:15px;"><!-- | ||
--><span style="color:#eee8;">Magical Weapon Damage<br></span><!-- | --><span style="color:#eee8;">Magical Base Weapon Damage<br></span><!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage}} }}<!-- | ||
-->|{{#var:mag_weapon_stat}}<!-- | -->|{{#var:mag_weapon_stat}}<!-- | ||
-->|{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->|{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 0}} }}<!-- | ||
-->|<span class="colorrarity0">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity0">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 1}} }}<!-- | ||
-->|<span class="colorrarity1">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity1">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 2}} }}<!-- | ||
-->|<span class="colorrarity2">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity2">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 3}} }}<!-- | ||
-->|<span class="colorrarity3">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity3">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 4}} }}<!-- | ||
-->|<span class="colorrarity4">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity4">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#var:mag_weapon_stat_5}}<!-- | -->{{#if:{{#var:mag_weapon_stat_5}}<!-- | ||
-->|<span class="colorrarity5">{{#var:mag_weapon_stat_5}}</span><br>}}<!-- | -->|<span class="colorrarity5">{{#var:mag_weapon_stat_5}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 6}} }}<!-- | ||
-->|<span class="colorrarity6">{{#var:mag_weapon_stat}}</span><br>}}<!-- | -->|<span class="colorrarity6">{{#var:mag_weapon_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 7}} }}<!-- | ||
-->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}}<!-- | -->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}}<!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:artifactname}}}|stats| | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:artifactname}}}|stats|Magical Base Weapon Damage}} }}<!-- | ||
-->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}} }}</div>}} }}<!-- | -->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}} }}</div>}} }}<!-- | ||
Armor Rating | Armor Rating | ||
Line 173: | Line 173: | ||
|{{#arraysize:stats}} | |{{#arraysize:stats}} | ||
|{{#vardefine:stat|{{#arrayindex:stats|{{#var:i}} }} }}<!-- | |{{#vardefine:stat|{{#arrayindex:stats|{{#var:i}} }} }}<!-- | ||
If the stats isn't Physical Weapon Damage,Magical Weapon Damage, or Armor Rating, or Move Speed, display it. | If the stats isn't Physical Base Weapon Damage,Magical Base Weapon Damage, or Armor Rating, or Move Speed, display it. | ||
-->{{#if:{{#ifeq:{{#var:stat}}|Physical Weapon Damage|true}}{{#ifeq:{{#var:stat}}|Magical Weapon Damage|true}}{{#pos:{{#var:stat}}|Armor Rating}}{{#pos:{{#var:stat}}|Move Speed}}<!-- | -->{{#if:{{#ifeq:{{#var:stat}}|Physical Base Weapon Damage|true}}{{#ifeq:{{#var:stat}}|Magical Base Weapon Damage|true}}{{#pos:{{#var:stat}}|Armor Rating}}{{#pos:{{#var:stat}}|Move Speed}}<!-- | ||
-->||<span style="color:#eee8;">{{#var:stat}}</span><br><!-- | -->||<span style="color:#eee8;">{{#var:stat}}</span><br><!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{#var:stat}} }} }}<!-- | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{#var:stat}} }} }}<!-- | ||
Line 390: | Line 390: | ||
-->{{#if:{{#var:artifactname}}<!-- | -->{{#if:{{#var:artifactname}}<!-- | ||
-->|[[Uniques|{{#var:artifactname}}]]<!-- | -->|[[Uniques|{{#var:artifactname}}]]<!-- | ||
-->|None}}</td></tr>}} }}<!-- | -->|None}}</td></tr>}} }}</table><!-- | ||
-- | --></includeonly><noinclude> | ||
Parameters: | Parameters: | ||
*1={Craftable,Uncraftable,Both} | *1={Craftable,Uncraftable,Both} |
Revision as of 08:32, 17 July 2024
Parameters:
- 1={Craftable,Uncraftable,Both}
- 2={Shield,Sword,Axe,Polearm,Unarmed,Mace,Bow,Dagger,MagicStuff,Staff,Crossbow,Throwable,LightSource}
- type={Bow,Crossbow,Shield} (optional)
Code | Preview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{GenerateWeaponTable|Craftable|Sword}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Uncraftable|Bow|type=Bow}} |
|