mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add descriptions to new tables
This commit is contained in:
parent
d0d4d1aa96
commit
414a272c21
1 changed files with 47 additions and 24 deletions
|
@ -715,19 +715,32 @@ class MoveFlavorText(TableBase, LanguageSpecific):
|
||||||
class MoveMeta(TableBase):
|
class MoveMeta(TableBase):
|
||||||
u"""Metadata for move effects, sorta-kinda ripped straight from the game"""
|
u"""Metadata for move effects, sorta-kinda ripped straight from the game"""
|
||||||
__tablename__ = 'move_meta'
|
__tablename__ = 'move_meta'
|
||||||
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False)
|
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False,
|
||||||
meta_category_id = Column(Integer, ForeignKey('move_meta_categories.id'), nullable=False)
|
info=dict(description="A numeric ID"))
|
||||||
meta_ailment_id = Column(Integer, ForeignKey('move_meta_ailments.id'), nullable=False)
|
meta_category_id = Column(Integer, ForeignKey('move_meta_categories.id'), nullable=False,
|
||||||
min_hits = Column(Integer, nullable=True, index=True)
|
info=dict(description="ID of the move category"))
|
||||||
max_hits = Column(Integer, nullable=True, index=True)
|
meta_ailment_id = Column(Integer, ForeignKey('move_meta_ailments.id'), nullable=False,
|
||||||
min_turns = Column(Integer, nullable=True, index=True)
|
info=dict(description="ID of the caused ailment"))
|
||||||
max_turns = Column(Integer, nullable=True, index=True)
|
min_hits = Column(Integer, nullable=True, index=True,
|
||||||
recoil = Column(Integer, nullable=False, index=True)
|
info=dict(description="Minimum number of hits per use"))
|
||||||
healing = Column(Integer, nullable=False, index=True)
|
max_hits = Column(Integer, nullable=True, index=True,
|
||||||
crit_rate = Column(Integer, nullable=False, index=True)
|
info=dict(description="Maximum number of hits per use"))
|
||||||
ailment_chance = Column(Integer, nullable=False, index=True)
|
min_turns = Column(Integer, nullable=True, index=True,
|
||||||
flinch_chance = Column(Integer, nullable=False, index=True)
|
info=dict(description="Minimum number of turns the user is forced to use the move"))
|
||||||
stat_chance = Column(Integer, nullable=False, index=True)
|
max_turns = Column(Integer, nullable=True, index=True,
|
||||||
|
info=dict(description="Maximum number of turns the user is forced to use the move"))
|
||||||
|
recoil = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Recoil damage, in percent of damage done"))
|
||||||
|
healing = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Healing, in percent of user's max HP"))
|
||||||
|
crit_rate = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Critical hit rate bonus"))
|
||||||
|
ailment_chance = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Chance to cause an ailment, in percent"))
|
||||||
|
flinch_chance = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Chance to cause flinching, in percent"))
|
||||||
|
stat_chance = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Chance to cause a stat change, in percent"))
|
||||||
|
|
||||||
class MoveMetaAilment(TableBase, OfficiallyNamed):
|
class MoveMetaAilment(TableBase, OfficiallyNamed):
|
||||||
u"""Common status ailments moves can inflict on a single Pokémon, including
|
u"""Common status ailments moves can inflict on a single Pokémon, including
|
||||||
|
@ -735,22 +748,29 @@ class MoveMetaAilment(TableBase, OfficiallyNamed):
|
||||||
"""
|
"""
|
||||||
__tablename__ = 'move_meta_ailments'
|
__tablename__ = 'move_meta_ailments'
|
||||||
__singlename__ = 'move_meta_ailment'
|
__singlename__ = 'move_meta_ailment'
|
||||||
id = Column(Integer, primary_key=True, nullable=False)
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
identifier = Column(Unicode(24), nullable=False)
|
info=dict(description="A numeric ID"))
|
||||||
|
identifier = Column(Unicode(24), nullable=False,
|
||||||
|
info=dict(description="An identifier", format='identifier'))
|
||||||
|
|
||||||
class MoveMetaCategory(TableBase):
|
class MoveMetaCategory(TableBase):
|
||||||
u"""Very general categories that loosely group move effects."""
|
u"""Very general categories that loosely group move effects."""
|
||||||
__tablename__ = 'move_meta_categories'
|
__tablename__ = 'move_meta_categories'
|
||||||
__singlename__ = 'move_meta_category'
|
__singlename__ = 'move_meta_category'
|
||||||
id = Column(Integer, primary_key=True, nullable=False)
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
description = ProseColumn(Unicode(64), plural='descriptions', nullable=False)
|
info=dict(description="A numeric ID"))
|
||||||
|
description = ProseColumn(Unicode(64), plural='descriptions', nullable=False,
|
||||||
|
info=dict(description="A description of the category"))
|
||||||
|
|
||||||
class MoveMetaStatChange(TableBase):
|
class MoveMetaStatChange(TableBase):
|
||||||
u"""Stat changes moves (may) make."""
|
u"""Stat changes moves (may) make."""
|
||||||
__tablename__ = 'move_meta_stat_changes'
|
__tablename__ = 'move_meta_stat_changes'
|
||||||
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False)
|
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False,
|
||||||
stat_id = Column(Integer, ForeignKey('stats.id'), primary_key=True, nullable=False, autoincrement=False)
|
info=dict(description="ID of the move"))
|
||||||
change = Column(Integer, nullable=False, index=True)
|
stat_id = Column(Integer, ForeignKey('stats.id'), primary_key=True, nullable=False, autoincrement=False,
|
||||||
|
info=dict(description="ID of the stat"))
|
||||||
|
change = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description="Amount of increase/decrease, in stages"))
|
||||||
|
|
||||||
class MoveTarget(TableBase, UnofficiallyNamed):
|
class MoveTarget(TableBase, UnofficiallyNamed):
|
||||||
u"""Targetting or "range" of a move, e.g. "Affects all opponents" or "Affects user".
|
u"""Targetting or "range" of a move, e.g. "Affects all opponents" or "Affects user".
|
||||||
|
@ -1329,11 +1349,14 @@ class StatHint(TableBase):
|
||||||
"""
|
"""
|
||||||
__tablename__ = 'stat_hints'
|
__tablename__ = 'stat_hints'
|
||||||
__singlename__ = 'stat_hint'
|
__singlename__ = 'stat_hint'
|
||||||
id = Column(Integer, primary_key=True, nullable=False)
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
|
info=dict(description=u"A numeric ID"))
|
||||||
gene_mod_5 = Column(Integer, nullable=False, index=True)
|
stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False,
|
||||||
|
info=dict(description=u"ID of the highest stat"))
|
||||||
|
gene_mod_5 = Column(Integer, nullable=False, index=True,
|
||||||
|
info=dict(description=u"Value of the highest stat modulo 5"))
|
||||||
text = TextColumn(Unicode(24), plural='texts', nullable=False, index=True, unique=True,
|
text = TextColumn(Unicode(24), plural='texts', nullable=False, index=True, unique=True,
|
||||||
info=dict(description=u"The English text displayed", official=True, format='plaintext'))
|
info=dict(description=u"The text displayed", official=True, format='plaintext'))
|
||||||
|
|
||||||
class SuperContestCombo(TableBase):
|
class SuperContestCombo(TableBase):
|
||||||
u"""Combo of two moves in a Super Contest.
|
u"""Combo of two moves in a Super Contest.
|
||||||
|
|
Loading…
Reference in a new issue