From Dark and Darker Wiki

m (Changing Template to use calls that work with Armor Data.)
(Added sellprice property.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #arraydefine: stats | {{Armor_Data|{{{1}}}|stats|allstats}} }}{{Infobox
<includeonly>{{#arraydefine:stats|{{Armor Data|{{{1}}}|stats|allstats}} }}<!--
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{{1}}}
|image ={{{1}}}
|rarity ={{{2}}}
|rarity ={{{2}}}
|size={{IconboxInventorySize|Armor Data|{{{1}}}}}
|stats ={{
|stats ={{
#loop: i
#loop: i
|0
|0
|{{#arraysize:stats}}
|{{#arraysize:stats}}
|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{Armor_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}}}}{{Armor_Data|{{{1}}}|stats|{{ #var:stat }}}}
|<nowiki/><!--
}}
-->{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }} }}<!--
|special ={{#ifeq:{{{2}}}|7|{{Armor_Data|{{{1}}}|uniquepower}}}}
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
|classes ={{Armor_Data|{{{1}}}|classes}}
-->{{#var:stat}} <!--
|slottype ={{Armor_Data|{{{1}}}|slottype}}
-->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }}<!--
|enchantments ={{#if:{{#pos:{{{1}}}|Cobalt}}{{#pos:{{{1}}}|Rubysilver}}|{{#ifexpr:{{#expr: {{{2}}} -1 }} >0|{{#expr: {{{2}}} -1 }}}}|{{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}}}
-->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} }} }}
|armortype ={{Armor_Data|{{{1}}}|armortype}}
|classes ={{Armor Data|{{{1}}}|classes}}
|description ={{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}}
|armortype ={{Armor Data|{{{1}}}|armortype}}
|nomargin =1
|slottype ={{Armor Data|{{{1}}}|slottype}}
|nofloat =1
|enchantments={{#if:{{#vardefineecho:numenchants|{{Armor Data|{{{1}}}|numenchants|{{{2}}}}}}}|{{#var:numenchants}}}}
|itemachieve ={{Armor Data|{{{1}}}|AP|{{{2}}}}}
|description={{Armor Data|{{{1}}}|flavortext}}
|invslots ={{Armor Data|{{{1}}}|invslots}}
|sellprice  ={{Armor Data|{{{1}}}|SellPrices|{{{2}}}}}
|nomargin =1
|nofloat =1
  }} </includeonly><noinclude>
  }} </includeonly><noinclude>
Auto creates weapon infobox
Auto creates weapon infobox

Latest revision as of 18:17, 24 June 2024

Auto creates weapon infobox

Example

{{GenerateArmorInfobox|<weapon name>|<rarity number>}}
{{GenerateArmorInfobox|Armet|1}}
Armet
Armet.png
-
Armor Rating 31
-
-
Projectile Damage Reduction 2.1%
-
-
Headshot Damage Reduction 18%
-
-
Strength 1
-
-
Move Speed -7
-
Required Class:
Slot Type:
Head
2x2InvSlot.jpg
Sell Price:
0
Adventure Points
Item Achieve:
4
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
Armet
Armet.png
-
Armor Rating 37~38
-
-
Projectile Damage Reduction 2.1%
-
-
Headshot Damage Reduction 18%
-
-
Strength 4
-
-
Move Speed -7
-
-
Up to 2 extra enchantments
-
Required Class:
Slot Type:
Head
2x2InvSlot.jpg
Sell Price:
24
Adventure Points
Item Achieve:
24
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
Cobalt Plate Pants
Cobalt Plate Pants.png
-
Armor Rating 39~41
-
-
Projectile Damage Reduction 3.3%
-
-
Magical Resistance -5
-
-
Strength 3
-
-
Vigor 2
-
-
Armor Penetration 1.5%
-
-
Move Speed -9
-
-
Up to 3 extra enchantments
-
Required Class:
Slot Type:
Legs
2x3InvSlot.jpg
Sell Price:
30
Adventure Points
Item Achieve:
36
These plate pants made of Cobalt infused steel are like a fortress for the legs.