mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-07 13:15:53 +02:00
Fixed bug where all monster spells show up as concentration.
This commit is contained in:
@@ -89,7 +89,7 @@ def create_monsters_content(
|
|||||||
) -> str:
|
) -> str:
|
||||||
# Convert strings to Monster objects
|
# Convert strings to Monster objects
|
||||||
template = jinja_env.get_template(f"monsters_template.{suffix}")
|
template = jinja_env.get_template(f"monsters_template.{suffix}")
|
||||||
spell_list = [spell for monster in monsters for spell in monster.spells]
|
spell_list = [Spell() for monster in monsters for Spell in monster.spells]
|
||||||
return template.render(monsters=monsters,
|
return template.render(monsters=monsters,
|
||||||
use_dnd_decorations=use_dnd_decorations, spell_list=spell_list)
|
use_dnd_decorations=use_dnd_decorations, spell_list=spell_list)
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ def make_sheet(
|
|||||||
Either "pdf" or "epub" to generate a PDF file or an EPUB file.
|
Either "pdf" or "epub" to generate a PDF file or an EPUB file.
|
||||||
fancy_decorations : bool, optional
|
fancy_decorations : bool, optional
|
||||||
Use fancy page layout and decorations for extra sheets, namely
|
Use fancy page layout and decorations for extra sheets, namely
|
||||||
the dnd style file: https://github.com/rpgtex/DND-5e-LaTeX-Template.
|
the dnd style file: ://github.com/rpgtex/DND-5e-LaTeX-Template.
|
||||||
debug : bool, optional
|
debug : bool, optional
|
||||||
Provide extra info and preserve temporary files.
|
Provide extra info and preserve temporary files.
|
||||||
use_tex_template : bool, optional
|
use_tex_template : bool, optional
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ class AnimalFriendship(Spell):
|
|||||||
casting_range = "30 feet"
|
casting_range = "30 feet"
|
||||||
components = ("V", "S", "M")
|
components = ("V", "S", "M")
|
||||||
materials = "A morsel of food"
|
materials = "A morsel of food"
|
||||||
duration = "Instantaneous"
|
duration = "24 hours"
|
||||||
ritual = False
|
ritual = False
|
||||||
magic_school = "Enchantment"
|
magic_school = "Enchantment"
|
||||||
classes = ("Bard", "Druid", "Ranger")
|
classes = ("Bard", "Druid", "Ranger")
|
||||||
|
|||||||
Reference in New Issue
Block a user