An open API service indexing awesome lists of open source software.

https://github.com/bytemind-de/d4-tools

Tools for Diablo 4 to calculate stats like damage or defense.
https://github.com/bytemind-de/d4-tools

calculator diablo4 html-css-javascript web-application

Last synced: 6 months ago
JSON representation

Tools for Diablo 4 to calculate stats like damage or defense.

Awesome Lists containing this project

README

          

# D4 Tools

Lightweight, clutter-free, web-based, open-source tools for Diablo 4 to calculate stats like damage or defense.

### Common features

- Super lightweight design with no external dependencies (<100kb total size)
- Store calculators in your browser cache (localStorage) and export as JSON files
- Open multiple calculators side by side
- Disable properties temporarily (to quickly see changes)
- Drag & drop sorting
- Responsive design for large (desktop) and small (mobile) screens
- Light/dark mode

## Damage Calculator

The D4 Damage Calculator is a useful tool to assess your build, evaluate your damage and find ways to optimize it.
It **combines all D4 damage buckets** like weapon damage, main stat (str, dex, int, wil), additive damage ([+]%), multiplicative damage ([x]%) and more to **calculate your total damage** per hit.
In addition it supports **critical hit**, **vulnerable** effect and **overpower** damage (including HP and fortify).
To compare different variants of your build and test changes you can **open multiple calculators** next to each other and easily **store, load and export the data** (as JSON files).

URL: https://bytemind-de.github.io/apps/d4/damage.html

**Typical questions** to answer with this calculator:
- _What is the total damage per hit I can expect when using skill A with a fully charged aspect B and overpower + critical hit?_
- _What is better with my current gear, +50% critical damage or 80 more strength?_
- _What is the average DPS when I switch from 2h to 1h weapon?_

### Ideas to improve it

- Better support DoT (damage-over-time) skills
- Add predefined properties (skills, passives, glyphs, paragon nodes etc.) for the user to select (UPDATE: added BETA in v0.13.1)
- Add damage groups to automatically switch between close/distant/stunned etc. (UPDATE: added some core types in v0.13.0)
- Read the data from your actual account via some Blizzard API (d4armory seems to be able to do it, but how???)

### Known bugs / quirks

- DPS is a complex topic and often depends on multiple other factors that currently cannot be accounted for like the number of enemies in range, area of attack, secondary hits and more.
- The calculations do not directly support DoT damage right now, but you should be able to adjust your base damage and attack speed to find the correct damage values.
- Stored data will be lost anytime the browser cleans up its local-storage, so make sure to export your data often!

### Screenshots


Damage Calculator S2
Damage Calculator S2

## Defense Calculator

The D4 Defense Calculator is a tool to evaluate your defense and determine your **"effective" life against certain attacks**.
It will also **calculate your armor required to reach the 85% DR cap** against a specific monster level.

URL: https://bytemind-de.github.io/apps/d4/defense.html

**Typical questions** to answer with this calculator:
- _What is my 'effective' life when defending vs bleeding enemies that do physical damage in close range?_
- _What is better with my current gear, 4% more life or 3% damage reduction?_

### Ideas to improve it

- Add damage groups to be able to calculate defense for multiple attack types at the same time (close, distant, fire, poison, etc.)
- Take dodge into account (or at least show it as well)
- Take block chance into account
- Simplify handling of rubies and paragon nodes (% life), so you don't have to enter every single one

### Known bugs / quirks

- There might be slight rounding errors in the result, because the game often doesn't give you the full values (e.g. Doombringer is actually 41.44% life not 41.4% etc.)
- Stored data will be lost anytime the browser cleans up its local-storage, so make sure to export your data often!

### Credits

- Armor cap calculation is based on [SkyLineOW's findings](https://www.reddit.com/r/Diablo/comments/152gd9u/i_mostly_cracked_the_d4_armor_formula_and_made_a/)

### Screenshots


Defense Calculator S2 Beta