예제 #1
0
 def test_apply_poisoning_effect(self):
     Status.apply_non_volatile_status(StatusType.Psn, self.pokemon)
     print(self.pokemon.stats.get_actual_hp())
     Status.apply_poisoning_effect(self.pokemon)
     print(self.pokemon.stats.get_actual_hp())
     check = Status.apply_bad_poisoning_effect(self.pokemon)
     self.assertFalse(check)
예제 #2
0
    def test_apply_non_volatile_status(self):
        check = Status.apply_non_volatile_status(StatusType.Brn, self.pokemon)
        self.assertEqual(False, check)
        self.assertEqual(self.pokemon.non_volatile_status, StatusType.Normal)

        Status.apply_non_volatile_status(StatusType.Slp, self.pokemon)

        self.assertEqual(self.pokemon.non_volatile_status, StatusType.Slp)
예제 #3
0
 def test_apply_fainted_effect(self):
     Status.apply_non_volatile_status(StatusType.Fnt, self.pokemon)
     self.assertEqual(0, self.pokemon.stats.get_actual_hp())
예제 #4
0
 def test_remove_non_volatile_status(self):
     Status.apply_non_volatile_status(StatusType.Par, self.pokemon)
     Status.remove_non_volatile_status(self.pokemon)
     self.assertEqual(self.pokemon.stats.get_actual(StatsType.Spe), 167)
예제 #5
0
 def test_apply_paralysis_effect(self):
     Status.apply_non_volatile_status(StatusType.Par, self.pokemon)
     self.assertEqual(self.pokemon.stats.get_actual(StatsType.Spe), 84)