From Dark and Darker Wiki

m (Added logic to only show Quiversize when item is a bow.)
m (Changing Template to use calls that work with Weapon Data.)
Line 1: Line 1:
<includeonly>{{#arraydefine:stats|{{Item Data|Weapon|{{{1}}}|stats|allstats}}}}<!--
<includeonly>{{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}<!--
-->{{Infobox
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{#if:{{Item Data|Weapon|{{{1}}}|iscraftable}}{{Item Data|Weapon|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
|image ={{#if:{{Weapon Data|{{{1}}}|iscraftable}}{{Weapon Data|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
|rarity ={{{2}}}
|rarity ={{{2}}}
|stats ={{
|stats ={{
Line 12: Line 12:
-->||,}}<!--
-->||,}}<!--
-->{{#var:stat}} <!--
-->{{#var:stat}} <!--
-->{{#if:{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}}}}<!--
-->{{#if:{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Item Data|Weapon|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
|special ={{Item Data|Weapon|{{{1}}}|artifactpower}}
|special ={{Weapon Data|{{{1}}}|artifactpower}}
|classes ={{Item Data|Weapon|{{{1}}}|classes}}
|classes ={{Weapon Data|{{{1}}}|classes}}
|enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}}
|enchantments ={{#ifexpr:{{#expr:{{{2}}}-2}}>0|{{#expr:{{{2}}}-2}}}}
|handtype ={{Item Data|Weapon|{{{1}}}|handtype}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|slottype ={{Item Data|Weapon|{{{1}}}|slottype}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|weapontype ={{Item Data|Weapon|{{{1}}}|types|all}}
|weapontype ={{Weapon Data|{{{1}}}|types|all}}
|quiversize ={{#if:{{#pos:{{lc:{{Item Data|Weapon|{{{1}}}|Types|All}}}}|bow}}<!--
|quiversize ={{#if:{{#pos:{{lc:{{Weapon Data|{{{1}}}|Types|All}}}}|bow}}<!--
-->|{{Item Data|Weapon|{{{1}}}|maxammocount}} }}
-->|{{Weapon Data|{{{1}}}|maxammocount}} }}
|hitbox ={{Item Data|Weapon|{{{1}}}|hitbox|height}}x{{Item Data|Weapon|{{{1}}}|hitbox|width}}x{{Item Data|Weapon|{{{1}}}|hitbox|depth}}
|hitbox ={{Weapon Data|{{{1}}}|hitbox|height}}x{{Weapon Data|{{{1}}}|hitbox|width}}x{{Weapon Data|{{{1}}}|hitbox|depth}}
|projectilespeed={{Item Data|Weapon|{{{1}}}|initialprojectilespeed}}
|projectilespeed={{Weapon Data|{{{1}}}|initialprojectilespeed}}
|description ={{Item Data|Weapon|{{{1}}}|flavortext}}
|description ={{Weapon Data|{{{1}}}|flavortext}}
|invslots ={{Item Data|Weapon|{{{1}}}|invslots}}
|invslots ={{Weapon Data|{{{1}}}|invslots}}
|nomargin =1
|nomargin =1
|nofloat =1
|nofloat =1

Revision as of 01:09, 19 March 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
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
Quiver Size:
1
Hitbox:
9.07x34.63x47.05
2x3InvSlot.jpg
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
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 5 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
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.