From c65c72842f20d85988d781ce06a1143afedf0125 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 11 Jul 2010 01:31:43 -0700 Subject: [PATCH] Add identifiers for move flags. --- pokedex/data/csv/move_flag_types.csv | 14 +++++++------- pokedex/db/tables.py | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pokedex/data/csv/move_flag_types.csv b/pokedex/data/csv/move_flag_types.csv index f89c2b6..53be0bc 100644 --- a/pokedex/data/csv/move_flag_types.csv +++ b/pokedex/data/csv/move_flag_types.csv @@ -1,7 +1,7 @@ -id,name,description -1,Makes contact,"User touches the target. This triggers some abilities (e.g., [Static]{ability}) and items (e.g., [Sticky Barb]{item})." -2,Blocked by Detect and Protect,This move will not work if the target has used [Detect]{move} or [Protect]{move} this turn. -3,Reflectable with Magic Coat,This move will be reflected back at the user if the target has used [Magic Coat]{move} this turn. -4,Snatchable,This move will be stolen if another Pokémon has used [Snatch]{move} this turn. -5,Rolls accuracy,This move is affected by [accuracy]{mechanic} and [evasion]{mechanic} modifiers. -6,Flinches with King's Rock,A held [King's Rock]{item} gives this move an 11.7% chance to make the target [flinch]{mechanic}. +id,identifier,name,description +1,contact,Makes contact,"User touches the target. This triggers some abilities (e.g., [Static]{ability}) and items (e.g., [Sticky Barb]{item})." +2,protect,Blocked by Detect and Protect,This move will not work if the target has used [Detect]{move} or [Protect]{move} this turn. +3,reflect,Reflectable with Magic Coat,This move will be reflected back at the user if the target has used [Magic Coat]{move} this turn. +4,snatch,Snatchable,This move will be stolen if another Pokémon has used [Snatch]{move} this turn. +5,accuracy,Rolls accuracy,This move is affected by [accuracy]{mechanic} and [evasion]{mechanic} modifiers. +6,flinch,Flinches with King's Rock,A held [King's Rock]{item} gives this move an 11.7% chance to make the target [flinch]{mechanic}. diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index d15cacf..85cdc22 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -342,6 +342,7 @@ class MoveFlag(TableBase): class MoveFlagType(TableBase): __tablename__ = 'move_flag_types' id = Column(Integer, primary_key=True, nullable=False) + identifier = Column(Unicode(16), nullable=False) name = Column(Unicode(32), nullable=False) description = Column(markdown.MarkdownColumn(128), nullable=False)