#calculator #utility #spell #damage #dofus

bin+lib dofus-dmg-calculator

Compute an estimation of Dofus spells' output damage

15 stable releases

Uses new Rust 2024

new 1.0.14 Mar 27, 2025
1.0.8 Mar 26, 2025
1.0.6 Mar 25, 2025
1.0.5 Mar 24, 2025

#1221 in Command line utilities

Download history 351/week @ 2025-03-19

351 downloads per month

MIT/Apache

17KB
137 lines

dofus-dmg-calculator

github crates.io crates.io

A binary crate to estimate Dofus spells' output damage

Installation

Current release: 1.0.10

$ cargo install dofus-dmg-calculator

This crate can also be used as a library. Issue the following to add it to your Cargo.toml:

$ cargo add dofus-dmg-calculator

Usage

Available options:

$ dofus-dmg-calculator --help
Usage: dofus-dmg-calculator [OPTIONS]

Compute the estimated damages your Dofus spell may inflict

Options:
  -i, --default-min <DMIN>  The minimum default damage of your spell [default: 0]
  -j, --default-max <DMAX>  The maximum default damage of your spell [default: 0]
  -k, --crit-min <CMIN>     The minimum critical damage of your spell [default: 0]
  -l, --crit-max <CMAX>     The maximum critical damage of your spell [default: 0]
  -s, --stat <STAT>         The stat points of your spell's type your character has [default: 0]
  -p, --power <POWER>       The power of your character [default: 0]
  -f, --fixed-dmg <DFIXED>  The fixed damage of your spell's type your character has [default: 0]
  -a, --author              Print author infos
  -h, --help                Print help
  -V, --version             Print version

Version: 1.0.10
Author: Patacode <pata.codegineer@gmail.com>

Example:

Agility spell inflicting 9 - 11 (12 - 14) (i.e. 9 to 11 damages by default and 12 to 14 on critical hit) by a character having 128 points allocated in agility stat and 1 point in fixed agility damage:

$ dofus-dmg-calculator \
  --default-min 9 \
  --default-max 11 \
  --crit-min 12 \
  --crit-max 14 \
  --stat 128 \
  --fixed-dmg 1
Damage estimation = 21 - 26 (28 - 32)

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

Dependencies

~7–18MB
~243K SLoC