Added basic support for Races and some raw text boxes.

This commit is contained in:
Mark Wolfman
2018-03-28 19:52:59 -05:00
parent e44bb9203b
commit cafde3465d
8 changed files with 278 additions and 27 deletions
+4 -2
View File
@@ -61,7 +61,7 @@ def create_fdf(character, fdfname):
('ClassLevel', class_level),
('Background', character.background),
('PlayerName', character.player_name),
('Race ', character.race),
('Race ', str(character.race)),
('Alignment', character.alignment),
('XP', character.xp),
# Abilities
@@ -111,11 +111,13 @@ def create_fdf(character, fdfname):
# Hit points
('HDTotal', character.hit_dice),
('HPMax', character.hp_max),
# Personality traits
# Personality traits and other features
('PersonalityTraits ', text_box(character.personality_traits)),
('Ideals', text_box(character.ideals)),
('Bonds', text_box(character.bonds)),
('Flaws', text_box(character.flaws)),
('AttacksSpellcasting', text_box(character.attacks_and_spellcasting)),
('Features and Traits', text_box(character.features_and_traits)),
# Inventory
('CP', character.cp),
('SP', character.sp),