Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pokemon type #25

Open
Leliene opened this issue Jul 24, 2016 · 1 comment
Open

Pokemon type #25

Leliene opened this issue Jul 24, 2016 · 1 comment

Comments

@Leliene
Copy link

Leliene commented Jul 24, 2016

Hi,
Is it possible to add the pokemon type in monsters objects ? (normal, fire, water ...)

@aboro
Copy link

aboro commented Aug 9, 2016

Hi Leliene,

If you'd like this information, it's possible to add it to the pokedex.py. I've added a stages section to it myself so I can check if I have an evolved form of a pokemon before I evolve it. As an example it would look similar to:

self.type = {
    self.MISSIGNO: "unknown", self.BULBASAUR: "Grass"...
}

then you can add a feature down the end like:

def get_type_by_name(self, name):
    return self.type[name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants