From 543419afcdeb6ce8fadfb7076471c2e4278d8025 Mon Sep 17 00:00:00 2001 From: "Lynn \"Zhorken\" Vaughan" Date: Sun, 15 Jul 2012 07:02:06 -0400 Subject: [PATCH] =?UTF-8?q?Add=20Conquest=20kingdoms=20and=20Pok=C3=A9mon?= =?UTF-8?q?=20evolution.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pokedex/data/csv/conquest_kingdom_names.csv | 18 +++ pokedex/data/csv/conquest_kingdoms.csv | 18 +++ .../data/csv/conquest_pokemon_evolution.csv | 114 ++++++++++++++++++ pokedex/db/tables.py | 42 +++++++ 4 files changed, 192 insertions(+) create mode 100644 pokedex/data/csv/conquest_kingdom_names.csv create mode 100644 pokedex/data/csv/conquest_kingdoms.csv create mode 100644 pokedex/data/csv/conquest_pokemon_evolution.csv diff --git a/pokedex/data/csv/conquest_kingdom_names.csv b/pokedex/data/csv/conquest_kingdom_names.csv new file mode 100644 index 0000000..943cdf6 --- /dev/null +++ b/pokedex/data/csv/conquest_kingdom_names.csv @@ -0,0 +1,18 @@ +kingdom_id,local_language_id,name +1,9,Aurora +2,9,Ignis +3,9,Fontaine +4,9,Violight +5,9,Greenleaf +6,9,Nixtorm +7,9,Pugilis +8,9,Viperia +9,9,Terrera +10,9,Avia +11,9,Illusio +12,9,Chrysalia +13,9,Cragspur +14,9,Spectra +15,9,Dragnor +16,9,Yaksha +17,9,Valora diff --git a/pokedex/data/csv/conquest_kingdoms.csv b/pokedex/data/csv/conquest_kingdoms.csv new file mode 100644 index 0000000..4864c6a --- /dev/null +++ b/pokedex/data/csv/conquest_kingdoms.csv @@ -0,0 +1,18 @@ +id,identifier,type_id +1,aurora,1 +2,ignis,10 +3,fontaine,11 +4,violight,13 +5,greenleaf,12 +6,nixtorm,15 +7,pugilis,2 +8,viperia,4 +9,terrera,5 +10,avia,3 +11,illusio,14 +12,chrysalia,7 +13,cragspur,6 +14,spectra,8 +15,dragnor,16 +16,yaksha,17 +17,valora,9 diff --git a/pokedex/data/csv/conquest_pokemon_evolution.csv b/pokedex/data/csv/conquest_pokemon_evolution.csv new file mode 100644 index 0000000..a140797 --- /dev/null +++ b/pokedex/data/csv/conquest_pokemon_evolution.csv @@ -0,0 +1,114 @@ +evolved_species_id,required_stat_id,minimum_stat,minimum_link,kingdom_id,warrior_gender,item_id,recruiting_ko_required +5,2,50,,,,,0 +6,2,83,,,,,0 +24,2,59,,,,,0 +25,,,50,,,,0 +26,,,,,,83,0 +39,,,50,,,,0 +40,,,,,,81,0 +42,6,55,,,,,0 +53,6,96,,,,,0 +64,2,83,,,,,0 +65,,,55,,,,1 +67,2,86,,,,,0 +68,,,60,,,,1 +93,2,99,,,,,0 +94,,,60,,,,1 +112,2,108,,,,,0 +130,2,16,,,,,0 +134,,,,,,84,0 +135,,,,,,83,0 +136,,,,,,82,0 +143,,,50,,,,0 +148,2,60,,,,,0 +149,2,132,,,,,0 +169,,,65,,,,0 +180,2,53,,,,,0 +181,2,90,,,,,0 +195,1,94,,,,,0 +196,,,70,11,,,0 +197,,,70,16,,,0 +205,3,73,,,,,0 +208,,,,,,210,1 +212,,,,,,210,1 +247,2,74,,,,,0 +248,2,132,,,,,0 +253,6,58,,,,,0 +254,6,118,,,,,0 +281,2,44,,,,,0 +282,2,75,,,,,0 +305,3,83,,,,,0 +306,3,130,,,,,0 +348,2,116,,,,,0 +356,3,104,,,,,0 +358,,,50,,,,0 +362,1,128,,,,,0 +364,1,138,,,,,0 +365,1,195,,,,,0 +375,3,64,,,,,0 +376,2,111,,,,,0 +391,6,48,,,,,0 +392,6,102,,,,,0 +394,2,51,,,,,0 +395,2,102,,,,,0 +397,6,48,,,,,0 +398,2,92,,,,,0 +400,2,39,,,,,0 +404,2,35,,,,,0 +405,2,95,,,,,0 +411,3,113,,,,,0 +426,1,146,,,,,0 +429,,,,,,108,0 +444,2,44,,,,,0 +445,2,136,,,,,0 +448,,,50,,,,0 +452,3,90,,,,,0 +454,2,81,,,,,0 +461,6,175,,,,303,0 +464,,,,,,298,1 +470,3,94,,5,,,0 +471,2,91,,6,,,0 +475,,,,,male,109,0 +477,,,,,,302,1 +478,,,,,female,109,0 +496,6,54,,,,,0 +497,6,104,,,,,0 +499,2,41,,,,,0 +500,2,115,,,,,0 +502,2,54,,,,,0 +503,2,104,,,,,0 +512,,,,,,85,0 +514,,,,,,82,0 +516,,,,,,84,0 +518,,,,,,81,0 +523,6,81,,,,,0 +525,3,59,,,,,0 +526,,,60,,,,1 +530,2,97,,,,,0 +533,2,81,,,,,0 +534,,,60,,,,1 +541,3,60,,,,,0 +542,,,65,,,,0 +544,3,50,,,,,0 +545,6,57,,,,,0 +547,,,,,,80,0 +549,,,,,,80,0 +552,2,80,,,,,0 +553,2,110,,,,,0 +555,2,110,,,,,0 +560,3,86,,,,,0 +571,2,90,,,,,0 +573,,,,,,107,0 +575,3,70,,,,,0 +576,3,106,,,,,0 +596,6,84,,,,,0 +608,2,84,,,,,0 +609,,,,,,108,0 +611,2,113,,,,,0 +612,2,173,,,,,0 +614,2,73,,,,,0 +625,2,118,,,,,0 +628,2,119,,,,,0 +634,2,72,,,,,0 +635,2,143,,,,,0 +637,2,131,,,,,0 diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 9673122..4f4579f 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -217,6 +217,48 @@ class BerryFlavor(TableBase): flavor = Column(Integer, nullable=False, info=dict(description="The level of the flavor in the berry")) +class ConquestKingdom(TableBase): + u"""A kingdom in Pokémon Conquest. + """ + __tablename__ = 'conquest_kingdoms' + __singlename__ = 'kingdom' + id = Column(Integer, primary_key=True, + info=dict(description="An ID for this kingdom.")) + identifier = Column(Unicode(9), nullable=False, + info=dict(description="A readable identifier for this kingdom.", format='identifier')) + type_id = Column(Integer, ForeignKey('types.id'), nullable=False, + info=dict(description="The type associated with this kingdom in-game.")) + +create_translation_table('conquest_kingdom_names', ConquestKingdom, 'names', + relation_lazy='joined', + name=Column(Unicode(9), nullable=False, index=True, + info=dict(description='The name.', format='plaintext', official=True)) +) + +class ConquestPokemonEvolution(TableBase): + u"""The conditions under which a Pokémon must successfully complete an + action to evolve in Pokémon Conquest. + + Any condition may be null if it does not apply for a particular Pokémon. + """ + __tablename__ = 'conquest_pokemon_evolution' + evolved_species_id = Column(Integer, ForeignKey('pokemon_species.id'), primary_key=True, nullable=False, + info=dict(description=u"The ID of the post-evolution species.")) + required_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=True, + info=dict(description=u"The ID of the stat which minimum_stat applies to.")) + minimum_stat = Column(Integer, nullable=True, + info=dict(description=u"The minimum value the Pokémon must have in a particular stat.")) + minimum_link = Column(Integer, nullable=True, + info=dict(description=u"The minimum link percentage the Pokémon must have with its warrior.")) + kingdom_id = Column(Integer, ForeignKey('conquest_kingdoms.id'), nullable=True, + info=dict(description=u"The ID of the kingdom in which this Pokémon must complete an action after meeting all other requirements.")) + warrior_gender = Column(Enum('male', 'female', name='conquest_warrior_gender'), nullable=True, + info=dict(description=u"The required gender for the Pokémon's warrior.")) + item_id = Column(Integer, ForeignKey('items.id'), nullable=True, + info=dict(description=u"The ID of the item the Pokémon's warrior must have equipped.")) + 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 ContestCombo(TableBase): u"""Combo of two moves in a Contest. """