def test_parameter_spot_checks(self):
     self.assertAlmostEqual( 5882.5, armor_mitigation.parameter(60))
     self.assertAlmostEqual(10557.5, armor_mitigation.parameter(70))
     self.assertAlmostEqual(15232.5, armor_mitigation.parameter(80))
     self.assertAlmostEqual(26070.0, armor_mitigation.parameter(85))
Exemplo n.º 2
0
 def _set_constants_for_level(self):
     self.buffs.level = self.level
     self.stats.level = self.level
     self.race.level = self.level
     # calculate and cache the level-dependent armor mitigation parameter
     self.armor_mitigation_parameter = armor_mitigation.parameter(self.level)