From Dark and Darker Wiki
m (Added unit type to Initial Projectile Speed header.) |
m (uniques>artifacts) |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style=" | <includeonly><!-- | ||
<tr | |||
--><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="text-align:center; vertical-align:middle;"> | |||
<tr style="font-weight:bold;"> | |||
<th style=" | <th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Name</th> | ||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Class</th> | |||
<th style=" | <th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Slot</th> | ||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Movement Speed</th> | |||
{{#switch:{{lc:{{{type}}}}} | |||
|shield= | |||
<th style="width:15%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Armor Rating</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Impact Resist</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">[[Weapons#Movement_Multiplier_Explanation|Action Movement Penalty]]</th> | |||
<th style=" | |bow= | ||
<th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage on Hit</th> | |||
<th style="width:12%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Stats</th> | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Impact Zones + Impact Power/Resist</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Reload Speed</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">[[Weapons#Movement_Multiplier_Explanation|Action Movement Penalty]]</th> | |||
<th style="width:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Slowdown On Hit</th> | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Quiver Size</th> | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Initial Projectile Speed (m/s)</th> | |||
|crossbow= | |||
<th style=" | <th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage on Hit</th> | ||
<th style="width:12%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Stats</th> | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Impact Zones + Impact Power/Resist</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Reload Speed</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">[[Weapons#Movement_Multiplier_Explanation|Action Movement Penalty]]</th> | |||
<th style="width:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Slowdown On Hit</th> | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Initial Projectile Speed (m/s)</th> | |||
|#default= | |||
<th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage on Hit</th> | |||
<th style="width:12%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Stats</th> | |||
<th style=" | <th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Combo</th> | ||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Combo Attack Speed</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Impact Zones + Impact Power/Resist</th> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">[[Weapons#Movement_Multiplier_Explanation|Action Movement Penalty]]</th> | |||
<th style="width:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Slowdown On Hit</th> | |||
}} | |||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Artifact</th></tr><!-- | |||
-->{{#arraydefine:weapons|{{Weapon Data|Alllists|Types|Weapon|{{{1}}}|{{{2}}}}}}}<!-- | |||
-->{{#loop:i|0|{{#arraysize:weapons}}<!-- | |||
-->|{{#vardefine:current|{{#arrayindex:weapons|{{#var:i}}}}}}<!-- | |||
-->{{#if:{{Weapon Data|{{#var:current}}|artifactpower}}<!-- | |||
<th style=" | -->||{{#vardefine:abilities|{{Weapon Data|{{#var:current}}|abilities|all}} }}<!-- | ||
-->{{#vardefine:is_shield|{{Weapon Data|{{#var:current}}|types|shield}} }}<!-- | |||
-->{{#vardefine:is_bow|{{Weapon Data|{{#var:current}}|types|bow}} }}<!-- | |||
-->{{#vardefine:is_crossbow|{{Weapon Data|{{#var:current}}|types|crossbow}} }}<!-- | |||
</ | -->{{#vardefine:artifactname|{{Weapon Data|{{#var:current}}|artifactname}} }}<!-- | ||
-->{{#arraydefine:stats|{{#vardefineecho:AllStats|{{Weapon Data|{{#var:current}}|stats|allstats}} }} }}<!-- | |||
--><tr style="height:190px;"><!-- | |||
Display Iconbox | |||
--><td><!-- | |||
-->{{Iconbox|{{#var:current}}<!-- | |||
-->|image={{#var:current}}<!-- | |||
-->{{#if:{{Weapon Data|{{#var:current}}|iscraftableby}}|| 2}}.png<!-- | |||
-->|size={{IconboxInventorySize|Weapon Data|{{#var:current}}}}<!-- | |||
-->|rarity=<!-- | |||
-->{{#if:{{#pos:{{#vardefineecho:rarities|{{Weapon Data|{{#var:current}}|Rarities}} }}|,}}<!-- | |||
-->|2<!-- | |||
-->|{{#var:rarities}} }}<!-- | |||
-->|caption=<span class="colorrarity{{#var:rarities}}">{{#var:current}}</span>}}</td><!-- | |||
Display Classes that can equip this weapon | |||
--><td>{{#replace:{{Weapon Data|{{#var:current}}|classes}}|,|<br>}}</td><!-- | |||
Display Slot Type | |||
--><td>{{Weapon Data|{{#var:current}}|handtype}}<br>{{Weapon Data|{{#var:current}}|slottype}}</td><!-- | |||
Display Move Speed | |||
--><td><!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed}} }}<!-- | |||
-->|{{#var:weapon_stat}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 5}} }}<!-- | |||
-->|<span class="colorrarity5">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|move speed 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}} }}</span>}}</td><!-- | |||
Damage on Hit | |||
-->{{#if:{{#var:is_shield}}<!-- | |||
-->||<td><!-- | |||
Physical Base Weapon Damage | |||
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 Base Weapon Damage Add, which should no be displayed here. | |||
-->{{#if: {{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage}} }}<!-- | |||
-->{{#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;"><!-- | |||
--><span style="color:#eee8;">Physical Base Weapon Damage<br></span><!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage}} }}<!-- | |||
-->|{{#var:weapon_stat}}<!-- | |||
-->|{{#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|Physical Base Weapon Damage 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#var:weapon_stat_5}}<!-- | |||
-->|<span class="colorrarity5">{{#var:weapon_stat_5}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|Physical Base Weapon Damage 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|Physical Base Weapon Damage}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}} }}</div>}}<!-- | |||
Magical Base Weapon Damage | |||
-->{{#if:{{#pos:{{#var:AllStats}}|Magical Base Weapon Damage}}<!-- | |||
-->|<div style="display:inline-block; vertical-align:top; margin-left:15px; margin-right:15px;"><!-- | |||
--><span style="color:#eee8;">Magical Base Weapon Damage<br></span><!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage}} }}<!-- | |||
-->|{{#var:mag_weapon_stat}}<!-- | |||
-->|{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#var:mag_weapon_stat_5}}<!-- | |||
-->|<span class="colorrarity5">{{#var:mag_weapon_stat_5}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|Magical Base Weapon Damage 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:artifactname}}}|stats|Magical Base Weapon Damage}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}} }}</div>}} }}<!-- | |||
Armor Rating | |||
-->{{#if:{{#var:is_shield}}<!-- | |||
-->|<td><!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating}} }}<!-- | |||
-->|{{#var:weapon_stat}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 5}} }}<!-- | |||
-->|<span class="colorrarity5">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|armor rating 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|armor rating}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span>}} }}</td>}}<!-- | |||
Stats | |||
-->{{#if:{{#var:is_shield}}<!-- | |||
-->||<td>{{ | |||
#loop: i | |||
|0 | |||
|{{#arraysize:stats}} | |||
|{{#vardefine:stat|{{#arrayindex:stats|{{#var:i}} }} }}<!-- | |||
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 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><!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{#var:stat}} }} }}<!-- | |||
-->|{{#var:weapon_stat}}<br><!-- | |||
-->|{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 4}} }}<!-- | |||
-->|<span class="colorrarity4">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 5}} }}<!-- | |||
-->|<span class="colorrarity5">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span> {{!}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|{{ #var:stat }} 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|{{ #var:stat }} }} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span>}}<br>}} }} }}</td>}}<!-- | |||
Combo | |||
-->{{#if:{{#var:is_shield}}{{#var:is_bow}}{{#var:is_crossbow}}<!-- | |||
-->||<td><!-- | |||
-->{{#if:{{#pos:{{#var:abilities}}|Primary}}<!-- | |||
If the weapon have a global primary damage type, display it | |||
-->|{{#if:{{#vardefineecho:global_damagetype|{{Weapon Data|{{#var:current}}|abilities|primary|global|damagetype}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br><!-- | |||
-->All {{#var:global_damagetype}}<!-- | |||
Else if the weapon has primary damage types, display them | |||
-->|{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|primary|attack 1|damagetype}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br><!-- | |||
-->{{#var:damagetype}}<!-- | |||
-->{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|primary|attack 2|damagetype}} }}<!-- | |||
-->|/{{#var:damagetype}}<!-- | |||
-->{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|primary|attack 3|damagetype}} }}<!-- | |||
-->|/{{#var:damagetype}}<!-- | |||
-->{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|primary|attack 4|damagetype}} }}<!-- | |||
-->|/{{#var:damagetype}} }} }} }} }} }}<!-- | |||
If the weapon have a global primary combo damage, display it | |||
-->{{#if:{{#vardefineecho:global_combodamage|{{Weapon Data|{{#var:current}}|abilities|primary|global|combodamage}} }}<!-- | |||
-->|<br>All {{#var:global_combodamage}}<!-- | |||
Else if the weapon has primary combo damages, display them | |||
-->|<br>{{Weapon Data|{{#var:current}}|abilities|primary|attack 1|combodamage}}<!-- | |||
-->{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|primary|attack 2|combodamage}} }}<!-- | |||
-->|/{{#var:combodamage}}<!-- | |||
-->{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|primary|attack 3|combodamage}} }}<!-- | |||
-->|/{{#var:combodamage}}<!-- | |||
-->{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|primary|attack 4|combodamage}} }}<!-- | |||
-->|/{{#var:combodamage}} }} }} }} }} }}<!-- | |||
-->{{#if:{{#pos:{{#var:abilities}}|Secondary}}<!-- | |||
If the weapon has a global secondary damage type, display it | |||
-->|{{#if:{{#vardefineecho:global_damagetype|{{Weapon Data|{{#var:current}}|abilities|secondary|global|damagetype}} }}<!-- | |||
-->|<br><span style="color:#eee8;">Secondary Attacks</span><br><!-- | |||
-->All {{#var:global_damagetype}}<!-- | |||
Else if the weapon has secondary damage types, display them | |||
-->|{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 1|damagetype}} }}<!-- | |||
-->|<br><span style="color:#eee8;">Secondary Attacks</span><br><!-- | |||
-->{{#var:damagetype}}<!-- | |||
-->{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 2|damagetype}} }}<!-- | |||
-->|/{{#var:damagetype}} }} }} }}<!-- | |||
If the weapon has a global secondary combo damage, display it | |||
-->{{#if:{{#vardefineecho:global_combodamage|{{Weapon Data|{{#var:current}}|abilities|secondary|global|combodamage}} }}<!-- | |||
-->|<br>All {{#var:global_combodamage}}<!-- | |||
Else if the weapon has secondary combo damages, display them | |||
-->|{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 1|combodamage}} }}<!-- | |||
-->|<br>{{#var:combodamage}}<!-- | |||
-->{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 2|combodamage}} }}<!-- | |||
-->|/{{#var:combodamage}} }} }} }} }}<!-- | |||
-->{{#if:{{#pos:{{#var:abilities}}|Special}}<!-- | |||
If the weapon has a global special damage type, display it | |||
-->|{{#if:{{#vardefineecho:global_damagetype|{{Weapon Data|{{#var:current}}|abilities|special|global|damagetype}} }}<!-- | |||
-->|<br><span style="color:#eee8;">Special Attacks</span><br><!-- | |||
-->All {{#var:global_damagetype}}<!-- | |||
Else if the weapon has special damage types, display them | |||
-->|{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 1|damagetype}} }}<!-- | |||
-->|<br><span style="color:#eee8;">Special Attacks</span><br><!-- | |||
-->{{#var:damagetype}}<!-- | |||
-->{{#if:{{#vardefineecho:damagetype|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 2|damagetype}} }}<!-- | |||
-->|/{{#var:damagetype}} }} }} }}<!-- | |||
If the weapon has a global special combo damage, display it | |||
-->{{#if:{{#vardefineecho:global_combodamage|{{Weapon Data|{{#var:current}}|abilities|special|global|combodamage}} }}<!-- | |||
-->|<br>All {{#var:global_combodamage}}<!-- | |||
Else if the weapon has special combo damages, display them | |||
-->|<br>{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 1|combodamage}}<!-- | |||
-->{{#if:{{#vardefineecho:combodamage|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 2|combodamage}} }}<!-- | |||
-->|/{{#var:combodamage}} }} }} }}</td>}}<!-- | |||
Combo Attack Speed | |||
-->{{#if:{{#var:is_shield}}{{#var:is_bow}}{{#var:is_crossbow}}<!-- | |||
-->||<td><!-- | |||
Primary Combo Attack Speed | |||
-->{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|primary|attack 4|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|primary|attack 3|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|primary|attack 2|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|primary|attack 1|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;">Primary Attacks</span><br>{{#var:weapon_attackspeed}} }} }} }} }}<!-- | |||
Secondary Combo Attack Speed | |||
-->{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 2|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;"><br><br>Secondary Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|secondary|attack 1|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;"><br><br>Secondary Attacks</span><br>{{#var:weapon_attackspeed}} }} }}<!-- | |||
Riposte Combo Attack Speed | |||
-->{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 3|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;"><br><br>Special Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 2|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;"><br><br>Special Attacks</span><br>{{#var:weapon_attackspeed}}<!-- | |||
-->|{{#if:{{#vardefineecho:weapon_attackspeed|{{Weapon Data|{{#var:current}}|abilities|special|riposte attack 1|attackspeed}} }}<!-- | |||
-->|<span style="color:#eee8;"><br><br>Special Attacks</span><br>{{#var:weapon_attackspeed}} }} }} }}</td> }}<!-- | |||
Impact Zones + Impact Power | |||
-->{{#arraydefine:all_abilities|{{#var:abilities}} }}<!-- | |||
--><td><!-- | |||
If the weapon has abilities, loop through them | |||
-->{{#loop: i|0|{{#arraysize:all_abilities}}<!-- | |||
-->|{{#vardefine:ability|{{#arrayindex:all_abilities|{{#var:i}} }} }}<!-- | |||
If ability is not Other | |||
-->{{#if:{{#pos:{{#var:ability}}|Other}}<!-- | |||
If the weapon has a global impact power, display it | |||
-->||{{#if:{{#vardefineecho:impactzones|{{#replace:{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|global|impactzones}}|,|/}} }}<!-- | |||
-->|<span style="color:#eee8;">{{#var:ability}} Attacks</span><br><!-- | |||
-->{{#var:impactzones}}<!-- | |||
-->{{#if:{{#var:impactzones}}| + }}<!-- If Impact Zones exist, display a separator | |||
-->{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|global|impactpower}}<br><!-- | |||
Else loop though all attacks | |||
-->|{{#arraydefine:all_attacks|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|all}} }}<!-- | |||
-->{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
-->{{#if:{{#vardefineecho:impactzones|{{#replace:{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|{{#var:attack}}|impactzones}}|,|/}} }}<!-- | |||
-->|<span style="color:#eee8;">{{#var:ability}} {{#var:attack}}</span><br><!-- | |||
-->{{#var:impactzones}}<!-- | |||
If Impact Zones exist, display a separator | |||
-->{{#if:{{#var:impactzones}}| + }}<!-- | |||
-->{{#if:{{#vardefineecho:impactpower|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|{{#var:attack}}|impactpower}} }}<!-- | |||
-->|{{#var:impactpower}}<!-- | |||
-->|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|global|impactpower}} }}<br>}} }} }} }} }}<!-- | |||
If the weapon has impact resistance, display it | |||
-->{{#if:{{Weapon Data|{{#var:current}}|impactresistance}}<!-- | |||
-->|<span style="color:#eee8;">Impact Resist</span><br><!-- | |||
-->{{Weapon Data|{{#var:current}}|impactresistance}} }}</td><!-- | |||
Reload Time | |||
-->{{#if:{{#var:is_bow}}{{#var:is_crossbow}}<!-- | |||
-->|<td>{{Weapon Data|{{#var:current}}|reloadtime}}s</td>}}<!-- | |||
Action Movement Penalty | |||
--><td><!-- | |||
If the weapon has abilities, loop through them | |||
-->{{#loop:i|0|{{#arraysize:all_abilities}}<!-- | |||
-->|{{#vardefine:ability|{{#arrayindex:all_abilities|{{#var:i}} }} }}<!-- | |||
-->{{#if: {{#vardefineecho:movespeed|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|Global|MovementMultiplier}} }}<!-- | |||
-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|Global|PrepareMovementMultiplier}} }}<!-- | |||
-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | |||
-->{{#ifeq:{{#var:ability}}|Other<!-- | |||
-->|{{#var:ability}} Actions<!-- | |||
-->|{{#var:ability}} Attacks}}<br></span><!-- | |||
-->{{#if:{{#var:preparemovespeed}}<!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Mid Attack: </span>x<!-- | |||
-->{{#var:preparemovespeed}}<br><!-- | |||
--><span style="color:#eee8;"><!-- | |||
-->Otherwise: </span>x<!-- | |||
-->{{#var:movespeed}}<br><br><!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Always: </span>x<!-- | |||
-->{{#var:movespeed}}<br><br>}}<!-- | |||
Else loop through all attacks | |||
-->|{{#arraydefine:all_attacks|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|all}} }}<!-- | |||
-->{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
If the attack has a movement multiplier, display it | |||
-->{{#if: {{#vardefineecho:movespeed|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|{{#var:attack}}|MovementMultiplier}} }}<!-- | |||
-->{{#vardefineecho:preparemovespeed|{{Weapon Data|{{#var:current}}|abilities|{{#var:ability}}|{{#var:attack}}|PrepareMovementMultiplier}} }}<!-- | |||
-->|<span style="color:#eee8; font-size:110%; font-weight:bold;"><!-- | |||
-->{{#if:{{#pos:{{#var:ability}}|Other}}<!-- | |||
-->|{{#var:attack}}<!-- | |||
-->|{{#var:ability}} {{#var:attack}} }}<br></span><!-- | |||
-->{{#if:{{#var:preparemovespeed}}<!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Mid Attack: </span>x<!-- | |||
-->{{#var:preparemovespeed}}<br><!-- | |||
--><span style="color:#eee8;"><!-- | |||
-->Otherwise: </span>x<!-- | |||
-->{{#var:movespeed}}<br><br><!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Always: </span>x<!-- | |||
-->{{#var:movespeed}}<br><br>}} }} }} }} }}<!-- | |||
Slowdown On Hit | |||
-->{{#arraydefine:all_attacks|{{Weapon Data|{{#var:current}}|Abilities|Primary|all}} }}{{#arraydefine:global|Global}}{{#arraydiff:all_attacks|all_attacks|global}}<!-- | |||
-->{{#vardefine:global_hitslow|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|HitSlow|Rarity|Global|Move Speed Bonus}} }}<!-- | |||
-->{{#vardefine:global_hitslow_duration|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|HitSlow|Rarity|Global|Duration}} }}<!-- | |||
-->{{#if:{{#var:is_shield}}<!-- | |||
-->||<td><!-- | |||
-->{{#if:{{#var:global_hitslow}}<!-- | |||
-->|<span style="color:#eee8;">Hitslow</span><br>{{#var:global_hitslow}}<!-- | |||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
-->{{#ifeq:{{#var:i}}|0|<span style="color:#eee8;">Hitslow</span><br>|/}}<!-- | |||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|HitSlow|Rarity|Global|Move Speed Bonus}} }} }}<!-- | |||
-->{{#if:{{#var:global_hitslow_duration}}<!-- | |||
-->| for {{#var:global_hitslow_duration}}s<!-- | |||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
-->{{#ifeq:{{#var:i}}|0| for |/}}<!-- | |||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|HitSlow|Rarity|Global|Duration}}s}} }}</td>}}<!-- | |||
Max Ammo | |||
-->{{#if:{{#var:is_bow}}<!-- | |||
-->|<td>{{Weapon Data|{{#var:current}}|maxammocount}}</td>}}<!-- | |||
Initial Projectile Speed | |||
-->{{#if:{{#var:is_bow}}{{#var:is_crossbow}}<!-- | |||
-->|<td>{{Weapon Data|{{#var:current}}|initialspeed}}</td>}}<!-- | |||
Unique | |||
--><td><!-- | |||
-->{{#if:{{#var:artifactname}}<!-- | |||
-->|[[Artifacts|{{#var:artifactname}}]]<!-- | |||
-->|None}}</td></tr>}} }}</table><!-- | |||
--></includeonly><noinclude> | |||
Parameters: | Parameters: | ||
*{ | *1={Craftable,Uncraftable,Both} | ||
*2={Shield,Sword,Axe,Polearm,Unarmed,Mace,Bow,Dagger,MagicStuff,Staff,Crossbow,Throwable,LightSource} | |||
*type={Bow,Crossbow,Shield} (optional) | *type={Bow,Crossbow,Shield} (optional) | ||
<br> | <br> | ||
Line 55: | Line 418: | ||
<tr> | <tr> | ||
<th>Code</th> | <th>Code</th> | ||
<th>Preview</th> | <th>Preview</th></tr> | ||
</tr> | <tr> | ||
<td style="padding: 20px 30px;"> | |||
<pre>{{GenerateWeaponTable|Craftable|Dagger}}</pre></td> | |||
<td style="padding: 20px 30px;"> | |||
{{GenerateWeaponTable|Craftable|Dagger}}</td></tr> | |||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
<pre>{{ | <pre>{{GenerateWeaponTable|Craftable|Shield}}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{ | {{GenerateWeaponTable|Craftable|Shield|type=Shield}}</td></tr> | ||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
<pre>{{ | <pre>{{GenerateWeaponTable|Uncraftable|Bow|type=Bow}}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{ | {{GenerateWeaponTable|Uncraftable|Bow|type=Bow}}</td></tr></table> | ||
</table> | |||
</noinclude> | </noinclude> |
Latest revision as of 14:54, 6 September 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|Dagger}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Craftable|Shield}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Uncraftable|Bow|type=Bow}} |
|