Added hp current and temporary to character

This commit is contained in:
tim_jackins
2021-06-09 01:06:52 -04:00
parent 8e2e021285
commit 36723417b4
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -159,6 +159,8 @@ class Character:
xp = 0
# Hit points
hp_max = None
hp_current = None
hp_temp = None
# Base stats (ability scores)
strength = Ability()
dexterity = Ability()
+2
View File
@@ -87,6 +87,8 @@ def create_character_pdf_template(character, basename, flatten=False):
# Hit points
"HDTotal": character.hit_dice,
"HPMax": str(character.hp_max),
"HPCurrent": str(character.hp_current),
"HPTemp": str(character.hp_temp),
# Personality traits and other features
"PersonalityTraits ": text_box(character.personality_traits),
"Ideals": text_box(character.ideals),