mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Rename MoveFlagType/MoveFlag to MoveFlag/MoveFlagMap. #591
This commit is contained in:
parent
85d779ba83
commit
f7a9c28e60
6 changed files with 1412 additions and 1414 deletions
1360
pokedex/data/csv/move_flag_map.csv
Normal file
1360
pokedex/data/csv/move_flag_map.csv
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
||||||
move_flag_type_id,local_language_id,name,description
|
move_flag_id,local_language_id,name,description
|
||||||
1,9,Makes contact,"User touches the target. This triggers some abilities (e.g., []{ability:static}) and items (e.g., []{item:sticky-barb})."
|
1,9,Makes contact,"User touches the target. This triggers some abilities (e.g., []{ability:static}) and items (e.g., []{item:sticky-barb})."
|
||||||
2,9,Has a charging turn,This move has a charging turn that can be skipped with a []{item:power-herb}.
|
2,9,Has a charging turn,This move has a charging turn that can be skipped with a []{item:power-herb}.
|
||||||
3,9,Must recharge,"The turn after this move is used, the Pokémon's action is skipped so it can recharge."
|
3,9,Must recharge,"The turn after this move is used, the Pokémon's action is skipped so it can recharge."
|
|
|
@ -1,15 +0,0 @@
|
||||||
id,identifier
|
|
||||||
1,contact
|
|
||||||
2,charge
|
|
||||||
3,recharge
|
|
||||||
4,protect
|
|
||||||
5,reflectable
|
|
||||||
6,snatch
|
|
||||||
7,mirror
|
|
||||||
8,punch
|
|
||||||
9,sound
|
|
||||||
10,gravity
|
|
||||||
11,defrost
|
|
||||||
12,distance
|
|
||||||
13,heal
|
|
||||||
14,authentic
|
|
|
File diff suppressed because it is too large
Load diff
|
@ -964,28 +964,28 @@ language_id,table,id,column,source_crc,string
|
||||||
10,MoveEffect,338,short_effect,11cd0067,Má $effect_chance% šanci zmást protivníka.
|
10,MoveEffect,338,short_effect,11cd0067,Má $effect_chance% šanci zmást protivníka.
|
||||||
10,MoveEffect,10004,short_effect,c028872e,Sníží protivníkovu Mrštnost o dva stupně.
|
10,MoveEffect,10004,short_effect,c028872e,Sníží protivníkovu Mrštnost o dva stupně.
|
||||||
10,MoveEffect,10006,short_effect,b2988a39,Na pět kol zatemní oblohu.
|
10,MoveEffect,10006,short_effect,b2988a39,Na pět kol zatemní oblohu.
|
||||||
10,MoveFlagType,1,description,66523335,Uživatel se dotkne cíle. Toto zaktivuje některé schopnosti (např. [Static]{ability}) a věci (např. [Sticky Barb]{item}).
|
10,MoveFlag,1,description,66523335,Uživatel se dotkne cíle. Toto zaktivuje některé schopnosti (např. [Static]{ability}) a věci (např. [Sticky Barb]{item}).
|
||||||
10,MoveFlagType,1,name,e34fed78,Způsobí dotek
|
10,MoveFlag,1,name,e34fed78,Způsobí dotek
|
||||||
10,MoveFlagType,2,description,d88ae74f,"Tento útok má nabíjecí kolo, které lze přeskočit pomocí [Power Herbu]{item:Power Herb}."
|
10,MoveFlag,2,description,d88ae74f,"Tento útok má nabíjecí kolo, které lze přeskočit pomocí [Power Herbu]{item:Power Herb}."
|
||||||
10,MoveFlagType,2,name,877244e9,Má nabíjecí kolo
|
10,MoveFlag,2,name,877244e9,Má nabíjecí kolo
|
||||||
10,MoveFlagType,3,description,6cea8671,"Kolo po použití tohoto útoku přeskočí Pokémon svůj tah, aby se mohl dobít."
|
10,MoveFlag,3,description,6cea8671,"Kolo po použití tohoto útoku přeskočí Pokémon svůj tah, aby se mohl dobít."
|
||||||
10,MoveFlagType,3,name,80fd2238,Má dobíjecí kolo
|
10,MoveFlag,3,name,80fd2238,Má dobíjecí kolo
|
||||||
10,MoveFlagType,4,description,102038da,"Tento útok nebude fungovat, použil-li cíl toto kolo [Detect]{move} či [Protect]{move}."
|
10,MoveFlag,4,description,102038da,"Tento útok nebude fungovat, použil-li cíl toto kolo [Detect]{move} či [Protect]{move}."
|
||||||
10,MoveFlagType,4,name,d249c071,Blokované Detectem a Protectem
|
10,MoveFlag,4,name,d249c071,Blokované Detectem a Protectem
|
||||||
10,MoveFlagType,5,name,b343310a,Odrazitelný
|
10,MoveFlag,5,name,b343310a,Odrazitelný
|
||||||
10,MoveFlagType,6,description,6d5f5422,"Tento útok bude ukraden, pokud jiný Pokémon toto kolo použil [Snatch]{move}"
|
10,MoveFlag,6,description,6d5f5422,"Tento útok bude ukraden, pokud jiný Pokémon toto kolo použil [Snatch]{move}"
|
||||||
10,MoveFlagType,6,name,3a15243a,Ukradnutelný
|
10,MoveFlag,6,name,3a15243a,Ukradnutelný
|
||||||
10,MoveFlagType,7,description,25e3b9d0,Pokémon co je cílem tohoto útoku ho může zkopírovat pomocí [Mirror Move]{move}
|
10,MoveFlag,7,description,25e3b9d0,Pokémon co je cílem tohoto útoku ho může zkopírovat pomocí [Mirror Move]{move}
|
||||||
10,MoveFlagType,7,name,c4e8a756,Kopírovatelný Mirror Movem
|
10,MoveFlag,7,name,c4e8a756,Kopírovatelný Mirror Movem
|
||||||
10,MoveFlagType,8,name,ae7d93f1,Úderový
|
10,MoveFlag,8,name,ae7d93f1,Úderový
|
||||||
10,MoveFlagType,9,description,b34264c8,Pokémoni s [Soundproof]{ability} jsou proti tomuto útoku odolní.
|
10,MoveFlag,9,description,b34264c8,Pokémoni s [Soundproof]{ability} jsou proti tomuto útoku odolní.
|
||||||
10,MoveFlagType,9,name,752347d8,Zvukový
|
10,MoveFlag,9,name,752347d8,Zvukový
|
||||||
10,MoveFlagType,10,description,ee78fc04,Tento útok nelze použít při [zvýšené gravitaci]{move:Gravity}
|
10,MoveFlag,10,description,ee78fc04,Tento útok nelze použít při [zvýšené gravitaci]{move:Gravity}
|
||||||
10,MoveFlagType,10,name,05543fc0,Nepoužitelný s Gravitací
|
10,MoveFlag,10,name,05543fc0,Nepoužitelný s Gravitací
|
||||||
10,MoveFlagType,11,description,e68d87da,Tento útok může zmražený pokémon použít k rozmrznutí.
|
10,MoveFlag,11,description,e68d87da,Tento útok může zmražený pokémon použít k rozmrznutí.
|
||||||
10,MoveFlagType,11,name,a2a771b1,Rozmrazí při použití
|
10,MoveFlag,11,name,a2a771b1,Rozmrazí při použití
|
||||||
10,MoveFlagType,13,description,5660882a,Tento útok bude blokován [Heal Blockem]{move:Heal Block}.
|
10,MoveFlag,13,description,5660882a,Tento útok bude blokován [Heal Blockem]{move:Heal Block}.
|
||||||
10,MoveFlagType,13,name,eb08469e,Léčí
|
10,MoveFlag,13,name,eb08469e,Léčí
|
||||||
10,MoveMetaAilment,1,name,5134bb3b,Paralýza
|
10,MoveMetaAilment,1,name,5134bb3b,Paralýza
|
||||||
10,MoveMetaAilment,2,name,cef2eda8,Spánek
|
10,MoveMetaAilment,2,name,cef2eda8,Spánek
|
||||||
10,MoveMetaAilment,6,name,4a28e9d1,Zmatení
|
10,MoveMetaAilment,6,name,4a28e9d1,Zmatení
|
||||||
|
|
|
|
@ -834,27 +834,25 @@ create_translation_table('move_effect_changelog_prose', MoveEffectChangelog, 'pr
|
||||||
)
|
)
|
||||||
|
|
||||||
class MoveFlag(TableBase):
|
class MoveFlag(TableBase):
|
||||||
u"""Maps a move flag to a move
|
|
||||||
"""
|
|
||||||
# XXX: Other flags have a ___Flag class for the actual flag and ___FlagMap for the map,
|
|
||||||
# these, somewhat confusingly, have MoveFlagType and MoveFlag
|
|
||||||
__tablename__ = 'move_flags'
|
|
||||||
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False,
|
|
||||||
info=dict(description="ID of the move"))
|
|
||||||
move_flag_type_id = Column(Integer, ForeignKey('move_flag_types.id'), primary_key=True, nullable=False, autoincrement=False,
|
|
||||||
info=dict(description="ID of the flag"))
|
|
||||||
|
|
||||||
class MoveFlagType(TableBase):
|
|
||||||
u"""A Move attribute such as "snatchable" or "contact".
|
u"""A Move attribute such as "snatchable" or "contact".
|
||||||
"""
|
"""
|
||||||
__tablename__ = 'move_flag_types'
|
__tablename__ = 'move_flags'
|
||||||
__singlename__ = 'move_flag_type'
|
__singlename__ = 'move_flag'
|
||||||
id = Column(Integer, primary_key=True, nullable=False,
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
info=dict(description="A numeric ID"))
|
info=dict(description="A numeric ID"))
|
||||||
identifier = Column(Unicode(32), nullable=False,
|
identifier = Column(Unicode(32), nullable=False,
|
||||||
info=dict(description="A short identifier for the flag", format='identifier'))
|
info=dict(description="A short identifier for the flag", format='identifier'))
|
||||||
|
|
||||||
create_translation_table('move_flag_type_prose', MoveFlagType, 'prose',
|
class MoveFlagMap(TableBase):
|
||||||
|
u"""Maps a move flag to a move
|
||||||
|
"""
|
||||||
|
__tablename__ = 'move_flag_map'
|
||||||
|
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, nullable=False, autoincrement=False,
|
||||||
|
info=dict(description="ID of the move"))
|
||||||
|
move_flag_id = Column(Integer, ForeignKey('move_flags.id'), primary_key=True, nullable=False, autoincrement=False,
|
||||||
|
info=dict(description="ID of the flag"))
|
||||||
|
|
||||||
|
create_translation_table('move_flag_prose', MoveFlag, 'prose',
|
||||||
relation_lazy='joined',
|
relation_lazy='joined',
|
||||||
name = Column(Unicode(32), nullable=True, index=True,
|
name = Column(Unicode(32), nullable=True, index=True,
|
||||||
info=dict(description="The name", format='plaintext', official=False)),
|
info=dict(description="The name", format='plaintext', official=False)),
|
||||||
|
@ -1836,7 +1834,7 @@ Move.meta_stat_changes = relationship(MoveMetaStatChange)
|
||||||
Move.move_effect = relationship(MoveEffect,
|
Move.move_effect = relationship(MoveEffect,
|
||||||
innerjoin=True,
|
innerjoin=True,
|
||||||
backref='moves')
|
backref='moves')
|
||||||
Move.move_flags = relationship(MoveFlag,
|
Move.move_flags = relationship(MoveFlagMap,
|
||||||
backref='move')
|
backref='move')
|
||||||
Move.super_contest_effect = relationship(SuperContestEffect,
|
Move.super_contest_effect = relationship(SuperContestEffect,
|
||||||
backref='moves')
|
backref='moves')
|
||||||
|
@ -1875,7 +1873,7 @@ MoveEffectChangelog.changed_in = relationship(VersionGroup,
|
||||||
innerjoin=True, lazy='joined',
|
innerjoin=True, lazy='joined',
|
||||||
backref='move_effect_changelog')
|
backref='move_effect_changelog')
|
||||||
|
|
||||||
MoveFlag.flag = relationship(MoveFlagType, innerjoin=True, lazy='joined')
|
MoveFlagMap.flag = relationship(MoveFlag, innerjoin=True, lazy='joined')
|
||||||
|
|
||||||
MoveFlavorText.version_group = relationship(VersionGroup,
|
MoveFlavorText.version_group = relationship(VersionGroup,
|
||||||
innerjoin=True, lazy='joined')
|
innerjoin=True, lazy='joined')
|
||||||
|
|
Loading…
Reference in a new issue