From Dark and Darker Wiki
(Merging the following template: WeaponTable, GenerateWeaponRows, GenerateWeaponRow) |
(Hyperlinked Action Movement Penalty to explanation.) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
<th style="width:15%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Armor Rating</th> | <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">Impact Resist</th> | ||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Action Movement | <th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">[[Weapons#Movement_Multiplier_Explanation|Action Movement Penalty]]</th> | ||
|bow= | |bow= | ||
<th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage on Hit</th> | <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: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"> | <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"> | <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">Action Movement | <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: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">Quiver Size</th> | ||
Line 22: | Line 22: | ||
<th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Damage on Hit</th> | <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: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"> | <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"> | <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">Action Movement | <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: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> | <th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Initial Projectile Speed (m/s)</th> | ||
Line 33: | Line 33: | ||
<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">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">Impact Zones + Impact Power/Resist</th> | ||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Action Movement | <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:8%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Slowdown On Hit</th> | ||
}} | }} | ||
Line 54: | Line 54: | ||
-->{{Iconbox|{{#var:current}}<!-- | -->{{Iconbox|{{#var:current}}<!-- | ||
-->|image={{#var:current}}<!-- | -->|image={{#var:current}}<!-- | ||
-->{{#if:{{Weapon Data|{{#var:current}}| | -->{{#if:{{Weapon Data|{{#var:current}}|iscraftableby}}|| 2}}.png<!-- | ||
-->|size={{IconboxInventorySize|Weapon Data|{{#var:current}}}}<!-- | -->|size={{IconboxInventorySize|Weapon Data|{{#var:current}}}}<!-- | ||
-->|rarity=<!-- | -->|rarity=<!-- | ||
Line 97: | Line 97: | ||
-->{{#if: {{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage}} }}<!-- | -->{{#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}} }}<!-- | -->{{#vardefineecho:weapon_stat_5|{{Weapon Data|{{#var:current}}|stats|physical weapon damage 5}} }}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top;"><!-- | -->|<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 Weapon Damage<br></span><!-- | ||
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage}} }}<!-- | -->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{#var:current}}|stats|physical weapon damage}} }}<!-- | ||
Line 122: | Line 122: | ||
Magical Weapon Damage | Magical Weapon Damage | ||
-->{{#if:{{#pos:{{#var:AllStats}}|Magical Weapon Damage}}<!-- | -->{{#if:{{#pos:{{#var:AllStats}}|Magical Weapon Damage}}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top; | -->|<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 Weapon Damage<br></span><!-- | ||
-->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage}} }}<!-- | -->{{#if:{{#vardefineecho:mag_weapon_stat|{{Weapon Data|{{#var:current}}|stats|magical weapon damage}} }}<!-- | ||
Line 326: | Line 326: | ||
-->|<td>{{Weapon Data|{{#var:current}}|reloadtime}}s</td>}}<!-- | -->|<td>{{Weapon Data|{{#var:current}}|reloadtime}}s</td>}}<!-- | ||
Movement | Action Movement Penalty | ||
--><td><!-- | --><td><!-- | ||
If the weapon has abilities, loop through them | If the weapon has abilities, loop through them | ||
Line 339: | Line 339: | ||
-->{{#if:{{#var:preparemovespeed}}<!-- | -->{{#if:{{#var:preparemovespeed}}<!-- | ||
-->|<span style="color:#eee8;"><!-- | -->|<span style="color:#eee8;"><!-- | ||
-->Mid Attack: </span><!-- | -->Mid Attack: </span>x<!-- | ||
-->{{#var:preparemovespeed}}<br><!-- | -->{{#var:preparemovespeed}}<br><!-- | ||
--><span style="color:#eee8;"><!-- | --><span style="color:#eee8;"><!-- | ||
-->Otherwise: </span><!-- | -->Otherwise: </span>x<!-- | ||
-->{{#var:movespeed}}<br><br><!-- | -->{{#var:movespeed}}<br><br><!-- | ||
-->|<span style="color:#eee8;"><!-- | -->|<span style="color:#eee8;"><!-- | ||
-->Always: </span><!-- | -->Always: </span>x<!-- | ||
-->{{#var:movespeed}}<br><br>}}<!-- | -->{{#var:movespeed}}<br><br>}}<!-- | ||
Line 362: | Line 362: | ||
-->{{#if:{{#var:preparemovespeed}}<!-- | -->{{#if:{{#var:preparemovespeed}}<!-- | ||
-->|<span style="color:#eee8;"><!-- | -->|<span style="color:#eee8;"><!-- | ||
-->Mid Attack: </span><!-- | -->Mid Attack: </span>x<!-- | ||
-->{{#var:preparemovespeed}}<br><!-- | -->{{#var:preparemovespeed}}<br><!-- | ||
--><span style="color:#eee8;"><!-- | --><span style="color:#eee8;"><!-- | ||
-->Otherwise: </span><!-- | -->Otherwise: </span>x<!-- | ||
-->{{#var:movespeed}}<br><br><!-- | -->{{#var:movespeed}}<br><br><!-- | ||
-->|<span style="color:#eee8;"><!-- | -->|<span style="color:#eee8;"><!-- | ||
-->Always: </span><!-- | -->Always: </span>x<!-- | ||
-->{{#var:movespeed}}<br><br>}} }} }} }} }}<!-- | -->{{#var:movespeed}}<br><br>}} }} }} }} }}<!-- | ||
Latest revision as of 19:22, 2 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}} |
|