mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Added Pokémon movesets. #14
Has an 'order' column stubbed out for ordering moves learned at the same time.
This commit is contained in:
parent
64d3c7d5f1
commit
bf5ce11242
3 changed files with 132271 additions and 0 deletions
10
pokedex/data/csv/pokemon_move_methods.csv
Normal file
10
pokedex/data/csv/pokemon_move_methods.csv
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
id,name,description
|
||||||
|
1,Level up,Learned when a Pokémon reaches a certain level.
|
||||||
|
2,Egg,"Appears on a newly-hatched Pokémon, if the mother had the same move."
|
||||||
|
3,Tutor,Can be taught at any time by an NPC.
|
||||||
|
4,Machine,Can be taught at any time by using a TM or HM.
|
||||||
|
5,Stadium: Surfing Pikachu,"Learned when a non-rental Pikachu helps beat Prime Cup Master Ball R-2. It must participate in every battle, and you must win with no continues."
|
||||||
|
6,Volt Tackle Pichu,Appears on a Pichu whose mother was holding a Light Ball. The father cannot be Ditto.
|
||||||
|
7,Colosseum: Purification,Appears on a Shadow Pokémon as it becomes increasingly purified.
|
||||||
|
8,XD: Shadow,Appears on a Snatched Shadow Pokémon.
|
||||||
|
9,XD: Purification,Appears on a Shadow Pokémon as it becomes increasingly purified.
|
|
132240
pokedex/data/csv/pokemon_moves.csv
Normal file
132240
pokedex/data/csv/pokemon_moves.csv
Normal file
File diff suppressed because it is too large
Load diff
|
@ -290,6 +290,21 @@ class PokemonItem(TableBase):
|
||||||
item_id = Column(Integer, ForeignKey('items.id'), primary_key=True, nullable=False, autoincrement=False)
|
item_id = Column(Integer, ForeignKey('items.id'), primary_key=True, nullable=False, autoincrement=False)
|
||||||
rarity = Column(Integer, nullable=False)
|
rarity = Column(Integer, nullable=False)
|
||||||
|
|
||||||
|
class PokemonMove(TableBase):
|
||||||
|
__tablename__ = 'pokemon_moves'
|
||||||
|
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False, autoincrement=False)
|
||||||
|
version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False)
|
||||||
|
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False, index=True)
|
||||||
|
pokemon_move_method_id = Column(Integer, ForeignKey('pokemon_move_methods.id'), primary_key=True, nullable=False, autoincrement=False)
|
||||||
|
level = Column(Integer, primary_key=True, nullable=True)
|
||||||
|
order = Column(Integer, nullable=True)
|
||||||
|
|
||||||
|
class PokemonMoveMethod(TableBase):
|
||||||
|
__tablename__ = 'pokemon_move_methods'
|
||||||
|
id = Column(Integer, primary_key=True, nullable=False, autoincrement=False)
|
||||||
|
name = Column(Unicode(64), nullable=False)
|
||||||
|
description = Column(Unicode(255), nullable=False)
|
||||||
|
|
||||||
class PokemonName(TableBase):
|
class PokemonName(TableBase):
|
||||||
__tablename__ = 'pokemon_names'
|
__tablename__ = 'pokemon_names'
|
||||||
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False, autoincrement=False)
|
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False, autoincrement=False)
|
||||||
|
@ -394,6 +409,11 @@ PokemonFormGroup.pokemon = relation(Pokemon, backref=backref('form_group',
|
||||||
uselist=False))
|
uselist=False))
|
||||||
PokemonFormSprite.pokemon = relation(Pokemon, backref='form_sprites')
|
PokemonFormSprite.pokemon = relation(Pokemon, backref='form_sprites')
|
||||||
|
|
||||||
|
PokemonMove.pokemon = relation(Pokemon, backref='pokemon_moves')
|
||||||
|
PokemonMove.version_group = relation(VersionGroup)
|
||||||
|
PokemonMove.move = relation(Move, backref='pokemon_moves')
|
||||||
|
PokemonMove.method = relation(PokemonMoveMethod)
|
||||||
|
|
||||||
PokemonName.language = relation(Language)
|
PokemonName.language = relation(Language)
|
||||||
|
|
||||||
PokemonStat.stat = relation(Stat)
|
PokemonStat.stat = relation(Stat)
|
||||||
|
@ -409,3 +429,4 @@ Type.target_efficacies = relation(TypeEfficacy,
|
||||||
|
|
||||||
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
|
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
|
||||||
backref='versions')
|
backref='versions')
|
||||||
|
Version.version_group = relation(VersionGroup, backref='versions')
|
||||||
|
|
Loading…
Reference in a new issue