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

Support kaburumo and chobomaki's trade-for-each other evolution.

This commit is contained in:
Lynn "Zhorken" Vaughan 2010-12-23 20:26:04 -05:00
parent 0e076a3022
commit c984eaede1
2 changed files with 327 additions and 322 deletions
pokedex/db

View file

@ -996,7 +996,9 @@ class PokemonEvolution(TableBase):
relative_physical_stats = Column(Integer, nullable=True,
info=dict(description=u"Relation of Attack and Defense stats the pokémon must have, as sgn(atk-def), or None if that doesn't matter"))
party_pokemon_id = Column(Integer, ForeignKey('pokemon.id'), nullable=True,
info=dict(description=u"ID of a pokémon that must be present in the party, or None if there's no such condition"))
info=dict(description=u"The ID of the Pokémon that must be present in the party."))
trade_pokemon_id = Column(Integer, ForeignKey('pokemon.id'), nullable=True,
info=dict(description=u"The ID of the Pokémon for which this Pokémon must be traded."))
class PokemonFlavorText(TableBase):
u"""In-game pokédex descrption of a pokémon.
@ -1561,6 +1563,9 @@ PokemonEvolution.party_pokemon = relation(Pokemon,
primaryjoin=PokemonEvolution.party_pokemon_id==Pokemon.id,
backref='triggered_evolutions',
)
PokemonEvolution.trade_pokemon = relation(Pokemon,
primaryjoin=PokemonEvolution.trade_pokemon_id==Pokemon.id,
)
PokemonFlavorText.version = relation(Version)