GM notes EPUB now contains monster spell descriptions.

This commit is contained in:
Mark Wolfman
2021-07-13 21:43:28 -05:00
parent d26f520666
commit 3df1906156
5 changed files with 64 additions and 40 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ def create_monsters_content(
) -> str:
# Convert strings to Monster objects
template = jinja_env.get_template(f"monsters_template.{suffix}")
return template.render(monsters=monsters, use_dnd_decorations=use_dnd_decorations)
spell_list = [spell for monster in monsters for spell in monster.spells]
return template.render(monsters=monsters,
use_dnd_decorations=use_dnd_decorations, spell_list=spell_list)
def create_party_summary_content(