From Dark and Darker Wiki

m (Changing Template to use calls that work with Weapon Data.)
m (Cleaning up formatting with whitespace comments. Changed some logic checks and added some #replace string handling.)
Line 1: Line 1:
<includeonly>{{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}<!--
<includeonly><!--
-->{{Infobox
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{#if:{{Weapon Data|{{{1}}}|iscraftable}}{{Weapon Data|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
|image ={{#if:{{Weapon Data|{{{1}}}|iscraftable}}{{Weapon Data|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
|rarity ={{{2}}}
|rarity ={{{2}}}
|stats ={{
|stats ={{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}{{
#loop: i
#loop: i
|0
|0
|{{ #arraysize:stats }}
|{{ #arraysize:stats }}
|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
-->{{#ifeq:{{ #var:i }}|0<!--
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
-->||,}}<!--
-->{{#var:stat}} <!--
-->{{#var:stat}} <!--
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}}}<!--
-->{{#if:{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{#var:weapon_stat}}<!--
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}<!--
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
-->|{{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}}
Line 20: Line 19:
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|weapontype ={{Weapon Data|{{{1}}}|types|all}}
|weapontype ={{#replace:{{Weapon Data|{{{1}}}|types|all}}|,|,&nbsp;}}
|quiversize ={{#if:{{#pos:{{lc:{{Weapon Data|{{{1}}}|Types|All}}}}|bow}}<!--
|quiversize ={{#if:{{Weapon Data|{{{1}}}|Types|bow}}<!--
-->|{{Weapon Data|{{{1}}}|maxammocount}} }}
-->|{{Weapon Data|{{{1}}}|maxammocount}} }}
|hitbox ={{Weapon Data|{{{1}}}|hitbox|height}}x{{Weapon Data|{{{1}}}|hitbox|width}}x{{Weapon Data|{{{1}}}|hitbox|depth}}
|hitbox ={{Weapon Data|{{{1}}}|hitbox|height}}x{{Weapon Data|{{{1}}}|hitbox|width}}x{{Weapon Data|{{{1}}}|hitbox|depth}}

Revision as of 18:27, 21 March 2024

Auto creates weapon infobox

Example

{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Arming Sword 1.png
-
Physical Base Weapon Damage 29
-
-
Move Speed -20
-
Required Class:
Weapon Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
47.24x10.38x1.67
1x3InvSlot.jpg
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.
Crossbow 4.png
-
Physical Base Weapon Damage 43~44
-
-
Armor Penetration 30%
-
-
Move Speed -50
-
-
Up to 2 extra enchantments
-
Required Class:
Weapon Type:
Crossbow
Slot Type:
Main-Hand
Hand Type:
Two Handed
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.
-
Physical Base Weapon Damage 28
-
-
Move Speed -15
-
-
Magical Base Weapon Damage 1
-
-
Up to 4 extra enchantments
-
Required Class:
Weapon Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
55.82x7.53x5.89
1x3InvSlot.jpg
A blade fused with unholy blood is said to become almost sentient, craving destruction.
Fulgor.png
-
Physical Base Weapon Damage 50~52
-
-
Move Speed -30
-
-
Up to 5 extra enchantments
-
-
Successful weapon attacks summon a thunderbolt to strike the target dealing 20 Lightning Lightning Magical Base Damage (100% Scaling) and causing them to suffer -20% Move Speed Bonus for 1 second.
-
Required Class:
Weapon 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.