Exemple #1
0
 def test_physicality_base_min_cap(self):
     stats = Stats()
     stats._physicality_base = 10
     stats._physicality = 5
     self.assertEqual(10, stats.reduce_physicality_base(11))
     self.assertEqual(0, stats._physicality_base)
     self.assertEqual(0, stats._physicality)
Exemple #2
0
 def test_physicality_base_reduce(self):
     stats = Stats()
     stats._physicality_base = 10
     stats._physicality = 10
     self.assertEqual(4, stats.reduce_physicality_base(4))
     self.assertEqual(6, stats._physicality_base)
     self.assertEqual(6, stats._physicality)
Exemple #3
0
 def test_physicality_max_cap(self):
     stats = Stats()
     stats._physicality_base = 10
     stats._physicality = 5
     self.assertEqual(5, stats.increase_physicality(6))
     self.assertEqual(10, stats._physicality)
Exemple #4
0
 def test_physicality_base_increase(self):
     stats = Stats()
     stats._physicality_base = 10
     self.assertEqual(6, stats.increase_physicality_base(6))
     self.assertEqual(16, stats.physicality_base())
Exemple #5
0
 def test_physicality_increase(self):
     stats = Stats()
     stats._physicality_base = 10
     stats._physicality = 5
     self.assertEqual(2, stats.increase_physicality(2))
     self.assertEqual(7, stats._physicality)