diff --git a/pokedex/data/csv/conquest_pokemon_stats.csv b/pokedex/data/csv/conquest_pokemon_stats.csv new file mode 100644 index 0000000..5648077 --- /dev/null +++ b/pokedex/data/csv/conquest_pokemon_stats.csv @@ -0,0 +1,1001 @@ +pokemon_species_id,conquest_stat_id,stat +4,1,188 +4,2,125 +4,3,97 +4,4,135 +4,5,4 +5,1,226 +5,2,133 +5,3,127 +5,4,165 +5,5,3 +6,1,266 +6,2,223 +6,3,167 +6,4,205 +6,5,2 +15,1,240 +15,2,165 +15,3,125 +15,4,155 +15,5,3 +23,1,180 +23,2,125 +23,3,103 +23,4,115 +23,5,3 +24,1,230 +24,2,175 +24,3,153 +24,4,165 +24,5,3 +25,1,180 +25,2,105 +25,3,75 +25,4,185 +25,5,3 +26,1,230 +26,2,185 +26,3,139 +26,4,205 +26,5,3 +39,1,340 +39,2,95 +39,3,49 +39,4,45 +39,5,3 +40,1,390 +40,2,145 +40,3,99 +40,4,95 +40,5,3 +41,1,190 +41,2,95 +41,3,79 +41,4,115 +41,5,4 +42,1,260 +42,2,135 +42,3,149 +42,4,185 +42,5,4 +52,1,190 +52,2,95 +52,3,79 +52,4,185 +52,5,3 +53,1,240 +53,2,145 +53,3,129 +53,4,235 +53,5,3 +63,1,160 +63,2,215 +63,3,75 +63,4,185 +63,5,4 +64,1,190 +64,2,245 +64,3,105 +64,4,215 +64,5,3 +65,1,220 +65,2,275 +65,3,135 +65,4,245 +65,5,3 +66,1,250 +66,2,165 +66,3,89 +66,4,75 +66,5,3 +67,1,270 +67,2,205 +67,3,135 +67,4,95 +67,5,3 +68,1,290 +68,2,265 +68,3,169 +68,4,115 +68,5,3 +92,1,170 +92,2,205 +92,3,69 +92,4,165 +92,5,4 +93,1,200 +93,2,235 +93,3,105 +93,4,195 +93,5,3 +94,1,230 +94,2,265 +94,3,139 +94,4,225 +94,5,3 +95,1,180 +95,2,95 +95,3,209 +95,4,145 +95,5,2 +111,1,270 +111,2,175 +111,3,129 +111,4,55 +111,5,3 +112,1,320 +112,2,265 +112,3,169 +112,4,85 +112,5,2 +123,1,250 +123,2,225 +123,3,165 +123,4,215 +123,5,3 +129,1,150 +129,2,25 +129,3,79 +129,4,165 +129,5,3 +130,1,300 +130,2,255 +130,3,183 +130,4,167 +130,5,3 +131,1,370 +131,2,175 +131,3,179 +131,4,125 +131,5,3 +133,1,220 +133,2,115 +133,3,119 +133,4,115 +133,5,4 +134,1,370 +134,2,225 +134,3,159 +134,4,135 +134,5,4 +135,1,240 +135,2,225 +135,3,159 +135,4,265 +135,5,4 +136,1,240 +136,2,265 +136,3,175 +136,4,135 +136,5,4 +143,1,430 +143,2,225 +143,3,179 +143,4,65 +143,5,2 +144,1,290 +144,2,195 +144,3,229 +144,4,175 +144,5,3 +147,1,192 +147,2,105 +147,3,99 +147,4,105 +147,5,3 +148,1,232 +148,2,173 +148,3,139 +148,4,145 +148,5,3 +149,1,292 +149,2,273 +149,3,199 +149,4,165 +149,5,2 +150,1,322 +150,2,313 +150,3,185 +150,4,265 +150,5,4 +169,1,280 +169,2,185 +169,3,165 +169,4,265 +169,5,4 +172,1,150 +172,2,75 +172,3,55 +172,4,125 +172,5,4 +174,1,290 +174,2,65 +174,3,39 +174,4,35 +174,5,3 +179,1,220 +179,2,135 +179,3,89 +179,4,75 +179,5,3 +180,1,250 +180,2,165 +180,3,119 +180,4,95 +180,5,3 +181,1,290 +181,2,235 +181,3,169 +181,4,115 +181,5,3 +194,1,220 +194,2,55 +194,3,75 +194,4,35 +194,5,3 +195,1,300 +195,2,175 +195,3,155 +195,4,75 +195,5,3 +196,1,240 +196,2,265 +196,3,159 +196,4,225 +196,5,4 +197,1,300 +197,2,135 +197,3,245 +197,4,135 +197,5,4 +200,1,230 +200,2,175 +200,3,149 +200,4,175 +200,5,3 +204,1,210 +204,2,135 +204,3,129 +204,4,35 +204,5,3 +205,1,260 +205,2,185 +205,3,205 +205,4,85 +205,5,3 +208,1,260 +208,2,175 +208,3,269 +208,4,65 +208,5,2 +212,1,250 +212,2,265 +212,3,185 +212,4,135 +212,5,3 +215,1,220 +215,2,195 +215,3,135 +215,4,235 +215,5,3 +246,1,210 +246,2,133 +246,3,105 +246,4,87 +246,5,3 +247,1,250 +247,2,173 +247,3,145 +247,4,107 +247,5,3 +248,1,310 +248,2,273 +248,3,215 +248,4,127 +248,5,2 +252,1,190 +252,2,135 +252,3,95 +252,4,145 +252,5,4 +253,1,210 +253,2,175 +253,3,115 +253,4,195 +253,5,3 +254,1,250 +254,2,215 +254,3,155 +254,4,245 +254,5,3 +280,1,166 +280,2,95 +280,3,65 +280,4,85 +280,5,3 +281,1,186 +281,2,135 +281,3,95 +281,4,105 +281,5,3 +282,1,246 +282,2,255 +282,3,185 +282,4,165 +282,5,3 +304,1,210 +304,2,145 +304,3,145 +304,4,65 +304,5,3 +305,1,230 +305,2,185 +305,3,195 +305,4,85 +305,5,3 +306,1,250 +306,2,225 +306,3,245 +306,4,105 +306,5,2 +347,1,200 +347,2,195 +347,3,105 +347,4,155 +347,5,3 +348,1,260 +348,2,255 +348,3,185 +348,4,95 +348,5,2 +355,1,150 +355,2,85 +355,3,185 +355,4,55 +355,5,3 +356,1,190 +356,2,145 +356,3,265 +356,4,55 +356,5,3 +358,1,240 +358,2,195 +358,3,155 +358,4,135 +358,5,3 +361,1,210 +361,2,105 +361,3,105 +361,4,105 +361,5,3 +362,1,270 +362,2,165 +362,3,165 +362,4,165 +362,5,3 +363,1,250 +363,2,115 +363,3,105 +363,4,55 +363,5,3 +364,1,290 +364,2,155 +364,3,145 +364,4,95 +364,5,3 +365,1,330 +365,2,195 +365,3,185 +365,4,135 +365,5,2 +374,1,190 +374,2,115 +374,3,145 +374,4,65 +374,5,3 +375,1,230 +375,2,155 +375,3,185 +375,4,105 +375,5,3 +376,1,270 +376,2,275 +376,3,225 +376,4,145 +376,5,3 +379,1,270 +379,2,155 +379,3,305 +379,4,105 +379,5,2 +383,1,310 +383,2,305 +383,3,235 +383,4,185 +383,5,2 +384,1,325 +384,2,310 +384,3,190 +384,4,200 +384,5,4 +390,1,198 +390,2,121 +390,3,93 +390,4,127 +390,5,4 +391,1,238 +391,2,161 +391,3,109 +391,4,167 +391,5,3 +392,1,262 +392,2,213 +392,3,147 +392,4,221 +392,5,3 +393,1,216 +393,2,127 +393,3,113 +393,4,85 +393,5,3 +394,1,238 +394,2,167 +394,3,149 +394,4,105 +394,5,3 +395,1,278 +395,2,227 +395,3,193 +395,4,125 +395,5,3 +396,1,190 +396,2,115 +396,3,65 +396,4,125 +396,5,4 +397,1,220 +397,2,155 +397,3,95 +397,4,165 +397,5,4 +398,1,280 +398,2,245 +398,3,125 +398,4,205 +398,5,4 +399,1,228 +399,2,95 +399,3,85 +399,4,67 +399,5,3 +400,1,268 +400,2,175 +400,3,125 +400,4,147 +400,5,3 +403,1,200 +403,2,85 +403,3,73 +403,4,95 +403,5,4 +404,1,230 +404,2,175 +404,3,103 +404,4,125 +404,5,3 +405,1,270 +405,2,195 +405,3,163 +405,4,145 +405,5,3 +410,1,170 +410,2,89 +410,3,211 +410,4,65 +410,5,3 +411,1,230 +411,2,109 +411,3,311 +411,4,65 +411,5,2 +425,1,290 +425,2,125 +425,3,83 +425,4,145 +425,5,4 +426,1,410 +426,2,165 +426,3,103 +426,4,165 +426,5,3 +429,1,230 +429,2,215 +429,3,169 +429,4,215 +429,5,3 +433,1,200 +433,2,135 +433,3,105 +433,4,95 +433,5,3 +442,1,210 +442,2,189 +442,3,221 +442,4,75 +442,5,3 +443,1,226 +443,2,85 +443,3,95 +443,4,89 +443,5,3 +444,1,246 +444,2,185 +444,3,125 +444,4,169 +444,5,3 +445,1,326 +445,2,265 +445,3,185 +445,4,209 +445,5,3 +446,1,380 +446,2,175 +446,3,129 +446,4,15 +446,5,3 +447,1,190 +447,2,145 +447,3,85 +447,4,125 +447,5,3 +448,1,250 +448,2,235 +448,3,145 +448,4,185 +448,5,3 +451,1,190 +451,2,105 +451,3,149 +451,4,135 +451,5,3 +452,1,250 +452,2,185 +452,3,189 +452,4,195 +452,5,3 +453,1,206 +453,2,127 +453,3,85 +453,4,105 +453,5,3 +454,1,276 +454,2,177 +454,3,135 +454,4,175 +454,5,3 +455,1,258 +455,2,205 +455,3,149 +455,4,97 +455,5,3 +461,1,250 +461,2,245 +461,3,155 +461,4,255 +461,5,3 +464,1,340 +464,2,285 +464,3,189 +464,4,85 +464,5,2 +470,1,240 +470,2,225 +470,3,199 +470,4,195 +470,5,4 +471,1,240 +471,2,265 +471,3,209 +471,4,135 +471,5,4 +475,1,246 +475,2,255 +475,3,185 +475,4,165 +475,5,3 +477,1,200 +477,2,205 +477,3,275 +477,4,95 +477,5,2 +478,1,250 +478,2,165 +478,3,145 +478,4,225 +478,5,3 +483,1,310 +483,2,305 +483,3,225 +483,4,185 +483,5,3 +493,1,350 +493,2,245 +493,3,245 +493,4,245 +493,5,4 +495,1,200 +495,2,95 +495,3,115 +495,4,131 +495,5,4 +496,1,230 +496,2,125 +496,3,155 +496,4,171 +496,5,4 +497,1,260 +497,2,155 +497,3,195 +497,4,231 +497,5,3 +498,1,240 +498,2,95 +498,3,95 +498,4,95 +498,5,3 +499,1,290 +499,2,191 +499,3,115 +499,4,115 +499,5,3 +500,1,330 +500,2,205 +500,3,135 +500,4,135 +500,5,2 +501,1,220 +501,2,131 +501,3,95 +501,4,95 +501,5,3 +502,1,260 +502,2,171 +502,3,125 +502,4,125 +502,5,3 +503,1,300 +503,2,205 +503,3,159 +503,4,145 +503,5,3 +511,1,210 +511,2,111 +511,3,101 +511,4,133 +511,5,3 +512,1,260 +512,2,201 +512,3,131 +512,4,207 +512,5,3 +513,1,210 +513,2,111 +513,3,101 +513,4,133 +513,5,3 +514,1,260 +514,2,201 +514,3,131 +514,4,207 +514,5,3 +515,1,210 +515,2,111 +515,3,101 +515,4,133 +515,5,3 +516,1,260 +516,2,201 +516,3,131 +516,4,207 +516,5,3 +517,1,262 +517,2,139 +517,3,105 +517,4,53 +517,5,3 +518,1,342 +518,2,219 +518,3,185 +518,4,63 +518,5,3 +522,1,200 +522,2,125 +522,3,69 +522,4,157 +522,5,4 +523,1,260 +523,2,165 +523,3,131 +523,4,237 +523,5,3 +524,1,220 +524,2,155 +524,3,115 +524,4,35 +524,5,3 +525,1,250 +525,2,215 +525,3,149 +525,4,45 +525,5,2 +526,1,280 +526,2,275 +526,3,205 +526,4,55 +526,5,2 +529,1,230 +529,2,175 +529,3,89 +529,4,141 +529,5,3 +530,1,330 +530,2,275 +530,3,129 +530,4,181 +530,5,3 +531,1,316 +531,2,125 +531,3,177 +531,4,105 +531,5,3 +532,1,260 +532,2,165 +532,3,95 +532,4,75 +532,5,3 +533,1,280 +533,2,215 +533,3,139 +533,4,85 +533,5,3 +534,1,320 +534,2,285 +534,3,165 +534,4,95 +534,5,3 +540,1,200 +540,2,85 +540,3,135 +540,4,89 +540,5,3 +541,1,220 +541,2,105 +541,3,175 +541,4,89 +541,5,2 +542,1,260 +542,2,145 +542,3,155 +542,4,189 +542,5,3 +543,1,170 +543,2,95 +543,3,103 +543,4,119 +543,5,3 +544,1,190 +544,2,115 +544,3,183 +544,4,99 +544,5,2 +545,1,230 +545,2,185 +545,3,163 +545,4,229 +545,5,3 +546,1,190 +546,2,79 +546,3,115 +546,4,137 +546,5,4 +547,1,230 +547,2,159 +547,3,165 +547,4,237 +547,5,4 +548,1,200 +548,2,145 +548,3,105 +548,4,65 +548,5,3 +549,1,250 +549,2,225 +549,3,155 +549,4,185 +549,5,3 +551,1,210 +551,2,149 +551,3,75 +551,4,135 +551,5,3 +552,1,230 +552,2,169 +552,3,95 +552,4,153 +552,5,3 +553,1,300 +553,2,239 +553,3,145 +553,4,189 +553,5,3 +554,1,250 +554,2,185 +554,3,95 +554,4,105 +554,5,3 +555,1,320 +555,2,285 +555,3,115 +555,4,195 +555,5,3 +559,1,210 +559,2,155 +559,3,145 +559,4,101 +559,5,3 +560,1,240 +560,2,185 +560,3,235 +560,4,121 +560,5,3 +570,1,190 +570,2,165 +570,3,85 +570,4,135 +570,5,4 +571,1,230 +571,2,245 +571,3,125 +571,4,215 +571,5,4 +572,1,220 +572,2,105 +572,3,85 +572,4,155 +572,5,3 +573,1,260 +573,2,195 +573,3,125 +573,4,235 +573,5,3 +574,1,200 +574,2,115 +574,3,119 +574,4,95 +574,5,3 +575,1,230 +575,2,155 +575,3,159 +575,4,115 +575,5,3 +576,1,250 +576,2,195 +576,3,209 +576,4,135 +576,5,3 +587,1,220 +587,2,155 +587,3,125 +587,4,211 +587,5,4 +595,1,210 +595,2,119 +595,3,105 +595,4,135 +595,5,4 +596,1,250 +596,2,199 +596,3,125 +596,4,221 +596,5,3 +607,1,210 +607,2,135 +607,3,115 +607,4,45 +607,5,3 +608,1,230 +608,2,195 +608,3,125 +608,4,115 +608,5,3 +609,1,230 +609,2,295 +609,3,185 +609,4,165 +609,5,3 +610,1,202 +610,2,179 +610,3,105 +610,4,119 +610,5,3 +611,1,242 +611,2,239 +611,3,125 +611,4,139 +611,5,3 +612,1,262 +612,2,299 +612,3,165 +612,4,199 +612,5,3 +613,1,220 +613,2,125 +613,3,85 +613,4,85 +613,5,3 +614,1,300 +614,2,225 +614,3,165 +614,4,105 +614,5,2 +624,1,200 +624,2,175 +624,3,115 +624,4,125 +624,5,3 +625,1,240 +625,2,255 +625,3,175 +625,4,145 +625,5,3 +627,1,250 +627,2,171 +627,3,105 +627,4,125 +627,5,4 +628,1,310 +628,2,251 +628,3,155 +628,4,165 +628,5,4 +633,1,214 +633,2,95 +633,3,105 +633,4,81 +633,5,3 +634,1,254 +634,2,175 +634,3,145 +634,4,121 +634,5,3 +635,1,294 +635,2,255 +635,3,185 +635,4,201 +635,5,3 +636,1,220 +636,2,175 +636,3,115 +636,4,125 +636,5,3 +637,1,280 +637,2,275 +637,3,175 +637,4,205 +637,5,3 +639,1,292 +639,2,263 +639,3,185 +639,4,221 +639,5,3 +643,1,310 +643,2,305 +643,3,225 +643,4,185 +643,5,3 +644,1,310 +644,2,305 +644,3,225 +644,4,185 +644,5,3 diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 91c778b..f6120bf 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -271,11 +271,27 @@ class ConquestPokemonEvolution(TableBase): recruiting_ko_required = Column(Boolean, nullable=False, server_default='False', info=dict(description=u"If true, the Pokémon must KO a Pokémon under the right conditions to recruit that Pokémon's warrior.")) +class ConquestPokemonStat(TableBase): + u"""A Pokémon's base stat in Pokémon Conquest. + + The main four base stats in Conquest are derived from level 100 stats in + the main series (ignoring effort, genes, and natures). Attack matches + either Attack or Special Attack, and Defense matches the average of Defense + and Special Defense. HP and Speed are the same. + """ + __tablename__ = 'conquest_pokemon_stats' + pokemon_species_id = Column(Integer, ForeignKey('pokemon_species.id'), primary_key=True, autoincrement=False, + info=dict(description=u'The ID of the Pokémon species.')) + conquest_stat_id = Column(Integer, ForeignKey('conquest_stats.id'), primary_key=True, autoincrement=False, + info=dict(description=u'The ID of the stat.')) + stat = Column(Integer, nullable=False, + info=dict(description=u'The base stat.')) + class ConquestStat(TableBase): - u"""A stat for Pokémon in Pokémon Conquest. + u"""A stat Pokémon have in Pokémon Conquest. """ __tablename__ = 'conquest_stats' - __singlename__ = 'conquest_stat' + __singlename__ = 'conquest_stat' # To be safe id = Column(Integer, primary_key=True, autoincrement=True, info=dict(desription=u'An ID for this stat.')) identifier = Column(Unicode(7), nullable=False,