mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
"Characteristic" text, here called stat hints.
This commit is contained in:
parent
74454f8d76
commit
373c01dfda
2 changed files with 44 additions and 0 deletions
pokedex/db
|
@ -1258,6 +1258,17 @@ class Stat(TableBase):
|
|||
name = Column(Unicode(16), nullable=False,
|
||||
info=dict(description=u"The English name of the stat", official=True, format='plaintext'))
|
||||
|
||||
class StatHint(TableBase):
|
||||
u"""Flavor text for genes that appears in a Pokémon's summary. Sometimes
|
||||
called "characteristics".
|
||||
"""
|
||||
__tablename__ = 'stat_hints'
|
||||
id = Column(Integer, primary_key=True, nullable=False)
|
||||
stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
|
||||
gene_mod_5 = Column(Integer, nullable=False, index=True)
|
||||
text = Column(Unicode(24), nullable=False, index=True, unique=True,
|
||||
info=dict(description=u"The English text displayed", official=True, format='plaintext'))
|
||||
|
||||
class SuperContestCombo(TableBase):
|
||||
u"""Combo of two moves in a Super Contest.
|
||||
"""
|
||||
|
@ -1662,6 +1673,8 @@ Region.version_groups = association_proxy('version_group_regions', 'version_grou
|
|||
|
||||
Stat.damage_class = relation(MoveDamageClass, backref='stats')
|
||||
|
||||
StatHint.stat = relation(Stat, backref='hints')
|
||||
|
||||
SuperContestCombo.first = relation(Move, primaryjoin=SuperContestCombo.first_move_id==Move.id,
|
||||
backref='super_contest_combo_first')
|
||||
SuperContestCombo.second = relation(Move, primaryjoin=SuperContestCombo.second_move_id==Move.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue