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:
bw-mutley
2022-04-05 19:12:16 -03:00
committed by GitHub
parent d1d00b47c3
commit fb042efae7
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -15,6 +15,7 @@ item_reader = re.compile(r"(\d*)(\s*)(.+)")
gear_weight = {"abacus":2, gear_weight = {"abacus":2,
"alms box":3, "alms box":3,
"vial of acid":1, "vial of acid":1,
"acid vials":1,
"flask of alchemist's fire":1, "flask of alchemist's fire":1,
"flasks of alchemist's fire":1, "flasks of alchemist's fire":1,
"flask of oil":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, {string} feet of string, bell, {candles} candles, crowbar, hammer,
{pitons} pitons, hooded lantern, {pitons} pitons, hooded lantern,
{oil} flasks of oil, {rations} days of rations, tinderbox, waterskin, {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, diplomats_pack = """chest, {cases} cases for maps and scrolls,
fine clothes, bottle of ink, ink pen, lamp, {oil} flasks of oil, 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, dungeoneers_pack = """backpack, crowbar, hammer, {pitons} pitons,
{torches} torches, tinderbox, {rations} days of rations, waterskin, {torches} torches, tinderbox, {rations} days of rations, waterskin,
{rope} feet of hempen rope""" {rope} feet of hempen rope"""
+1 -1
View File
@@ -412,7 +412,7 @@ def make_character_content(
content.append( content.append(
create_magic_items_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations) 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( content.append(
create_spellbook_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations) create_spellbook_content(character, content_suffix=content_format, use_dnd_decorations=fancy_decorations)
) )