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. #378
This commit is contained in:
parent
0e076a3022
commit
c984eaede1
2 changed files with 327 additions and 322 deletions
pokedex/db
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue