From Dark and Darker Wiki
(Name of certain properties were changed. Fixed the most obvious cases.) |
(Hitslow is no longer static. WeaponTable now checks for global entries and displays all attack values otherwise.) |
||
Line 1: | Line 1: | ||
<includeonly><table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="text-align:center; vertical-align:middle;"> | <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 36: | Line 38: | ||
<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">Artifact</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}}}}}}}<!-- | -->{{#arraydefine:weapons|{{Weapon Data|Alllists|Types|Weapon|{{{1}}}|{{{2}}}}}}}<!-- | ||
-->{{#loop:i|0|{{#arraysize:weapons}}<!-- | -->{{#loop:i|0|{{#arraysize:weapons}}<!-- | ||
Line 374: | Line 375: | ||
Slowdown On Hit | Slowdown On Hit | ||
-->{{#if:{{#var:is_shield}}<!-- | -->{{#if:{{#var:is_shield}}<!-- | ||
-->||<td>{{# | -->||<td><!-- | ||
-->|<span style="color:#eee8;">Hitslow<br></ | -->{{#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|AttackHitslow|Rarity|Global|Move Speed Bonus}} }}<!-- | ||
-->{{#vardefine:global_hitslow_duration|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|AttackHitslow|Rarity|Global|Duration}} }}<!-- | |||
--><span style="color:#eee8;">Hitslow</span><br><!-- | |||
-->{{#if:{{#var:global_hitslow}}<!-- | |||
-->|{{#var:global_hitslow}}<!-- | |||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
-->{{#ifeq:{{#var:i}}|0||/}}<!-- | |||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Move Speed Bonus}} }} }}<!-- | |||
--> for <!-- | |||
-->{{#if:{{#var:global_hitslow_duration}}<!-- | |||
-->|{{#var:global_hitslow_duration}}s<!-- | |||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | |||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | |||
-->{{#ifeq:{{#var:i}}|0||/}}<!-- | |||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Duration}}s}} }}</td>}}<!-- | |||
Max Ammo | Max Ammo | ||
Line 404: | Line 422: | ||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
<pre>{{GenerateWeaponTable|Craftable| | <pre>{{GenerateWeaponTable|Craftable|Dagger}}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{GenerateWeaponTable|Craftable| | {{GenerateWeaponTable|Craftable|Dagger}}</td></tr> | ||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> |
Revision as of 15:37, 20 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|Dagger}} |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{GenerateWeaponTable|Uncraftable|Bow|type=Bow}} |
|