mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-18 20:23:27 +02:00
added spell description to appear for race spells
The spellsheets shouldn't be restricted to spellcasters. I suppose if a char gains access to a spell by a feature or any other means, the spellsheet should include it. So I changed a line in `make_sheets` so it calls for the proper method in case the char has any spell listed. Also, small changes were made to equipment_reader.py
This commit is contained in:
@@ -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"""
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user