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
351 downloads per month
17KB
137 lines
dofus-dmg-calculator
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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