D20 Versions Save

A fast, powerful, and extensible dice engine for D&D, d20 systems, and any other system that needs dice!

v1.1.2

2 years ago

Adds type hints to main roll methods and utils, preventing IDEs like PyCharm from reading the docstrings and complaining about types

v1.1.1

2 years ago
  • Fixes an issue where utils.tree_map would not copy a Set's values, leading to map operations modifying the cached expression/AST (see avrae/avrae#1537)

v1.1.0

3 years ago
  • Added support for percentile dice (Xd% => {0, 10, ..., 90}) (thanks @dalemyers!)
  • Fixed an issue where requirements.txt was missing while building from sdist (thanks @nikkobautista!)
  • Fixed some inconsistent indentation in README

v1.0.4

3 years ago

Changes the grammar of dice to be explicit in where whitespace is allowed, handling many more comment ambiguity cases.

v1.0.3

4 years ago

Handles more comment ambiguities in parsing when allow_comments=True.

v1.0.2

4 years ago

Fixes an issue where RollResult.total and RollResult.result would not represent the most up-to-date result of the expression (in case the expression was directly modified)

v1.0.1

4 years ago
  • Handles a case where an invalid dice expression would raise UnexpectedCharacters instead of RollSyntaxError

v1.0.0

4 years ago

Initial release

v1.0.0rc3

4 years ago
  • Fixes an issue where annotations would not bubble up out of the child of Parenthetical objects when using utils.simplify_expr_annotations()

v1.0.0rc2

4 years ago
  • made utils.simplify_expr_annotations() not annotate the right sides of multiplicative binops in ambiguity resolution