def test_dexterity_base_min_cap(self): stats = Stats() stats._dexterity_base = 10 stats._dexterity = 5 self.assertEqual(10, stats.reduce_dexterity_base(11)) self.assertEqual(0, stats._dexterity_base) self.assertEqual(0, stats._dexterity)
def test_dexterity_base_reduce(self): stats = Stats() stats._dexterity_base = 10 stats._dexterity = 10 self.assertEqual(4, stats.reduce_dexterity_base(4)) self.assertEqual(6, stats._dexterity_base) self.assertEqual(6, stats._dexterity)
def test_dexterity_max_cap(self): stats = Stats() stats._dexterity_base = 10 stats._dexterity = 5 self.assertEqual(5, stats.increase_dexterity(6)) self.assertEqual(10, stats._dexterity)
def test_dexterity_base_increase(self): stats = Stats() stats._dexterity_base = 10 self.assertEqual(6, stats.increase_dexterity_base(6)) self.assertEqual(16, stats._dexterity_base)
def test_dexterity_increase(self): stats = Stats() stats._dexterity_base = 10 stats._dexterity = 5 self.assertEqual(2, stats.increase_dexterity(2)) self.assertEqual(7, stats._dexterity)