diff --git a/dungeonsheets/equipment_reader.py b/dungeonsheets/equipment_reader.py index 9b890da..badfb61 100644 --- a/dungeonsheets/equipment_reader.py +++ b/dungeonsheets/equipment_reader.py @@ -15,6 +15,7 @@ item_reader = re.compile(r"(\d*)(\s*)(.+)") gear_weight = {"abacus":2, "alms box":3, "vial of acid":1, + "acid vials":1, "flask of alchemist's fire":1, "flasks of alchemist's fire":1, "flask of oil":1, @@ -190,10 +191,10 @@ burglars_pack = """backpack, {ball_bearings} ball bearings, {string} feet of string, bell, {candles} candles, crowbar, hammer, {pitons} pitons, hooded lantern, {oil} flasks of oil, {rations} days of rations, tinderbox, waterskin, -{rope} feet of hempen rope.""" +{rope} feet of hempen rope""" diplomats_pack = """chest, {cases} cases for maps and scrolls, fine clothes, bottle of ink, ink pen, lamp, {oil} flasks of oil, -{paper} paper sheet, vial of perfume, sealing wax, soap.""" +{paper} paper sheet, vial of perfume, sealing wax, soap""" dungeoneers_pack = """backpack, crowbar, hammer, {pitons} pitons, {torches} torches, tinderbox, {rations} days of rations, waterskin, {rope} feet of hempen rope""" diff --git a/dungeonsheets/make_sheets.py b/dungeonsheets/make_sheets.py index 894e584..2cd0ebf 100644 --- a/dungeonsheets/make_sheets.py +++ b/dungeonsheets/make_sheets.py @@ -412,7 +412,7 @@ def make_character_content( content.append( create_magic_items_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations) ) - if character.is_spellcaster: + if len(getattr(character, 'spells', [])) > 0: content.append( create_spellbook_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations) )