mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-19 04:33:26 +02:00
Added hp current and temporary to character
This commit is contained in:
@@ -159,6 +159,8 @@ class Character:
|
|||||||
xp = 0
|
xp = 0
|
||||||
# Hit points
|
# Hit points
|
||||||
hp_max = None
|
hp_max = None
|
||||||
|
hp_current = None
|
||||||
|
hp_temp = None
|
||||||
# Base stats (ability scores)
|
# Base stats (ability scores)
|
||||||
strength = Ability()
|
strength = Ability()
|
||||||
dexterity = Ability()
|
dexterity = Ability()
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ def create_character_pdf_template(character, basename, flatten=False):
|
|||||||
# Hit points
|
# Hit points
|
||||||
"HDTotal": character.hit_dice,
|
"HDTotal": character.hit_dice,
|
||||||
"HPMax": str(character.hp_max),
|
"HPMax": str(character.hp_max),
|
||||||
|
"HPCurrent": str(character.hp_current),
|
||||||
|
"HPTemp": str(character.hp_temp),
|
||||||
# Personality traits and other features
|
# Personality traits and other features
|
||||||
"PersonalityTraits ": text_box(character.personality_traits),
|
"PersonalityTraits ": text_box(character.personality_traits),
|
||||||
"Ideals": text_box(character.ideals),
|
"Ideals": text_box(character.ideals),
|
||||||
|
|||||||
Reference in New Issue
Block a user