Skip to content

v23.07.22

Compare
Choose a tag to compare
@tassaron tassaron released this 22 Jul 22:06
· 51 commits to main since this release

Breaking Changes

  • Finished renaming "armour" to "armor" (in methods of the Character class)

New Features

  • Re-added dice functions (thanks to @gergo-szabo) now in dice.py
  • Roll 4d6 and drop the lowest:
from dnd_character.dice import sum_rolls
sum_rolls(d6=4, drop_lowest=True)
  • Roll d20 with advantage:
from dnd_character.dice import roll_with_advantage_disadvantage
roll_with_advantage_disadvantage(dice=20, advantage=True)

Minor Changes

  • Serialized version of characters is smaller due to not including superfluous copies of data (level 20 bard used to produce a 56kb json file and now produces a 36kb file instead)

View on PyPI