From Dark and Darker Wiki

(Added Item Achieve section.)
(Updated template to use the Item's numenchants property.)
Line 5: Line 5:
|rarity ={{{2}}}
|rarity ={{{2}}}
|size  ={{IconboxInventorySize|Weapon Data|{{{1}}}}}
|size  ={{IconboxInventorySize|Weapon Data|{{{1}}}}}
|stats  ={{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}{{
|stats  ={{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}<!--
#loop: i
-->{{#loop:i|0|{{#arraysize:stats}}<!--
|0
-->|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
|{{ #arraysize:stats }}
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
-->{{#var:stat}} <!--
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}}}<!--
-->{{#var:stat}} <!--
-->|{{#var:weapon_stat}}<!--
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}}}<!--
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
-->|{{#var:weapon_stat}}<!--
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
|special ={{Weapon Data|{{{1}}}|artifactpower}}
|special ={{Weapon Data|{{{1}}}|artifactpower}}
|classes ={{Weapon Data|{{{1}}}|classes}}
|classes ={{Weapon Data|{{{1}}}|classes}}
|enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}}
|enchantments ={{#if:{{#vardefineecho:numenchants|{{Weapon Data|{{{1}}}|numenchants|{{{2}}}}}}}|{{#var:numenchants}}}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
Line 40: Line 38:
{{GenerateWeaponInfobox|Arming Sword|1}}
{{GenerateWeaponInfobox|Arming Sword|1}}
{{GenerateWeaponInfobox|Crossbow|4}}
{{GenerateWeaponInfobox|Crossbow|4}}
{{GenerateWeaponInfobox|Demon's Glee|6}}
{{GenerateWeaponInfobox|Demon's Glee|5}}
{{GenerateWeaponInfobox|Fulgor|7}}
{{GenerateWeaponInfobox|Fulgor|7}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 23:41, 18 June 2024

Auto creates weapon infobox

Example

{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Arming Sword
Arming Sword 1.png
-
Physical Weapon Damage 26
-
-
Move Speed -20
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
54.38x11.2x1.48
1x3InvSlot.jpg
Adventure Points
Item Achieve:
3
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.
Crossbow
Crossbow 4.png
-
Physical Weapon Damage 43~44
-
-
Armor Penetration 30%
-
-
Move Speed -50
-
-
Up to 2 extra enchantments
-
Required Class:
Armor Type:
Crossbow
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
9.07x34.63x47.05
2x3InvSlot.jpg
Adventure Points
Item Achieve:
36
A powerful mechanical weapon, a single-shot crossbow with a crank that's very abrasive to the hand.
Demon's Glee
-
Physical Weapon Damage 28
-
-
Move Speed -15
-
-
Magical Damage Add 1
-
-
Up to 4 extra enchantments
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
56.13x13.08x5.67
1x3InvSlot.jpg
Adventure Points
Item Achieve:
60
A blade fused with unholy blood is said to become almost sentient, craving destruction.
Fulgor
Fulgor.png
-
Physical Weapon Damage 48
-
-
Move Speed -30
-
-
Up to 4 extra enchantments
-
-
If you hit an enemy, summons a thunderbolt to deal 20 additional magic damage (100% scaling).
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
80.41x17.14x2.42
1x4InvSlot.jpg
Adventure Points
Item Achieve:
120
Long ago, a King was gifted this artifact by someone who valued his sense of dream, justice, love and kindness, hoping to help him carve these principles into the world.