updated how weapons are handled

This commit is contained in:
Ben Cook
2019-01-01 17:11:39 -05:00
parent 708a39403c
commit 2d7a25724b
9 changed files with 61 additions and 53 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ def create_character_pdf(character, basename, flatten=False):
for _fields, weapon in zip(weapon_fields, character.weapons):
name_field, atk_field, dmg_field = _fields
fields[name_field] = weapon.name
fields[atk_field] = '{:+d}'.format(weapon.attack_bonus)
fields[atk_field] = '{:+d}'.format(weapon.attack_modifier)
fields[dmg_field] = f'{weapon.damage}/{weapon.damage_type}'
# Other attack information
attack_str = f'Armor: {character.armor}'