--- /dev/null
+id,name,can_affect_user
+1,Regular damage,1
+2,Power varies,1
+3,Special damage,1
+4,Double damage,1
+5,Faints,1
+6,Critical,0
+7,Ignores type,0
+8,Ignores accuracy modifiers,0
+9,Meta (move uses another move, damage based on other damage),0
+10,Multiple turns/hits,0
+11,Charge or recovery turn,0
+12,Heals HP,1
+13,Cures status,1
+14,Protection,1
+15,Attack up,1
+16,Attack down,1
+17,Defense up,1
+18,Defense down,1
+19,Special Attack up,1
+20,Special Attack down,1
+21,Special Defense up,1
+22,Special Defense down,1
+23,Speed up,1
+24,Speed down,1
+25,Accuracy up,1
+26,Accuracy down,1
+27,Evasion up,1
+28,Evasion down,1
+29,Sleep,1
+30,Burn,1
+31,Paralysis,1
+32,Freeze,1
+33,Poison,1
+34,Confusion,1
+35,Flinch,1
+36,Trap,1
+37,Weather,0
version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False)
move_id = Column(Integer, ForeignKey('moves.id'), nullable=False)
+class MoveEffectCategory(TableBase):
+ __tablename__ = 'move_effect_categories'
+ id = Column(Integer, primary_key=True, nullable=False)
+ name = Column(Unicode(64), nullable=False)
+ can_affect_user = Column(Boolean, nullable=False)
+
+class MoveEffectCategoryMap(TableBase):
+ __tablename__ = 'move_effect_category_map'
+ move_effect_id = Column(Integer, ForeignKey('move_effects.id'), primary_key=True, nullable=False)
+ move_effect_category_id = Column(Integer, ForeignKey('move_effect_categories.id'), primary_key=True, nullable=False)
+ affects_user = Column(Boolean, primary_key=True, nullable=False)
+
class MoveDamageClass(TableBase):
__tablename__ = 'move_damage_classes'
id = Column(Integer, primary_key=True, nullable=False)
Move.priority = association_proxy('move_effect', 'priority')
Move.short_effect = rst.MoveEffectProperty('short_effect')
+MoveEffect.category_map = relation(MoveEffectCategoryMap)
+MoveEffect.categories = association_proxy('category_map', 'category')
+MoveEffectCategoryMap.category = relation(MoveEffectCategory)
+
MoveFlag.flag = relation(MoveFlagType)
MoveFlavorText.generation = relation(Generation)