canismarko / dungeon-sheets

A tool to create character sheets and GM session notes for Dungeons and Dragons fifth edition (D&D 5e).
https://dungeon-sheets.readthedocs.io/en/latest/
GNU General Public License v3.0
161 stars 66 forks source link

Add files via upload #124

Closed bw-mutley closed 2 years ago

bw-mutley commented 2 years ago

Summary of changes:

major changes: 1) added ranger_beast property to Ranger class in ranger.py. It can be initialized by a tuple of the form: (beast, proficiency), where beast is supposed to be a monster.Monster instance and proficiency is an int. The initializer parses the beast.__doc__ in order to adapt it as indicated by the Ranger's Companion feature.

2) added ranger_beastproperty to Character class. It is initialized in analogous way aswild_shapesfor Druids but using the ranger_beast property of Ranger Class.

3) added a companions property to Character class. It can be initialized through a list of beast names or instances of Monster class. A function companion_resolver was prepended class Character definition to convert str to Monster if needed. (mimicked from the druids wild_shape setter);

4) adapted make_sheets.py to include a list of companions;

5) Added auxiliary functions and re definitions to stats.py and dice.py.

minor changes: 1) changed make_sheets.py and character class in order to allow a portrait to be included both as a bool or as a filename.

2) created companions form (mimicked from monsters form);

3) fixed small issues with MSavage template;

bw-mutley commented 2 years ago

I will close it and make another one soon.