mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add warriors' stats.
This commit is contained in:
parent
39aa729e0a
commit
f2441a3f80
4 changed files with 1004 additions and 0 deletions
pokedex/db
|
@ -374,6 +374,16 @@ class ConquestWarriorRank(TableBase):
|
|||
{},
|
||||
)
|
||||
|
||||
class ConquestWarriorRankStatMap(TableBase):
|
||||
u"""Any of a warrior rank's warrior stats in Pokémon Conquest."""
|
||||
__tablename__ = 'conquest_warrior_rank_stat_map'
|
||||
warrior_rank_id = Column(Integer, ForeignKey('conquest_warrior_ranks.id'), primary_key=True, autoincrement=False,
|
||||
info=dict(description=u'The ID of the warrior rank.'))
|
||||
warrior_stat_id = Column(Integer, ForeignKey('conquest_warrior_stats.id'), primary_key=True, autoincrement=False,
|
||||
info=dict(description=u'The ID of the warrior stat.'))
|
||||
stat = Column(Integer, nullable=False,
|
||||
info=dict(description=u'The stat.'))
|
||||
|
||||
class ConquestWarriorSkill(TableBase):
|
||||
u"""A warrior skill in Pokémon Conquest.
|
||||
"""
|
||||
|
@ -404,6 +414,21 @@ class ConquestWarriorSpecialty(TableBase):
|
|||
slot = Column(Integer, primary_key=True, nullable=False, autoincrement=False,
|
||||
info=dict(description=u"The order in which the warrior's types are listed."))
|
||||
|
||||
class ConquestWarriorStat(TableBase):
|
||||
u"""A stat that warriors have in Pokémon Conquest."""
|
||||
__tablename__ = 'conquest_warrior_stats'
|
||||
__singlename__ = 'warrior_stat'
|
||||
id = Column(Integer, primary_key=True, autoincrement=True,
|
||||
info=dict(description=u'An ID for this stat.'))
|
||||
identifier = Column(Unicode(8), nullable=False,
|
||||
info=dict(description=u'A readable identifier for this stat.'))
|
||||
|
||||
create_translation_table('conquest_warrior_stat_names', ConquestWarriorStat, 'names',
|
||||
relation_lazy='joined',
|
||||
name=Column(Unicode(15), nullable=False, index=True,
|
||||
info=dict(description='The name.', format='plaintext', official=True))
|
||||
)
|
||||
|
||||
class ContestCombo(TableBase):
|
||||
u"""Combo of two moves in a Contest.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue