From Dark and Darker Wiki

(added special enchantment condition for craftable as they can get an extra enchantment)
(Added sellprice property.)
 
(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}} }}<!--
|name                 = {{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|unique}}|{{Armor_Data|{{{1}}}|unique}}|{{{1}}}}}|{{{1}}}}}
-->{{Infobox
|image               = {{{1}}}
|name ={{{1}}}
|rarity               = {{{2}}}
|image ={{{1}}}
    |stats ={{
|rarity ={{{2}}}
  #loop: i
|size={{IconboxInventorySize|Armor Data|{{{1}}}}}
  | 0                      <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
|stats ={{
  | {{ #arraysize:stats }} <!-- number of loops -->
#loop: i
  | <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 }}}}
|0
}}
|{{#arraysize:stats}}
    |special              ={{#ifeq:{{{2}}}|7|{{Armor_Data|{{{1}}}|uniquepower}}}}
|<nowiki/><!--
|classes              = {{Armor_Data|{{{1}}}|classes}}
-->{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }} }}<!--
|slottype             = {{Armor_Data|{{{1}}}|slottype}}
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
|enchantments         = {{#if:{{#pos:{{{1}}}|Cobalt}}{{#pos:{{{1}}}|Rubysilver}}|{{#ifexpr:{{#expr: {{{2}}} -1 }} >0|{{#expr: {{{2}}} -1 }}}}|{{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}}}
-->{{#var:stat}} <!--
|armortype          = {{Armor_Data|{{{1}}}|armortype}}
-->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }}<!--
|description          = {{#ifeq:{{{2}}}|7|{{#if:{{Armor_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Armor_Data|{{{1}}}|flavortext}}}}|{{Armor_Data|{{{1}}}|flavortext}}}}
-->{{Armor Data|{{{1}}}|stats|{{ #var:stat }} }} }}
|nomargin             = 1
|classes ={{Armor Data|{{{1}}}|classes}}
|nofloat             = 1
|armortype ={{Armor Data|{{{1}}}|armortype}}
|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}}}}}
|nomargin =1
|nofloat =1
  }} </includeonly><noinclude>
  }} </includeonly><noinclude>
Auto creates weapon infobox
Auto creates weapon infobox
Line 26: Line 34:
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
{{GenerateArmorInfobox|Armet|1}}
{{GenerateArmorInfobox|Armet|1}}
{{GenerateArmorInfobox|Armet|7}}
{{GenerateArmorInfobox|Armet|4}}
{{GenerateArmorInfobox|Cobalt Plate Pants|4}}
</table>
</table>
</noinclude>
</noinclude>

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.