Fixed tests: needed defaults for making character sheets for NPCs (e.g. GM notes).

This commit is contained in:
Mark Wolfman
2022-01-22 14:49:13 -06:00
parent a30dc28100
commit 23b4bd2559
9 changed files with 69 additions and 14 deletions
+2 -2
View File
@@ -387,12 +387,12 @@ def make_character_content(
content_suffix=content_format,
use_dnd_decorations=fancy_decorations))
# Create a list of subcasses, features, spells, etc
if character.subclasses:
if len(getattr(character, 'subclasses', [])) > 0:
content.append(create_subclasses_content(character,
content_suffix=content_format,
use_dnd_decorations=fancy_decorations)
)
if character.features:
if len(getattr(character, 'features', [])) > 0:
content.append(
create_features_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations)
)