Template:Attack Data
This template uses one or more modules written in the Lua programming language.
For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: Getdata-Attacks.
Usage
This template can be used to automatically pull known statistics from our Attack Data JSON and add it to the page in a table format.
In most cases all you need to do is add the following text to your page: {{Attack_Data}}
Overrides
If the default template is not displaying what you want it to display, you have a large number of overrides available to you.
If the name of the weapon is not the same as the pagename, you can adjust the template to be the correct name by using this format:
{{Attack_Data/attack|TITLE}}
Just change TITLE to the correct weapon that you want shown. This is case sensitive and needs to be the exact weapon name
Table Types
There's many sources of attack tables. The default assumes you're specifying the name of a weapon or a stratagem, and will search for the corresponding key in the "weapon" section of the data.
These are the currently available types:
- weapon - projectile - explosion - damage - spray - beam - arc
{{Attack Data|AR-23 Liberator}} identical to:
{{Attack Data/attack|weapon|AR-23 Liberator}}
gets data from "weapon"."AR-23 Liberator", then unrolls any attacks in "weapon"."AR-23 Liberator"."attacks" recursively, expanding data on its various attacks. An attack may in itself be a weapon, allowing vehicles and aircraft strikes to expand to feature complete tables of their various weapons.
You can manually specify a source other than a weapon via the "Attack Data/attack" submodule, i.e:
{{Attack Data/attack|damage|Projectile_Shotgun_10g_magtri}} would source "damage"."Projectile_Shotgun_10g_magtri".
{{Attack Data/attack|beam|MediumDrone}} would source from "beam"."MediumDrone".
See Module:Attack-Setup for how each of these tables are defined, which values they expect to be in the JSON and which names are used when overriding them.
Subtemplates
- Template:Attack Data
- Template:Attack Data Weapon
- Template:Attack Data Stratagem
- Template:Generated Damage Comparison Table
- Template:Attack Data/attack
- Template:Attack Data/weapon
- Template:Attack Data/weapon/clips
- Template:Attack Data/weapon/magazines
- Template:Attack Data/weapon/rounds
Pages Used By This Template
- Table Settings for Getdata Attacks: Module:Attack-Setup
- Main Attack Data Module: Module:Getdata-Attacks
- Attack Data JSON: Module:Decodedata-Attacks/data.json
- JSON Decoder Module: Module:Decodedata-Attacks
Attack Data JSON
The attack data pulled by this template is located at the below json files:
Format Of The JSON
- TBD
Updating The JSON
INSTRUCTIONS OUTDATED.
to update wiki.json:
- Install nodejs: [1]
- Clone my repo: [2]
- Clone shalzuth's repo: [3]
- These should be next to each other, not one within the other
- Add any new weapons to [data/weapons.toml]
- Within my repo, helldivers-calc, run the following commands:
- npm i
- npm run build
This will output an updated version of our wiki.json, which can then be copy/pasted into Module:Decodedata-Attacks/data.json
Override Examples
The following is an example of overriding a specific table of the 6 that are generated by the "EXO-45 Patriot Exosuit"
| EXO-45 Patriot Exosuit | |
|---|---|
| Main Health | 850 |
| Main Armor | |
| Total Uses | 3 |
| Cooldown | 600 sec |
| Call-in Time | 0 s |
| Weapons | |
| Patriot Exosuit - Left | |
| Fire Rate | 90 rpm |
| Ergonomics | 65 |
| Capacity | 14 |
| Spare Magazines | 0 |
| Starting Magazines | 0 |
| Missile Exosuit | Projectile |
| Missile Exosuit | Explosion |
| Patriot Exosuit - Right | |
| Fire Rate | 1200 rpm |
| Ergonomics | 65 |
| Capacity | 1350 |
| Spare Magazines | 0 |
| Starting Magazines | 0 |
| Rifle 8x60mm Full Metal Jacket | Projectile |
| Attacks | |
| Throw Hellbomb x 50 | Super Attack |
| Exosuit Destruction | Explosion |
| Missile Exosuit | |
|---|---|
| Projectile | |
| Caliber | 75 mm |
| Mass | 2.5 kg |
| Initial Velocity | 200 m/s |
| Drag Factor | 30% |
| Gravity Factor | 100% |
| Lifetime | 15 sec |
| Penetration Slowdown | 85% |
| Damage | |
| Standard | |
| vs. Durable | |
| Penetration | |
| Direct | |
| Slight Angle | |
| Large Angle | |
| Extreme Angle | |
| Special Effects | |
| Demolition Force | 30 |
| Stagger Force | 40 |
| Push Force | 25 |
| Missile Exosuit | |
|---|---|
| Area of Effect | |
| Inner Radius | 1 m |
| Outer Radius | 2 m |
| Shockwave Radius | 4 m |
| Damage | |
| Inner Radius | |
| Inner Durable | |
| Outer Radius | 399 - 0 |
| Outer Durable | 399 - 0 |
| Penetration | |
| Direct | |
| AoE Effect | |
| Demolition Force | 30 |
| Stagger Force | 60 |
| Push Force | 70 |
| Rifle 8x60mm Full Metal Jacket | |
|---|---|
| Projectile | |
| Caliber | 8 mm |
| Mass | 11 g |
| Initial Velocity | 820 m/s |
| Drag Factor | 30% |
| Gravity Factor | 100% |
| Penetration Slowdown | 25% |
| Damage | |
| Standard | |
| vs. Durable | |
| Penetration | |
| Direct | |
| Slight Angle | |
| Large Angle | |
| Extreme Angle | |
| Special Effects | |
| Demolition Force | 10 |
| Stagger Force | 20 |
| Push Force | 12 |
| Hellbomb | |
|---|---|
| Area of Effect | |
| Inner Radius | 17 m |
| Outer Radius | 25 m |
| Shockwave Radius | 45 m |
| Damage | |
| Inner Radius | 9001 |
| Inner Durable | |
| Outer Radius | This is a joke btw |
| Outer Durable | 9999 - 0 |
| Penetration | |
| Direct | |
| AoE Effect | |
| Demolition Force | 60 |
| Stagger Force | 50 |
| Push Force | 100 |
| Exosuit Destruction | |
|---|---|
| Area of Effect | |
| Inner Radius | 0.6 m |
| Outer Radius | 7 m |
| Shockwave Radius | 10 m |
| Damage | |
| Inner Radius | |
| Inner Durable | |
| Outer Radius | 199 - 0 |
| Outer Durable | 199 - 0 |
| Penetration | |
| Direct | |
| AoE Effect | |
| Demolition Force | 30 |
| Stagger Force | 50 |
| Push Force | 40 |
The following is an example of two completely custom tables generated for a newly released weapon.
| HH-42 Newly Released Weapon | |
|---|---|
| Fire Rate | 320rpm |
| Recoil | 12 |
| Capacity | 30 |
| Reload Time | 3.2sec |
| Spare Magazines | 8 |
| Starting Magazines | 5 |
| Mags from Supply | 8 |
| Mags from Ammo Box | 4 |
| Carbine Bullet | |
|---|---|
| Damage | |
| Standard | 80 |
| vs. Durable | 8 |
| Penetration | |
| Direct | |
| Slight Angle | |
| Large Angle | |
| Extreme Angle | |
| Special Effects | |
| Demolition Force | 10 |
| Stagger Force | 10 |
The above documentation is transcluded from Template:Attack Data/doc. (edit | history)