From Dark and Darker Wiki

mNo edit summary
(Added sellprice property.)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{ #arraydefine: stats | {{Weapon_Data|{{{1}}}|stats|allstats}} }}{{Infobox
<includeonly><!--
|name                 = {{#ifeq:{{{2}}}|7|{{#if:{{Weapon_Data|{{{1}}}|unique}}|{{Weapon_Data|{{{1}}}|unique}}|{{{1}}}}}|{{{1}}}}}
-->{{Infobox
|image                = {{#if:{{Weapon_Data|{{{1}}}|craftable}}|{{{1}}}|{{{1}}} {{{2}}}}}
|name ={{{1}}}
|rarity               = {{{2}}}
|image ={{#if:{{Weapon Data|{{{1}}}|iscraftableby}}{{Weapon Data|{{{1}}}|artifactpower}}|{{{1}}}|{{{1}}} {{{2}}}}}
    |stats ={{
|rarity ={{{2}}}
  #loop: i
|size  ={{IconboxInventorySize|Weapon Data|{{{1}}}}}
  | 0                      <!-- {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}} -->
|stats  ={{#arraydefine:stats|{{Weapon Data|{{{1}}}|stats|allstats}}}}<!--
  | {{ #arraysize:stats }} <!-- number of loops -->
-->{{#loop:i|0|{{#arraysize:stats}}<!--
  | <nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }} }}}}{{#ifeq:{{ #var:i }}|0||,}}{{ #var:stat }} {{#if:{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} }}|{{Weapon_Data|{{{1}}}|stats|{{ #var:stat }} {{{2}}} }} }}
-->|<nowiki/>{{#vardefine:stat|{{ #arrayindex:stats | {{ #var:i }}}}}}<!--
}}
-->{{#ifeq:{{ #var:i }}|0||,}}<!--
    |special             ={{#ifeq:{{{2}}}|7|{{Weapon_Data|{{{1}}}|uniquepower}}}}
-->{{#var:stat}} <!--
|classes             = {{Weapon Data|{{{1}}}|classes}}
-->{{#if:{{#vardefineecho:weapon_stat|{{Weapon Data|{{{1}}}|stats|{{#var:stat}}}}}}<!--
|slottype            = {{Weapon Data|{{{1}}}|slottype}}
-->|{{#var:weapon_stat}}<!--
|enchantments        = {{#ifexpr:{{#expr: {{{2}}} -2 }} >0|{{#expr: {{{2}}} -2 }}}}
-->|{{Weapon Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}}}}}}
|handtype             = {{Weapon Data|{{{1}}}|handtype}}
|special ={{Weapon Data|{{{1}}}|artifactpower}}
|weapontype          = {{Weapon_Data|{{{1}}}|weapontype}}
|classes ={{Weapon Data|{{{1}}}|classes}}
|quiversize          = {{Weapon_Data|{{{1}}}|maxammo}}
|enchantments ={{#if:{{#vardefineecho:numenchants|{{Weapon Data|{{{1}}}|numenchants|{{{2}}}}}}}|{{#var:numenchants}}}}
|hitbox              = {{Weapon_Data|{{{1}}}|range|height}}x{{Weapon_Data|{{{1}}}|range|width}}
|handtype ={{Weapon Data|{{{1}}}|handtype}}
|projectilespeed      = {{Weapon_Data|{{{1}}}|projectilespeed}}
|slottype ={{Weapon Data|{{{1}}}|slottype}}
|pierce              = {{Weapon_Data|{{{1}}}|pierce}}
|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}}<!--
    |invslots            = {{Weapon_Data|{{{1}}}|invslots}}
-->|{{Weapon Data|{{{1}}}|maxammocount}} }}
|nomargin             = 1
|hitbox ={{Weapon Data|{{{1}}}|hitbox|height}}x{{Weapon Data|{{{1}}}|hitbox|width}}x{{Weapon Data|{{{1}}}|hitbox|depth}}
|nofloat             = 1
|projectilespeed={{Weapon Data|{{{1}}}|initialprojectilespeed}}
}} </includeonly><noinclude>
|description ={{Weapon Data|{{{1}}}|flavortext}}
|itemachieve    ={{Weapon Data|{{{1}}}|AP|{{{2}}}}}
|invslots ={{Weapon Data|{{{1}}}|invslots}}
|sellprice      ={{Weapon Data|{{{1}}}|SellPrices|{{{2}}}}}
|nomargin =1
|nofloat =1
}}</includeonly><noinclude>
Auto creates weapon infobox
Auto creates weapon infobox
==Example==
==Example==
Line 32: Line 38:
<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 18:18, 24 June 2024

Auto creates weapon infobox

Example

{{GenerateWeaponInfobox|<weapon name>|<rarity number>}}
{{GenerateWeaponInfobox|Arming Sword|1}}
Arming Sword
Arming Sword 1.png
-
Physical Weapon Damage 26
-
-
Move Speed -20
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
54.38x11.2x1.48
1x3InvSlot.jpg
Sell Price:
0
Adventure Points
Item Achieve:
3
A thin blade with leather bindings, supporting a firm grip for hasty attacks that feel light to the hand.
Crossbow
Crossbow 4.png
-
Physical Weapon Damage 43~44
-
-
Armor Penetration 30%
-
-
Move Speed -50
-
-
Up to 2 extra enchantments
-
Required Class:
Armor Type:
Crossbow
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
9.07x34.63x47.05
2x3InvSlot.jpg
Sell Price:
36
Adventure Points
Item Achieve:
36
A powerful mechanical weapon, a single-shot crossbow with a crank that's very abrasive to the hand.
Demon's Glee
Demon's Glee.png
-
Physical Weapon Damage 28
-
-
Move Speed -15
-
-
Magical Damage Add 1
-
-
Up to 4 extra enchantments
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
One Handed
Hitbox:
56.13x13.08x5.67
1x3InvSlot.jpg
Sell Price:
60
Adventure Points
Item Achieve:
60
A blade fused with unholy blood is said to become almost sentient, craving destruction.
Fulgor
Fulgor.png
-
Physical Weapon Damage 48
-
-
Move Speed -30
-
-
Up to 4 extra enchantments
-
-
If you hit an enemy, summons a thunderbolt to deal 20 additional magic damage (100% scaling).
-
Required Class:
Armor Type:
Sword
Slot Type:
Main-Hand
Hand Type:
Two Handed
Hitbox:
80.41x17.14x2.42
1x4InvSlot.jpg
Sell Price:
120
Adventure Points
Item Achieve:
120
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.