def intelligence(self):
     return modifier_value(self.base_dexterity + self.race.dexterity_modifier)
Esempio n. 2
0
 def test_modifier_value(self):
     values = [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
     expected_modifiers = [-1, -1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4]
     tested_modifiers = [modifier_value(value) for value in values]
     self.assertListEqual(expected_modifiers, tested_modifiers)
 def dexterity(self):
     return modifier_value(self.base_dexterity + self.race.dexterity_modifier)
 def strength(self):
     return modifier_value(self.base_strength + self.race.strength_modifier)
Esempio n. 5
0
 def intelligence(self):
     return modifier_value(self.base_dexterity +
                           self.race.dexterity_modifier)
Esempio n. 6
0
 def dexterity(self):
     return modifier_value(self.base_dexterity +
                           self.race.dexterity_modifier)
Esempio n. 7
0
 def strength(self):
     return modifier_value(self.base_strength + self.race.strength_modifier)