Fixed a bug where skill names with spaces were not recognized as proficient.

This commit is contained in:
Mark Wolfman
2021-06-13 17:50:53 -05:00
parent 5a037d3c98
commit 57cb094d2e
2 changed files with 15 additions and 1 deletions
+4
View File
@@ -72,6 +72,7 @@ class TestStats(TestCase):
class MyClass(character.Character):
dexterity = stats.Ability(14)
acrobatics = stats.Skill(ability="dexterity")
sleight_of_hand = stats.Skill(ability="dexterity")
skill_proficiencies = []
proficiency_bonus = 2
@@ -80,3 +81,6 @@ class TestStats(TestCase):
# Check for a proficiency
my_class.skill_proficiencies = ["acrobatics"]
self.assertEqual(my_class.acrobatics, 4)
# Check for a proficiency with spaces in the name
my_class.skill_proficiencies = ["sleight_of_hand"]
self.assertEqual(my_class.sleight_of_hand, 4)