From Dark and Darker Wiki
m (Raw Salad moved page Template:WeaponTable to Template:GenerateWeaponTable: Merging templates, changing name to be consistent with other templates of the same type.) |
(Merging the following template: WeaponTable, GenerateWeaponRows, GenerateWeaponRow) |
||
Line 1: | Line 1: | ||
<includeonly><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style=" | <includeonly><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="text-align:center; vertical-align:middle;"> | ||
<tr style="font-weight:bold;"> | <tr style="font-weight:bold;"> | ||
<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">Name</th> | ||
Line 5: | Line 5: | ||
<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">Slot</th> | ||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Movement Speed</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"> | |||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Action Movement Speed</th> | <th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Action Movement Speed</th> | ||
|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">Reload 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">Action Movement Speed</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="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">Reload 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">Action Movement Speed</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="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">Action Movement Speed</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> | <th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Artifact</th> | ||
</tr> | </tr><!-- | ||
{{{1}}} | -->{{#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}}<!-- | |||
-->||{{#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}}|iscraftable}}|| 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 Weapon Damage | |||
If the weapon has Physical Weapon Damage value or it has Physical Weapon Damage 0-7 values display it. | |||
Note: The weapon can have Physical Weapon Damage Add, which should no be displayed here. | |||
-->{{#if: {{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage}} }}<!-- | |||
-->{{#vardefineecho:weapon_stat_5|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 5}} }}<!-- | |||
-->|<div style="display:inline-block; vertical-align:top;"><!-- | |||
--><span style="color:#eee8;">Physical Weapon Damage<br></span><!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage}} }}<!-- | |||
-->|{{#var:weapon_stat}}<!-- | |||
-->|{{#vardefine:use_horizontal_format|{{#if:{{#vardefineecho:mag_weapon_stat_5|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 5}} }}|1}} }}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical 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 weapon damage 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:artifactname}}|stats|physical weapon damage}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:weapon_stat}}</span><br>}} }}</div>}}<!-- | |||
Magical Weapon Damage | |||
-->{{#if:{{#pos:{{#var:AllStats}}|Magical Weapon Damage}}<!-- | |||
-->|<div style="display:inline-block; vertical-align:top; border-left:40px solid #0000;"><!-- | |||
--><span style="color:#eee8;">Magical Weapon Damage<br></span><!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage}} }}<!-- | |||
-->|{{#var:mag_weapon_stat}}<!-- | |||
-->|{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 0}} }}<!-- | |||
-->|<span class="colorrarity0">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 1}} }}<!-- | |||
-->|<span class="colorrarity1">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 2}} }}<!-- | |||
-->|<span class="colorrarity2">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 3}} }}<!-- | |||
-->|<span class="colorrarity3">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical 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 weapon damage 6}} }}<!-- | |||
-->|<span class="colorrarity6">{{#var:mag_weapon_stat}}</span><br>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage 7}} }}<!-- | |||
-->|<span class="colorrarity7">{{#var:mag_weapon_stat}}</span>}}<!-- | |||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:artifactname}}}|stats|magical 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 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 Weapon Damage,Magical 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}}<!-- | |||
-->||<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>}}<!-- | |||
Movement Speed | |||
--><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><!-- | |||
-->{{#var:preparemovespeed}}<br><!-- | |||
--><span style="color:#eee8;"><!-- | |||
-->Otherwise: </span><!-- | |||
-->{{#var:movespeed}}<br><br><!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Always: </span><!-- | |||
-->{{#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><!-- | |||
-->{{#var:preparemovespeed}}<br><!-- | |||
--><span style="color:#eee8;"><!-- | |||
-->Otherwise: </span><!-- | |||
-->{{#var:movespeed}}<br><br><!-- | |||
-->|<span style="color:#eee8;"><!-- | |||
-->Always: </span><!-- | |||
-->{{#var:movespeed}}<br><br>}} }} }} }} }}<!-- | |||
Slowdown On Hit | |||
-->{{#if:{{#var:is_shield}}<!-- | |||
-->||<td>{{#if:{{#vardefineecho:hitslow|{{Weapon Data|{{#var:current}}|hitslow}} }}<!-- | |||
-->|<span style="color:#eee8;">Hitslow<br></span>{{#var:hitslow}}<br><!-- | |||
--><span style="color:#eee8;">Hitslow Duration<br></span>{{Weapon Data|{{#var:current}}|hitslowduration}}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}}<!-- | |||
-->|[[Uniques|{{#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 37: | Line 401: | ||
<tr> | <tr> | ||
<th>Code</th> | <th>Code</th> | ||
<th>Preview</th> | <th>Preview</th></tr> | ||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
<pre>{{ | <pre>{{GenerateWeaponTable|Craftable|Sword}}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{ | {{GenerateWeaponTable|Craftable|Sword}}</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> |
Revision as of 12:55, 14 June 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}} |
|