1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Add game indices for natures.

I'm assuming (and I'm 99% sure I'm right) that the internal order for
natures has never changed.
This commit is contained in:
Lynn "Zhorken" Vaughan 2014-06-21 22:27:56 -04:00
parent 8cba4ac996
commit a71e4a2c13
2 changed files with 28 additions and 26 deletions
pokedex/db

View file

@ -1392,6 +1392,8 @@ class Nature(TableBase):
info=dict(description=u"ID of the Berry flavor the Pokémon hates (if likes_flavor_id is the same, the effects cancel out)"))
likes_flavor_id = Column(Integer, ForeignKey('contest_types.id'), nullable=False,
info=dict(description=u"ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)"))
game_index = Column(Integer, unique=True, nullable=False,
info=dict(description=u"This nature's internal ID in the games."))
@property
def is_neutral(self):