+++ /dev/null
-move_effect_category_id,local_language_id,name
-1,9,Regular damage
-2,9,Power varies
-3,9,Special damage
-4,9,Double damage
-5,9,Faints
-6,9,Critical
-7,9,Ignores type
-8,9,Ignores accuracy modifiers
-9,9,Meta
-10,9,Multiple turns/hits
-11,9,Charge or recovery turn
-12,9,Heals HP
-13,9,Cures status
-14,9,Protection
-15,9,Attack up
-16,9,Attack down
-17,9,Defense up
-18,9,Defense down
-19,9,Special Attack up
-20,9,Special Attack down
-21,9,Special Defense up
-22,9,Special Defense down
-23,9,Speed up
-24,9,Speed down
-25,9,Accuracy up
-26,9,Accuracy down
-27,9,Evasion up
-28,9,Evasion down
-29,9,Sleep
-30,9,Burn
-31,9,Paralysis
-32,9,Freeze
-33,9,Poison
-34,9,Confusion
-35,9,Flinch
-36,9,Trap
-37,9,Weather
info=dict(description="A detailed description of the effect", format='plaintext')),
)
-class MoveEffectCategory(TableBase):
- u"""Category of a move effect
- """
- __tablename__ = 'move_effect_categories'
- __singlename__ = 'move_effect_category'
- id = Column(Integer, primary_key=True, nullable=False,
- info=dict(description="A numeric ID"))
- identifier = Column(Unicode(64), nullable=False,
- info=dict(description="An identifier", format='identifier'))
- can_affect_user = Column(Boolean, nullable=False,
- info=dict(description="Set if the user can be affected"))
-
-create_translation_table('move_effect_category_prose', MoveEffectCategory, 'prose',
- name = Column(Unicode(64), nullable=False, index=True,
- info=dict(description="The name", format='plaintext', official=False)),
-)
-
-class MoveEffectCategoryMap(TableBase):
- u"""Maps a move effect category to a move effect
- """
- __tablename__ = 'move_effect_category_map'
- move_effect_id = Column(Integer, ForeignKey('move_effects.id'), primary_key=True, nullable=False,
- info=dict(description="ID of the move effect"))
- move_effect_category_id = Column(Integer, ForeignKey('move_effect_categories.id'), primary_key=True, nullable=False,
- info=dict(description="ID of the category"))
- affects_user = Column(Boolean, primary_key=True, nullable=False,
- info=dict(description="Set if the user is affected"))
-
class MoveEffectChangelog(TableBase):
"""History of changes to move effects across main game versions."""
__tablename__ = 'move_effect_changelog'
MoveChangelog.short_effect = markdown.MoveEffectProperty('short_effect')
MoveChangelog.short_effect_map = markdown.MoveEffectPropertyMap('short_effect_map')
-MoveEffect.category_map = relation(MoveEffectCategoryMap)
-MoveEffect.categories = association_proxy('category_map', 'category')
MoveEffect.changelog = relation(MoveEffectChangelog,
order_by=MoveEffectChangelog.changed_in_version_group_id.desc(),
backref='move_effect')
-MoveEffectCategoryMap.category = relation(MoveEffectCategory)
MoveEffectChangelog.changed_in = relation(VersionGroup,
innerjoin=True, lazy='joined',