From a506bdd3047c5b53f0110976b37d362d2c6bbd48 Mon Sep 17 00:00:00 2001 From: Christopher Johnstone Date: Fri, 24 Jun 2022 20:19:30 -0400 Subject: [PATCH] Fixed misspellings of "proficiencies" --- dungeonsheets/race.py | 8 ++++---- dungeonsheets/readers.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dungeonsheets/race.py b/dungeonsheets/race.py index 94a944b..f8799bb 100644 --- a/dungeonsheets/race.py +++ b/dungeonsheets/race.py @@ -15,7 +15,7 @@ class Race: owner = None languages = ("Common",) proficiencies_text = tuple() - weapon_proficiences = tuple() + weapon_proficiencies = tuple() skill_proficiencies = () skill_choices = () num_skill_choices = 0 @@ -61,7 +61,7 @@ class _Dwarf(Race): languages = ("Common", "Dwarvish") constitution_bonus = 2 proficiencies_text = ("battleaxes", "handaxes", "throwing hammers", "warhammers") - weapon_proficiences = ( + weapon_proficiencies = ( weapons.Battleaxe, weapons.Handaxe, weapons.ThrowingHammer, @@ -388,7 +388,7 @@ class Tabaxi(Race): speed = "30 (20 climb)" languages = ("Common", "[Choose One]") weapon_proficiencies = (weapons.Claws,) - proficiences_text = ("Claws",) + proficiencies_text = ("Claws",) skill_proficiencies = ("perception", "stealth") features = ( feats.Darkvision, @@ -427,7 +427,7 @@ class Aarakocra(Race): wisdom_bonus = 1 languages = ("Common", "Aarakocra", "Auran") weapon_proficiencies = (weapons.Talons,) - proficiences_text = ("Talons",) + proficiencies_text = ("Talons",) def __init__(self, owner=None): super().__init__(owner=owner) diff --git a/dungeonsheets/readers.py b/dungeonsheets/readers.py index b266801..bcc2a88 100644 --- a/dungeonsheets/readers.py +++ b/dungeonsheets/readers.py @@ -500,14 +500,14 @@ class FoundryCharacterReader(JSONCharacterReader): "cha": "charisma", } abilities = self.json_data()["data"]["abilities"] - save_proficiences = [] + save_proficiencies = [] for abbr, attr in attribute_names.items(): char_props[attr] = self.as_int(abilities[abbr]["value"]) # Check proficiency is_proficient = bool(abilities[abbr]["proficient"]) if is_proficient: - save_proficiences.append(attr) - char_props["saving_throw_proficiencies"] = save_proficiences + save_proficiencies.append(attr) + char_props["saving_throw_proficiencies"] = save_proficiencies # Skill proficiencies skill_names = [ "acrobatics",