Tweaked the style sheets for fancy decorations in epub.

This commit is contained in:
Mark Wolfman
2021-07-13 22:37:13 -05:00
parent 3df1906156
commit 70cb8ae30f
5 changed files with 137 additions and 114 deletions
+5 -4
View File
@@ -12,6 +12,7 @@ from dungeonsheets import (
armor,
background,
classes,
exceptions,
features,
infusions,
magic_items,
@@ -270,7 +271,7 @@ class Character(Entity):
self._race = find_content(newrace, valid_classes=[race.Race])(
owner=self
)
except AttributeError:
except exceptions.ContentNotFound:
msg = f'Race "{newrace}" not defined. Please add it to ``race.py``'
self._race = race.Race(owner=self)
warnings.warn(msg)
@@ -293,7 +294,7 @@ class Character(Entity):
self._background = find_content(
bg, valid_classes=[background.Background]
)(owner=self)
except AttributeError:
except exceptions.ContentNotFound:
msg = (
f'Background "{bg}" not defined. Please add it to ``background.py``'
)
@@ -693,9 +694,9 @@ class Character(Entity):
@proficiencies_text.setter
def proficiencies_text(self, val):
try:
profs = profiencies_text.split(",")
profs = val.split(",")
except AttributeError:
profs = proficiencies_text
profs = val
self._proficiencies_text = profs
@property