Added ability-specific saving throw bonuses to magic items.

This commit is contained in:
Mark Wolfman
2021-08-08 17:26:28 -05:00
parent 700541a35d
commit 7b5aac9247
6 changed files with 109 additions and 21 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class TestStats(TestCase):
my_class = MyClass()
self.assertEqual(my_class.strength.saving_throw, 4)
# Try it with a magic item
my_class.magic_items.append(magic_items.RingOfProtection)
my_class.magic_items.append(magic_items.RingOfProtection())
self.assertEqual(my_class.strength.saving_throw, 5)
def test_modifier(self):