From Dark and Darker Wiki
This is the documentation page for Module:Weapon
Overview
Functions for making Weapon table. Data comes from Data:Weapon.json.
Functions
draw_table
Creates a table of weapons
Parameters
- 1 - <Type>
- 2 - Craftable or Uncraftable or Artifact
draw_table examples
Sword, Craftable
{{#invoke:Weapon|draw_table|Sword|Craftable}}
| Name | Class | Slot | Movement Speed | Damage on Hit | Stats | Hitbox + Impact Resist | Impact Zones + Impact Power | Combo | Action Movement Penalty | Slowdown On Hit |
|---|---|---|---|---|---|---|---|---|---|---|
| Fighter Warlock Sorcerer | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 38 | Undead Race Damage Bonus 15% | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -30/-30/-30 for 0.35/0.35/0.35s | ||
| Ranger Rogue Bard | Main-Hand One Handed | -15 | Physical Base Weapon Damage 26 Magical Base Weapon Damage 1 | Primary Attack 1 100%/90% + 2 Primary Attack 2 100%/90% + 2 Primary Attack 3 100%/90% + 2 Primary Attack 4 100%/90% + 2 Special Riposte Attack 1 100%/90% + 2 Special Riposte Attack 2 100%/90% + 2 Impact Resist 3 | Primary Attacks Pierce/Pierce/Pierce/Pierce 100%/105%/110%/115% Special Attacks Slash/Pierce 135%/135% | Primary Attacks Mid Attack: x60%/60%/60%/60% Otherwise: x92.5%/92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -15/-15/-15/-15 for 0.2/0.2/0.2/0.2s | |||
| Fighter Warlock Sorcerer | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 39 | Undead Race Damage Bonus 15% | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -30/-30/-30 for 0.35/0.35/0.35s | ||
| Fighter Rogue Ranger Bard | Off-Hand One Handed | -15 | Physical Base Weapon Damage 26 | Undead Race Damage Bonus 15% | Secondary Attack 1 100%/90% + 2 Secondary Attack 2 100%/90% + 2 Secondary Attack 3 100%/90% + 2 Special Riposte Attack 1 100%/90% + 2 Special Riposte Attack 2 100%/90% + 2 Impact Resist 3 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -15/-15/-30 for 0.2/0.2/0.2s | ||
| Fighter Bard Warlock Sorcerer | Main-Hand One Handed | -25 | Physical Base Weapon Damage 37 | Armor Penetration 2~3% | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Impact Resist 3 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85% | Hitslow -25/-25/-25 for 0.35/0.35/0.35s | ||
| Wizard Warlock Sorcerer | Main-Hand Two Handed | -25 | Physical Base Weapon Damage 13 Magical Base Weapon Damage 18 | Action Speed 2% | Primary Attack 1 100%/90% + 3 Primary Attack 2 100%/90% + 3 Primary Attack 3 100%/90% + 3 Special Riposte Attack 1 100%/90% + 3 Impact Resist 3 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x85% Special Attacks Always: x85% | Hitslow -25/-25/-25 for 0.35/0.35/0.35s | ||
| Fighter Barbarian | Main-Hand One Handed | -20 | Physical Base Weapon Damage 33 | Luck 10 Magical Damage Reduction 2% | Primary Attack 1 100%/90% + 3 Primary Attack 2 100%/90% + 3 Primary Attack 3 100%/90% + 3 Special Riposte Attack 1 100%/90% + 3 Impact Resist 3 | Primary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash 150% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85% | Hitslow -20/-20/-20 for 0.35/0.35/0.35s | ||
| Fighter Barbarian Warlock | Main-Hand Two Handed | -40 | Physical Base Weapon Damage 45~46 | Physical Power 5 Undead Race Damage Bonus 30% | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Impact Resist 3 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 125% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x85% Special Attacks Always: x85% | Hitslow -40/-40/-40 for 0.35/0.35/0.35s | ||
| Fighter Bard Warlock Sorcerer | Main-Hand One Handed | -23 | Physical Base Weapon Damage 33 | Projectile Damage Reduction 2% | File:Obsidian Cutlass Hitbox.png | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Primary Attack 4 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Slash/Slash/Slash/Slash 100%/105%/110%/115% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60%/60% Otherwise: x92.5%/92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -25/-25/-25/-25 for 0.35/0.35/0.35/0.35s | |
| Fighter Rogue Ranger Bard | Off-Hand One Handed | -15 | Physical Base Weapon Damage 25 | Undead Race Damage Bonus 15% | Secondary Attack 1 100%/90% + 2 Secondary Attack 2 100%/90% + 2 Secondary Attack 3 100%/90% + 2 Special Riposte Attack 1 100%/90% + 2 Special Riposte Attack 2 100%/90% + 2 Impact Resist 3 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -15/-15/-30 for 0.2/0.2/0.2s | ||
| Wizard Warlock Sorcerer | Main-Hand Two Handed | -25 | Physical Base Weapon Damage 13 Magical Base Weapon Damage 18 | Outgoing Magical Healing Add 2 Move Speed Bonus 2% | Primary Attack 1 100%/90% + 3 Primary Attack 2 100%/90% + 3 Primary Attack 3 100%/90% + 3 Special Riposte Attack 1 100%/90% + 3 Impact Resist 3 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x85% Special Attacks Always: x85% | Hitslow -25/-25/-25 for 0.35/0.35/0.35s | ||
| Fighter Warlock Sorcerer | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 40 | Action Speed 5% Headshot Damage Modifier 5% | File:Spectral Blade Hitbox.png | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -30/-30/-30 for 0.35/0.35/0.35s | |
| Fighter Warlock Sorcerer | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 37 | Undead Race Damage Bonus 15% | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -30/-30/-30 for 0.35/0.35/0.35s | ||
| Fighter Rogue Ranger Bard | Off-Hand One Handed | -15 | Physical Base Weapon Damage 24 | Undead Race Damage Bonus 15% | Secondary Attack 1 100%/90% + 2 Secondary Attack 2 100%/90% + 2 Secondary Attack 3 100%/90% + 2 Special Riposte Attack 1 100%/90% + 2 Special Riposte Attack 2 100%/90% + 2 Impact Resist 3 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -15/-15/-30 for 0.2/0.2/0.2s | ||
| Fighter Bard Warlock Sorcerer | Main-Hand One Handed | -25 | Physical Base Weapon Damage 37 | Debuff Duration Bonus 1.5% | File:Tidal Falchion Hitbox.png | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Impact Resist 3 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85% | Hitslow -25/-25/-25 for 0.35/0.35/0.35s | |
| Fighter Warlock Sorcerer | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 41 Magical Base Weapon Damage 2 | True Magical Damage 2 | Primary Attack 1 100%/90% + 4 Primary Attack 2 100%/90% + 4 Primary Attack 3 100%/90% + 4 Special Riposte Attack 1 100%/90% + 4 Special Riposte Attack 2 100%/90% + 4 Impact Resist 3 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 135%/135% | Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Block Actions Always: x97% Special Attacks Always: x85%/85% | Hitslow -30/-30/-30 for 0.35/0.35/0.35s |
Firearm, Uncraftable
{{#invoke:Weapon|draw_table|Firearm|Uncraftable}}
Code
| Name | Class | Slot | Movement Speed | Damage on Hit | Stats | Impact Zones + Impact Power | Action Movement Penalty | Slowdown On Hit | Initial Projectile Speed (m/s) |
|---|---|---|---|---|---|---|---|---|---|
| Fighter Ranger | Main-Hand Two Handed | -30 | Physical Base Weapon Damage 45~46 47~48 49~50 51~52 53~54 55~56 57~58 | True Physical Damage 10 | Primary Attack 1 100% + 6 Impact Resist 3 | Primary Attacks Always: x50% Block Actions Always: x85% | Hitslow -135 for 1.5s | 38 |