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);
Summary of changes:
major changes: 1) added
ranger_beast
property to Ranger class inranger.py
. It can be initialized by a tuple of the form:(beast, proficiency)
, where beast is supposed to be amonster.Monster
instance and proficiency is anint
. The initializer parses thebeast.__doc__
in order to adapt it as indicated by the Ranger's Companion feature.2) added
ranger_beast
property to Character class. It is initialized in analogous way aswild_shapes
for 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 convertstr
to Monster if needed. (mimicked from the druidswild_shape
setter);4) adapted
make_sheets.py
to include a list of companions;5) Added auxiliary functions and re definitions to
stats.py
anddice.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;