mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-07 13:15:53 +02:00
Add files via upload
This commit is contained in:
@@ -80,6 +80,7 @@ class Character(Creature):
|
||||
# Extra hit points info, for characters only
|
||||
hp_current = None
|
||||
hp_temp = 0
|
||||
hit_dice_current = ""
|
||||
# Base stats (ability scores)
|
||||
inspiration = False
|
||||
attacks_and_spellcasting = ""
|
||||
@@ -94,6 +95,7 @@ class Character(Creature):
|
||||
bonds = "TODO: Describe your character's commitments or ongoing quests."
|
||||
flaws = "TODO: Describe your character's interesting flaws."
|
||||
features_and_traits = "Describe any other features and abilities."
|
||||
chosen_tools = ""
|
||||
|
||||
_proficiencies_text = list()
|
||||
|
||||
@@ -110,8 +112,10 @@ class Character(Creature):
|
||||
faction_name = ""
|
||||
# faction_symbol = placeholder not sure how to implement
|
||||
backstory = ""
|
||||
additional_description = ""
|
||||
other_feats_traits = ""
|
||||
treasure = ""
|
||||
org_name = ""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
+11
-4
@@ -225,17 +225,24 @@ def rst_to_boxlatex(rst):
|
||||
def msavage_spell_info(char):
|
||||
"""Generates the spellsheet for msavage template."""
|
||||
headinfo = char.spell_casting_info["head"]
|
||||
font_options = {1:"", 2:r"\Large ", 3:r"\large "}
|
||||
selector = min(len(char.spellcasting_classes), 3)
|
||||
fs_command = font_options[selector]
|
||||
sc_classes = r"\SpellcastingClass{" \
|
||||
+ headinfo["classes_and_levels"] \
|
||||
+ fs_command \
|
||||
+ headinfo["classes_and_levels"].replace(" / ", ", ") \
|
||||
+ "}"
|
||||
sc_abilities = r"\SpellcastingAbility{" \
|
||||
+ headinfo["abilities"] \
|
||||
+ fs_command \
|
||||
+ headinfo["abilities"].replace(" ", "") \
|
||||
+ "}"
|
||||
sc_savedc = r"\SpellSaveDC{" \
|
||||
+ headinfo["DCs"] \
|
||||
+ fs_command \
|
||||
+ headinfo["DCs"].replace(" ", "") \
|
||||
+ "}"
|
||||
sc_atk = r"\SpellAttackBonus{" \
|
||||
+ headinfo["bonuses"] \
|
||||
+ fs_command \
|
||||
+ headinfo["bonuses"].replace(" ", "") \
|
||||
+ "}"
|
||||
tex1 = "\n".join([sc_classes, sc_abilities, sc_savedc, sc_atk]) + "\n"
|
||||
spellslots = char.spell_casting_info["slots"]
|
||||
|
||||
Reference in New Issue
Block a user