Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quickdice is a simple CLI-style application designed for executing complex d20 attack rolls quickly.
Author: Robert Wegner
Contact: [email protected]
Usage:
A command for Quickdice should follow this format:
(number of attack rolls)(n/a/d for normal, advantage, or disadvantage) + (attack bonus) vs (AC) + (AC bonus>) dmg (damage breakdown)
The damage breakdown consists of one or more damage instances separated by
+
. Damage instances can be simple numbers (e.g.,3
), dice rolls (e.g.,1d6
), or specific types (e.g.,2d6fi
for fire damage,1d12co
for cold damage,5ne
for necrosis damage). Spaces are ignored.Examples:
2n+4 vs 12 dmg 1d6+4
2a - 3 vs 17 + 1 dmg 1d6fi + 9ne + 4d12pi
4d+1vs10dmg2d6+1d7+3d4co+1bl
The tool calculates the number of attacks, compares each to the AC, and breaks down the damage by type. Natural 20 rolls are treated as automatic hits, doubling the dice rolled for that attack.