From Dark and Darker Wiki

(added special enchantment condition for craftable as they can get an extra enchantment)
(Added gear score)
 
(8 intermediate revisions by 3 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
     |special   ={{Armor Data|{{{1}}}|artifactpower}}
|nofloat             = 1
|classes ={{Armor Data|{{{1}}}|classes}}
|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}}}}}
|gearscore  ={{Armor Data|{{{1}}}|GearScore|{{{2}}}}}
|nomargin =1
|nofloat =1
  }} </includeonly><noinclude>
  }} </includeonly><noinclude>
Auto creates weapon infobox
Auto creates weapon infobox
Line 26: Line 36:
<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 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.