From Dark and Darker Wiki

m (Changing Template to use calls that work with Armor Data.)
(Added gear score)
 
(6 intermediate revisions by 2 users 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}}
    |special   ={{Armor Data|{{{1}}}|artifactpower}}
|description ={{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}}
|classes ={{Armor Data|{{{1}}}|classes}}
|nomargin =1
|armortype ={{Armor Data|{{{1}}}|armortype}}
|nofloat =1
|slottype ={{Armor Data|{{{1}}}|slottype}}
|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}}}}}
|gearscore  ={{Armor Data|{{{1}}}|GearScore|{{{2}}}}}
|nomargin =1
|nofloat =1
  }} </includeonly><noinclude>
  }} </includeonly><noinclude>
Auto creates weapon infobox
Auto creates weapon infobox

Latest revision as of 23:12, 28 October 2024

Auto creates weapon infobox

Example

{{GenerateArmorInfobox|<weapon name>|<rarity number>}}
{{GenerateArmorInfobox|Armet|1}}
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
Gear Score:
1
Sell Price:
0
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
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
Gear Score:
16
Sell Price:
24
Item Achieve:
8
Molded heavy movable face and cheek plate armor, fully protecting the head from blows.
Cobalt Plate Pants.png
-
Armor Rating 39~41
-
-
Projectile Damage Reduction 3.3%
-
-
Magical Resistance -5
-
-
Strength 3
-
-
Vigor 2
-
-
Armor Penetration 3.5%
-
-
Move Speed -9
-
-
Up to 3 extra enchantments
-
Required Class:
Slot Type:
Legs
2x3InvSlot.jpg
Gear Score:
20
Sell Price:
30
Item Achieve:
12
These plate pants made of Cobalt infused steel are like a fortress for the legs.