示例#1
0
    def test_update_pokemon_gen12(self):
        """Test updating special skills of a Pokémon"""
        p            = Pokemon(PokemonType.Pikachu, State.normal)
        p.level      = 81
        p.HP_IV      = 7
        p.HP_EV      = 22850
        p.attack_IV  = 8
        p.attack_EV  = 23140
        p.defense_IV = 13
        p.defense_EV = 17280
        p.sp_IV      = 9
        p.sp_EV      = 19625

        pokemon.update_pokemon_gen2(p)
        self.assertTrue(p.HP == 189.0 and p.attack == 137.0 and p.defense == 101.0
            and p.sp_attack == 128.0 and p.sp_defense == 112.0)