From Dark and Darker Wiki
(Hitslow is no longer static. WeaponTable now checks for global entries and displays all attack values otherwise.) |
(Fixed issue with hitslow, where it would display empty value format.) |
||
Line 374: | Line 374: | ||
Slowdown On Hit | 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|AttackHitslow|Rarity|Global|Move Speed Bonus}} }}<!-- | |||
-->{{#vardefine:global_hitslow_duration|{{Weapon Data|{{#var:current}}|Abilities|Primary|Global|Effects|AttackHitslow|Rarity|Global|Duration}} }}<!-- | |||
-->{{#if:{{#var:is_shield}}<!-- | -->{{#if:{{#var:is_shield}}<!-- | ||
-->||<td><!-- | -->||<td><!-- | ||
-->{{#if:{{#var:global_hitslow}}<!-- | -->{{#if:{{#var:global_hitslow}}<!-- | ||
-->|{{#var:global_hitslow}}<!-- | -->|<span style="color:#eee8;">Hitslow</span><br>{{#var:global_hitslow}}<!-- | ||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | -->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | ||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | -->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | ||
-->{{#ifeq:{{#var:i}}|0||/}}<!-- | -->{{#ifeq:{{#var:i}}|0|<span style="color:#eee8;">Hitslow</span><br>|/}}<!-- | ||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Move Speed Bonus}} }} }}<!-- | -->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Move Speed Bonus}} }} }}<!-- | ||
-->{{#if:{{#var:global_hitslow_duration}}<!-- | -->{{#if:{{#var:global_hitslow_duration}}<!-- | ||
-->|{{#var:global_hitslow_duration}}s<!-- | -->| for {{#var:global_hitslow_duration}}s<!-- | ||
-->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | -->|{{#loop:i|0|{{#arraysize:all_attacks}}<!-- | ||
-->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | -->|{{#vardefine:current_attack|{{#arrayindex:all_attacks|{{#var:i}} }} }}<!-- | ||
-->{{#ifeq:{{#var:i}}|0||/}}<!-- | -->{{#ifeq:{{#var:i}}|0| for |/}}<!-- | ||
-->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Duration}}s}} }}</td>}}<!-- | -->{{Weapon Data|{{#var:current}}|Abilities|Primary|{{#var:current_attack}}|Effects|AttackHitslow|Rarity|Global|Duration}}s}} }}</td>}}<!-- | ||
Line 424: | Line 421: | ||
<pre>{{GenerateWeaponTable|Craftable|Dagger}}</pre></td> | <pre>{{GenerateWeaponTable|Craftable|Dagger}}</pre></td> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> | ||
{{GenerateWeaponTable|Craftable| | {{GenerateWeaponTable|Craftable|MagicStuff}}</td></tr> | ||
<tr> | <tr> | ||
<td style="padding: 20px 30px;"> | <td style="padding: 20px 30px;"> |
Revision as of 15:57, 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}} |
|