From Dark and Darker Wiki

No edit summary
m (Added a check for movespeed data.)
Line 7: Line 7:
   | 0                      <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
   | 0                      <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
   | {{ #arraysize:stats }} <!-- number of loops -->
   | {{ #arraysize:stats }} <!-- number of loops -->
   | <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}}}}
   | <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{#if:{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }} }}
}}
}}
     |special              ={{#ifeq:{{{2}}}|7|{{Weapon_Data|{{{1}}}|uniquepower}}}}
     |special              ={{#ifeq:{{{2}}}|7|{{Weapon_Data|{{{1}}}|uniquepower}}}}

Revision as of 12:23, 5 February 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:
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
x
1x3InvSlot.jpg
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.
Arming Sword
Arming Sword 7.png
-
Physical Weapon Damage
-
-
Move Speed -20
-
-
Up to 5 extra enchantments
-
Required Class:
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
x
1x3InvSlot.jpg
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.