From Dark and Darker Wiki
(Created page with "=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== ===Craftable Sword=== ---- <pre>{{#invoke:Weapon|draw_table|Sword|Craftable}}</pre> {{#invoke:Weapon|draw_table|Sword|Craftable}} <br> ===Firearm=== ---- <pre>{{#invoke:Weapon|draw_table|Firearm|Uncraftable}}</pre> {{#in...") |
No edit summary |
||
| Line 12: | Line 12: | ||
==draw_table examples== | ==draw_table examples== | ||
===Craftable | ===Sword, Craftable=== | ||
---- | ---- | ||
<pre>{{#invoke:Weapon|draw_table|Sword|Craftable}}</pre> | <pre>{{#invoke:Weapon|draw_table|Sword|Craftable}}</pre> | ||
| Line 19: | Line 19: | ||
{{#invoke:Weapon|draw_table|Sword|Craftable}} | {{#invoke:Weapon|draw_table|Sword|Craftable}} | ||
<br> | <br> | ||
===Firearm=== | ===Firearm, Uncraftable=== | ||
---- | ---- | ||
<pre>{{#invoke:Weapon|draw_table|Firearm|Uncraftable}}</pre> | <pre>{{#invoke:Weapon|draw_table|Firearm|Uncraftable}}</pre> | ||
=Code= | |||
{{#invoke:Weapon|draw_table|Firearm|Uncraftable}} | {{#invoke:Weapon|draw_table|Firearm|Uncraftable}} | ||
Latest revision as of 06:08, 14 March 2026
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% | Impact Resist 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 Special Riposte Attack 2 100%/90% + 4 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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 | Impact Resist 3 | 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 | Primary Attacks Pierce/Pierce/Pierce/Pierce 100%/105%/110%/115% Special Attacks Slash/Pierce 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60%/60% Otherwise: x92.5%/92.5%/92.5%/92.5% 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% | Impact Resist 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 Special Riposte Attack 2 100%/90% + 4 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 3 | 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 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Block Actions Always: x97% Other Actions Always: x75% Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 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 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Block Actions Always: x97% Other Actions Always: x75% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 3 | 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 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Block Actions Always: x85% Other Actions Always: x75%/70% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 3 | 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 | Primary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash 150% | Block Actions Always: x97% Other Actions Always: x75% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 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 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 125% | Block Actions Always: x85% Other Actions Mid Attack: x70%/85% Otherwise: x/92.5% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% Special Attacks Always: x85% | Hitslow -40/-40/-40 for 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% | Impact Resist 3 | 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 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Block Actions Always: x97% Other Actions Always: x75% Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 3 | 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 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Block Actions Always: x85% Other Actions Always: x75%/70% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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 Impact Resist 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 Special Riposte Attack 2 100%/90% + 4 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 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 Special Riposte Attack 2 100%/90% + 4 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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% | Impact Resist 3 | 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 | Secondary Attacks Slash/Slash/Pierce 100%/105%/110% Special Attacks Slash/Pierce 150%/150% | Block Actions Always: x97% Other Actions Always: x75% Secondary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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 Impact Resist 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 | Primary Attacks Slash/Slash/Slash 100%/105%/110% Special Attacks Slash 150% | Block Actions Always: x97% Other Actions Always: x75% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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 | Impact Resist 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 Special Riposte Attack 2 100%/90% + 4 | Primary Attacks Pierce/Slash/Slash 100%/105%/110% Special Attacks Slash/Slash 150%/150% | Block Actions Always: x97% Other Actions Always: x85% Primary Attacks Mid Attack: x60%/60%/60% Otherwise: x92.5%/92.5%/92.5% 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 | Hitbox + Impact Resist | Impact Zones + Impact Power | Combo | Action Movement Penalty | Slowdown On Hit |
|---|---|---|---|---|---|---|---|---|---|---|
| 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 | File:Hand Cannon Hitbox.png Impact Resist 3 | Primary Attack 1 100% + 6 | Primary Attacks Pierce | Block Actions Always: x85% Other Actions Always: x70%/50% Primary Attacks Always: x50% | Hitslow -135 for 1.5s |