From Dark and Darker Wiki

(added unique power)
(Added gear score)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!--
{{ #arraydefine: stats | {{Weapon_Data|{{{1}}}|stats|allstats}} }}
-->{{Infobox
{{Infobox
|name ={{{1}}}
|name                 = {{#ifeq:{{{2}}}|7|{{#if:{{Weapon_Data|{{{1}}}|unique}}|{{Weapon_Data|{{{1}}}|unique}}|{{{1}}}}}|{{{1}}}}}
|image ={{#if:{{Weapon Data|{{{1}}}|iscraftableby}}{{Weapon Data|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
|image                = {{{1}}} {{{2}}}
|rarity ={{{2}}}
|rarity               = {{{2}}}
|size  ={{IconboxInventorySize|Weapon Data|{{{1}}}}}
    |stats ={{
|stats  ={{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}<!--
  #loop: i
-->{{#loop:i|0|{{#arraysize:stats}}<!--
  | 0                      <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
-->|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
  | {{ #arraysize:stats }} <!-- number of loops -->
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
  | <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}}}}
-->{{#var:stat}} <!--
}}
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}}}<!--
    |special              = {{Weapon Data|{{{1}}}|uniquepower}}
-->|{{#var:weapon_stat}}<!--
|classes              = {{Weapon Data|{{{1}}}|classes}}
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
|slottype            = {{Weapon Data|{{{1}}}|slottype}}
|special ={{Weapon Data|{{{1}}}|artifactpower}}
|enchantments         = {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}
|classes ={{Weapon Data|{{{1}}}|classes}}
|handtype            = {{Weapon Data|{{{1}}}|handtype}}
|enchantments ={{#if:{{#vardefineecho:numenchants|{{Weapon Data|{{{1}}}|numenchants|{{{2}}}}}}}|{{#var:numenchants}}}}
|weapontype           = {{Weapon_Data|{{{1}}}|weapontype}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|quiversize           = {{Weapon_Data|{{{1}}}|maxammo}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|hitbox               = {{Weapon_Data|{{{1}}}|range|height}}x{{Weapon_Data|{{{1}}}|range|width}}
|weapontype ={{#replace:{{Weapon Data|{{{1}}}|types|all}}|,|,&nbsp;}}
|description          = {{#ifeq:{{{2}}}|7|{{#if:{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|uniqueflavortext}}|{{Weapon_Data|{{{1}}}|flavortext}}}}|{{Weapon_Data|{{{1}}}|flavortext}}}}
|quiversize ={{#if:{{Weapon Data|{{{1}}}|Types|bow}}<!--
|nomargin             = 1
-->|{{Weapon Data|{{{1}}}|maxammocount}} }}
|nofloat             = 1
|hitbox ={{Weapon Data|{{{1}}}|hitbox|height}}x{{Weapon Data|{{{1}}}|hitbox|width}}x{{Weapon Data|{{{1}}}|hitbox|depth}}
}}
|projectilespeed={{Weapon Data|{{{1}}}|initialprojectilespeed}}
</includeonly><noinclude>
|description ={{Weapon Data|{{{1}}}|flavortext}}
Auto creates weapon row
|itemachieve    ={{Weapon Data|{{{1}}}|AP|{{{2}}}}}
|invslots ={{Weapon Data|{{{1}}}|invslots}}
|gearscore      ={{Weapon Data|{{{1}}}|GearScore|{{{2}}}}}
|sellprice      ={{Weapon Data|{{{1}}}|SellPrices|{{{2}}}}}
|nomargin =1
|nofloat =1
}}</includeonly><noinclude>
Auto creates weapon infobox
==Example==
==Example==
<pre>
<pre>
Line 32: Line 39:
<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;">
{{GenerateWeaponInfobox|Arming Sword|1}}
{{GenerateWeaponInfobox|Arming Sword|1}}
{{GenerateWeaponInfobox|Arming Sword|7}}
{{GenerateWeaponInfobox|Crossbow|4}}
{{GenerateWeaponInfobox|Demon's Glee|5}}
{{GenerateWeaponInfobox|Fulgor|7}}
</table>
</table>
</noinclude>
</noinclude>

Latest revision as of 23:12, 28 October 2024

Auto creates weapon infobox

Example

{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Arming Sword 1.png
-
Physical Base Weapon Damage 29
-
-
Move Speed -20
-
Required Class:
Weapon Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
47.24x10.38x1.67
1x3InvSlot.jpg
Gear Score:
1
Sell Price:
0
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.
Crossbow 4.png
-
Physical Base Weapon Damage 43~44
-
-
Armor Penetration 30%
-
-
Move Speed -50
-
-
Up to 2 extra enchantments
-
Required Class:
Weapon Type:
Crossbow
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
9.07x34.63x47.05
2x3InvSlot.jpg
Gear Score:
60
Sell Price:
36
Item Achieve:
12
A powerful mechanical weapon, a single-shot crossbow with a crank that's very abrasive to the hand.
Demon's Glee.png
-
Physical Base Weapon Damage 28
-
-
Move Speed -15
-
-
Magical Base Weapon Damage 1
-
-
Up to 4 extra enchantments
-
Required Class:
Weapon Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
55.82x7.53x5.89
1x3InvSlot.jpg
Gear Score:
54
Sell Price:
60
Item Achieve:
9
A blade fused with unholy blood is said to become almost sentient, craving destruction.
Fulgor.png
-
Physical Base Weapon Damage 50~52
-
-
Move Speed -30
-
-
Up to 5 extra enchantments
-
-
Successful weapon attacks summon a thunderbolt to strike the target dealing 20 Lightning Lightning Magical Base Damage (100% Scaling) and causing them to suffer -20% Move Speed Bonus for 1 second.
-
Required Class:
Weapon Type:
Sword
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
80.41x17.14x2.42
1x4InvSlot.jpg
Gear Score:
175
Sell Price:
120
Item Achieve:
40
Long ago, a King was gifted this artifact by someone who valued his sense of dream, justice, love and kindness, hoping to help him carve these principles into the world.