From fdea037a4710dbb6710dc08821ff4fab3543891e Mon Sep 17 00:00:00 2001 From: kampfmoehre Date: Mon, 2 Nov 2015 16:09:00 +0100 Subject: [PATCH] adds stat and type efficacy changelog and some german translations --- pokedex/data/csv/berry_firmness_names.csv | 5 + pokedex/data/csv/characteristic_text.csv | 30 ++ pokedex/data/csv/contest_type_names.csv | 5 + pokedex/data/csv/item_category_prose.csv | 44 ++ pokedex/data/csv/item_flag_prose.csv | 8 + pokedex/data/csv/item_fling_effect_prose.csv | 7 + pokedex/data/csv/item_pocket_names.csv | 8 + pokedex/data/csv/move_meta_ailment_names.csv | 20 + pokedex/data/csv/move_meta_category_prose.csv | 14 + pokedex/data/csv/pal_park_area_names.csv | 5 + pokedex/data/csv/pokeathlon_stat_names.csv | 5 + pokedex/data/csv/pokemon_habitat_names.csv | 9 + pokedex/data/csv/pokemon_stats_changelog.csv | 492 ++++++++++++++++++ pokedex/data/csv/stat_names.csv | 2 + pokedex/data/csv/stats.csv | 1 + pokedex/data/csv/type_efficacy_changelog.csv | 7 + pokedex/db/tables.py | 29 ++ 17 files changed, 691 insertions(+) create mode 100644 pokedex/data/csv/pokemon_stats_changelog.csv create mode 100644 pokedex/data/csv/type_efficacy_changelog.csv diff --git a/pokedex/data/csv/berry_firmness_names.csv b/pokedex/data/csv/berry_firmness_names.csv index 9af051e..c3b9608 100644 --- a/pokedex/data/csv/berry_firmness_names.csv +++ b/pokedex/data/csv/berry_firmness_names.csv @@ -9,3 +9,8 @@ berry_firmness_id,local_language_id,name 4,9,Very Hard 5,5,Super ferme 5,9,Super Hard +1,6,Sehr Weich +2,6,Weich +3,6,Hart +4,6,Sehr Hart +5,6,Steinhart diff --git a/pokedex/data/csv/characteristic_text.csv b/pokedex/data/csv/characteristic_text.csv index 23adda1..589a201 100644 --- a/pokedex/data/csv/characteristic_text.csv +++ b/pokedex/data/csv/characteristic_text.csv @@ -59,3 +59,33 @@ characteristic_id,local_language_id,message 29,9,Somewhat stubborn 30,5,Fuit rapidement 30,9,Quick to flee +1,6,Liebt es zu essen +2,6,Stolz auf seine Stärke +3,6,Hat einen robusten Körper +4,6,Sehr neugierig +5,6,Besitzt einen starken Willen +6,6,Lieb es zu rennen +7,6,Nickt of ein +8,6,Prügelt sich gern +9,6,Kann Treffer gut verkraften +10,6,Hinterhältig +11,6,Etwas Eitel +12,6,Achtet auf Geräusche +13,6,Schläft gern +14,6,Besitzt Temperament +15,6,Äußerst ausdauernd +16,6,Äußerst gerissen +17,6,Sehr aufsässig +18,6,Ungestüm und einfältig +19,6,Macht oft Unordnung +20,6,Liebt Kämpfe +21,6,Hat eine gute Ausdauer +22,6,Ist of in Gedanken +23,6,Hasst Niederlagen +24,6,Ein bisschen albern +25,6,Mag es sich zu entspannen +26,6,Impulsiv +27,6,Ist beharrlich +28,6,Sehr pedantisch +29,6,Dickköpfig +30,6,Flüchtet schnell diff --git a/pokedex/data/csv/contest_type_names.csv b/pokedex/data/csv/contest_type_names.csv index 9bebf39..a9e6f81 100644 --- a/pokedex/data/csv/contest_type_names.csv +++ b/pokedex/data/csv/contest_type_names.csv @@ -4,3 +4,8 @@ contest_type_id,local_language_id,name,flavor,color 3,9,Cute,Sweet,Pink 4,9,Smart,Bitter,Green 5,9,Tough,Sour,Yellow +1,6,Coolness,Scharf,Rot +2,6,Schönheit,Trocken,Blau +3,6,Putzigkeit,Süß,Rosa +4,6,Klugheit,Bitter,Grün +5,6,Stärke,Sauer,Gelb diff --git a/pokedex/data/csv/item_category_prose.csv b/pokedex/data/csv/item_category_prose.csv index 6ac4725..666ce2b 100644 --- a/pokedex/data/csv/item_category_prose.csv +++ b/pokedex/data/csv/item_category_prose.csv @@ -43,3 +43,47 @@ item_category_id,local_language_id,name 43,9,Miracle Shooter 44,9,Mega Stones 10001,9,X/Y unknown +1,6,Statuswert Boost +2,6,senkt EV +3,6,Medizin +4,6,Sonstige +5,6,Im Notfall +6,6,Heilung +7,6,Typ Schwächung +8,6,Backzutaten +9,6,Sammelbares +10,6,Entwicklung +11,6,Höhlensuche +12,6,Getragene Items +13,6,Wahl +14,6,EV Training +15,6,Negative getragene Items +16,6,Training +17,6,Tafeln +18,6,Pokémon-Spezies spezifisch +19,6,Typ Vorteil +20,6,Event Items +21,6,Spiel +22,6,Story Item +23,6,Unbenutzt +24,6,Sammelbares +25,6,Briefe +26,6,Vitamine +27,6,Heilung +28,6,AP Heilung +29,6,Wiederbelebung +30,6,Statusheilung +32,6,Mulch +33,6,Spezialbälle +34,6,Standard Bälle +35,6,Pokedex-Komplettierung +36,7,Schal +37,6,Maschinen +38,6,Flöten +39,6,Aprikoko Bälle +40,6,Aprikoko Box +41,6,Datenkarten +42,6,Juwelen +43,6,Wunderwerfer +44,6,Mega Steine +10001,6,X/Y unbekannt diff --git a/pokedex/data/csv/item_flag_prose.csv b/pokedex/data/csv/item_flag_prose.csv index 037b563..1ead7cd 100644 --- a/pokedex/data/csv/item_flag_prose.csv +++ b/pokedex/data/csv/item_flag_prose.csv @@ -7,3 +7,11 @@ item_flag_id,local_language_id,name,description 6,9,Holdable_passive,Works passively when held 7,9,Holdable_active,Usable by a Pokémon when held 8,9,Underground,Appears in Sinnoh Underground +1,6,Zählbar,Anzahl wird im Beutel angezeigt +2,6,Verbrauchsgegenstand,Wird bei Benutzung verbraucht +3,6,Benutzbar_Spielwelt,Benutzbar außerhalb von Kämpfen +4,6,Benutzbar_im_Kampf,Benutzerbar in Kämpfen +5,6,Tragbar,Kann von einem Pokémon getragen werden +6,6,Tragbar_passiv,Passive Wirkung wenn getragen +7,6,Tragbar_activ,Benutzbar wenn getragen +8,6,Untergrund,Taucht im Sinnoh Untergrund auf diff --git a/pokedex/data/csv/item_fling_effect_prose.csv b/pokedex/data/csv/item_fling_effect_prose.csv index 038d393..9d2f103 100644 --- a/pokedex/data/csv/item_fling_effect_prose.csv +++ b/pokedex/data/csv/item_fling_effect_prose.csv @@ -6,3 +6,10 @@ item_fling_effect_id,local_language_id,effect 5,9,Paralyzes the target. 6,9,Poisons the target. 7,9,Target will flinch if it has not yet gone this turn. +1,6,Ziel wird schwer Vergiftet +2,6,Verbrennt das Ziel +3,6,Nutzt den Effekt der Beere die das Ziel trägt +4,6,Nutzt den Effekt der Kräuter die das Ziel trägt +5,6,Paralysiert das Ziel +6,6,Vergiftet das Ziel +7,6,Lässt das Ziel zurückschrecken diff --git a/pokedex/data/csv/item_pocket_names.csv b/pokedex/data/csv/item_pocket_names.csv index ca85fd6..de1a29d 100644 --- a/pokedex/data/csv/item_pocket_names.csv +++ b/pokedex/data/csv/item_pocket_names.csv @@ -7,3 +7,11 @@ item_pocket_id,local_language_id,name 6,9,Mail 7,9,Battle Items 8,9,Key Items +1,6,Items +2,6,Medizin +3,6,Bälle +4,6,TMs und VMs +5,6,Beeren +6,6,Briefe +7,6,Kampfitems +8,6,Basisitems diff --git a/pokedex/data/csv/move_meta_ailment_names.csv b/pokedex/data/csv/move_meta_ailment_names.csv index 5b4e8e6..8fa05b5 100644 --- a/pokedex/data/csv/move_meta_ailment_names.csv +++ b/pokedex/data/csv/move_meta_ailment_names.csv @@ -39,3 +39,23 @@ move_meta_ailment_id,local_language_id,name 20,9,Perish Song 21,5,Racines 21,9,Ingrain +-1,6,???? +0,6,Nichts +1,6,Paralyse +2,6,Schlaf +3,6,Eingefroren +4,6,Verbrennung +5,6,Vergiftet +6,6,Verwirrung +7,6,Anziehung +8,6,Gefangen +9,6,Albtraum +12,6,Folter +13,6,Blockiert +14,6,Gähner +15,6,Heilblockade +17,6,Keine Typ Immunität +18,6,Bepflanzt +19,6,Itemsperre +20,6,Abgangsbund +21,6,Verwurzelt diff --git a/pokedex/data/csv/move_meta_category_prose.csv b/pokedex/data/csv/move_meta_category_prose.csv index 8ea22f1..15a76f7 100644 --- a/pokedex/data/csv/move_meta_category_prose.csv +++ b/pokedex/data/csv/move_meta_category_prose.csv @@ -13,3 +13,17 @@ move_meta_category_id,local_language_id,description 11,9,Effect on one side of the field 12,9,Forces target to switch out 13,9,Unique effect +0,6,Verursacht Schaden +1,6,Kein Schaden; Verursacht Statusänderungen +2,6,Kein Schaden; Senkt Statuswerte des Ziels oder erhöt Statuswerte des Anwenders +3,6,Kein Schaden; Heilt den Anwender +4,6,Verursacht Schaden; Verursacht Statusänderungen +5,6,Kein Schaden; Verursacht Statusänderungen; Erhöht die Statuswerte des Ziels +6,6,Verursacht Schaden; Senkt die Statuswerte des Ziels +7,6,Verursacht Schaden; Erhöht die Statuswerte des Anwenders +8,6,Verursacht Schaden; Absorbiert verursachten Schaden um den Anwender zu heilen +9,6,K.O.-Treffer +10,6,Betrifft das ganze Spielfeld +11,6,Betrifft eine Seite des Spielfelds +12,6,Zwingt das Ziel zum Auswechseln +13,6,Einzigartiger Effekt diff --git a/pokedex/data/csv/pal_park_area_names.csv b/pokedex/data/csv/pal_park_area_names.csv index 394d249..ca01f09 100644 --- a/pokedex/data/csv/pal_park_area_names.csv +++ b/pokedex/data/csv/pal_park_area_names.csv @@ -9,3 +9,8 @@ pal_park_area_id,local_language_id,name 4,9,Pond 5,5,Mer 5,9,Sea +1,6,Wald +2,6,Feld +3,6,Berg +4,6,Teich +5,6,Meer diff --git a/pokedex/data/csv/pokeathlon_stat_names.csv b/pokedex/data/csv/pokeathlon_stat_names.csv index 67fa37d..0d69fc4 100644 --- a/pokedex/data/csv/pokeathlon_stat_names.csv +++ b/pokedex/data/csv/pokeathlon_stat_names.csv @@ -9,3 +9,8 @@ pokeathlon_stat_id,local_language_id,name 4,9,Stamina 5,5,Saut 5,9,Jump +1,6,Tempo +2,6,Kraft +3,6,Technik +4,6,Ausdauer +5,6,Sprung diff --git a/pokedex/data/csv/pokemon_habitat_names.csv b/pokedex/data/csv/pokemon_habitat_names.csv index 8cd3b48..c9cdd05 100644 --- a/pokedex/data/csv/pokemon_habitat_names.csv +++ b/pokedex/data/csv/pokemon_habitat_names.csv @@ -17,3 +17,12 @@ pokemon_habitat_id,local_language_id,name 8,9,urban 9,5,marécages 9,9,water's edge +1,6,Höhle +2,6,Wald +3,6,Gras +4,6,Berg +5,6,Seltene Pokémon +6,6,Wildnis +7,6,Wasser +8,6,Stadt +9,6,Küste und Ufer diff --git a/pokedex/data/csv/pokemon_stats_changelog.csv b/pokedex/data/csv/pokemon_stats_changelog.csv new file mode 100644 index 0000000..234ed44 --- /dev/null +++ b/pokedex/data/csv/pokemon_stats_changelog.csv @@ -0,0 +1,492 @@ +changed_in_generation_id,pokemon_id,stat_id,base_stat +2,1,9,65 +2,1,4,0 +2,1,5,0 +2,2,9,80 +2,2,4,0 +2,2,5,0 +2,3,9,100 +2,3,4,0 +2,3,5,0 +2,4,9,50 +2,4,4,0 +2,4,5,0 +2,5,9,65 +2,5,4,0 +2,5,5,0 +2,6,9,85 +2,6,4,0 +2,6,5,0 +2,7,9,50 +2,7,4,0 +2,7,5,0 +2,8,9,65 +2,8,4,0 +2,8,5,0 +2,9,9,85 +2,9,4,0 +2,9,5,0 +2,10,9,20 +2,10,4,0 +2,10,5,0 +2,11,9,25 +2,11,4,0 +2,11,5,0 +2,12,9,80 +2,12,4,0 +2,12,5,0 +2,13,9,20 +2,13,4,0 +2,13,5,0 +2,14,9,25 +2,14,4,0 +2,14,5,0 +2,15,2,80 +2,15,9,45 +2,15,4,0 +2,15,5,0 +2,16,9,35 +2,16,4,0 +2,16,5,0 +2,17,9,50 +2,17,4,0 +2,17,5,0 +2,18,6,91 +2,18,9,70 +2,18,4,0 +2,18,5,0 +2,19,9,25 +2,19,4,0 +2,19,5,0 +2,20,9,50 +2,20,4,0 +2,20,5,0 +2,21,9,31 +2,21,4,0 +2,21,5,0 +2,22,9,61 +2,22,4,0 +2,22,5,0 +2,23,9,40 +2,23,4,0 +2,23,5,0 +2,24,9,65 +2,24,4,0 +2,24,5,0 +2,25,3,30 +2,25,9,50 +2,25,4,0 +2,25,5,0 +2,26,6,100 +2,26,9,90 +2,26,4,0 +2,26,5,0 +2,27,9,30 +2,27,4,0 +2,27,5,0 +2,28,9,55 +2,28,4,0 +2,28,5,0 +2,29,9,40 +2,29,4,0 +2,29,5,0 +2,30,9,55 +2,30,4,0 +2,30,5,0 +2,31,2,82 +2,31,9,75 +2,31,4,0 +2,31,5,0 +2,32,9,40 +2,32,4,0 +2,32,5,0 +2,33,9,55 +2,33,4,0 +2,33,5,0 +2,34,2,92 +2,34,9,75 +2,34,4,0 +2,34,5,0 +2,35,9,60 +2,35,4,0 +2,35,5,0 +2,36,9,85 +2,36,4,0 +2,36,5,0 +2,37,9,65 +2,37,4,0 +2,37,5,0 +2,38,9,100 +2,38,4,0 +2,38,5,0 +2,39,9,25 +2,39,4,0 +2,39,5,0 +2,40,9,50 +2,40,4,0 +2,40,5,0 +2,41,9,40 +2,41,4,0 +2,41,5,0 +2,42,9,75 +2,42,4,0 +2,42,5,0 +2,43,9,75 +2,43,4,0 +2,43,5,0 +2,44,9,85 +2,44,4,0 +2,44,5,0 +2,45,9,100 +2,45,4,0 +2,45,5,0 +2,46,9,55 +2,46,4,0 +2,46,5,0 +2,47,9,80 +2,47,4,0 +2,47,5,0 +2,48,9,40 +2,48,4,0 +2,48,5,0 +2,49,9,90 +2,49,4,0 +2,49,5,0 +2,50,9,45 +2,50,4,0 +2,50,5,0 +2,51,9,70 +2,51,4,0 +2,51,5,0 +2,52,9,40 +2,52,4,0 +2,52,5,0 +2,53,9,65 +2,53,4,0 +2,53,5,0 +2,54,9,50 +2,54,4,0 +2,54,5,0 +2,55,9,80 +2,55,4,0 +2,55,5,0 +2,56,9,35 +2,56,4,0 +2,56,5,0 +2,57,9,60 +2,57,4,0 +2,57,5,0 +2,58,9,50 +2,58,4,0 +2,58,5,0 +2,59,9,80 +2,59,4,0 +2,59,5,0 +2,60,9,40 +2,60,4,0 +2,60,5,0 +2,61,9,50 +2,61,4,0 +2,61,5,0 +2,62,2,85 +2,62,9,70 +2,62,4,0 +2,62,5,0 +2,63,9,105 +2,63,4,0 +2,63,5,0 +2,64,9,120 +2,64,4,0 +2,64,5,0 +2,65,9,135 +2,65,4,0 +2,65,5,0 +2,66,9,35 +2,66,4,0 +2,66,5,0 +2,67,9,50 +2,67,4,0 +2,67,5,0 +2,68,9,65 +2,68,4,0 +2,68,5,0 +2,69,9,70 +2,69,4,0 +2,69,5,0 +2,70,9,85 +2,70,4,0 +2,70,5,0 +2,71,9,100 +2,71,4,0 +2,71,5,0 +2,72,9,100 +2,72,4,0 +2,72,5,0 +2,73,9,120 +2,73,4,0 +2,73,5,0 +2,74,9,30 +2,74,4,0 +2,74,5,0 +2,75,9,45 +2,75,4,0 +2,75,5,0 +2,76,2,110 +2,76,9,55 +2,76,4,0 +2,76,5,0 +2,77,9,65 +2,77,4,0 +2,77,5,0 +2,78,9,80 +2,78,4,0 +2,78,5,0 +2,79,9,40 +2,79,4,0 +2,79,5,0 +2,80,9,80 +2,80,4,0 +2,80,5,0 +2,81,9,95 +2,81,4,0 +2,81,5,0 +2,82,9,120 +2,82,4,0 +2,82,5,0 +2,83,9,58 +2,83,4,0 +2,83,5,0 +2,84,9,35 +2,84,4,0 +2,84,5,0 +2,85,9,60 +2,85,4,0 +2,85,5,0 +2,86,9,70 +2,86,4,0 +2,86,5,0 +2,87,9,95 +2,87,4,0 +2,87,5,0 +2,88,9,40 +2,88,4,0 +2,88,5,0 +2,89,9,65 +2,89,4,0 +2,89,5,0 +2,90,9,45 +2,90,4,0 +2,90,5,0 +2,91,9,85 +2,91,4,0 +2,91,5,0 +2,92,9,100 +2,92,4,0 +2,92,5,0 +2,93,9,115 +2,93,4,0 +2,93,5,0 +2,94,9,130 +2,94,4,0 +2,94,5,0 +2,95,9,30 +2,95,4,0 +2,95,5,0 +2,96,9,90 +2,96,4,0 +2,96,5,0 +2,97,9,115 +2,97,4,0 +2,97,5,0 +2,98,9,25 +2,98,4,0 +2,98,5,0 +2,99,9,50 +2,99,4,0 +2,99,5,0 +2,100,9,55 +2,100,4,0 +2,100,5,0 +2,101,9,80 +2,101,4,0 +2,101,5,0 +2,102,9,60 +2,102,4,0 +2,102,5,0 +2,103,9,125 +2,103,4,0 +2,103,5,0 +2,104,9,40 +2,104,4,0 +2,104,5,0 +2,105,9,50 +2,105,4,0 +2,105,5,0 +2,106,9,35 +2,106,4,0 +2,106,5,0 +2,107,9,35 +2,107,4,0 +2,107,5,0 +2,108,9,60 +2,108,4,0 +2,108,5,0 +2,109,9,60 +2,109,4,0 +2,109,5,0 +2,110,9,85 +2,110,4,0 +2,110,5,0 +2,111,9,30 +2,111,4,0 +2,111,5,0 +2,112,9,45 +2,112,4,0 +2,112,5,0 +2,113,9,105 +2,113,4,0 +2,113,5,0 +2,114,9,100 +2,114,4,0 +2,114,5,0 +2,115,9,40 +2,115,4,0 +2,115,5,0 +2,116,9,70 +2,116,4,0 +2,116,5,0 +2,117,9,95 +2,117,4,0 +2,117,5,0 +2,118,9,50 +2,118,4,0 +2,118,5,0 +2,119,9,80 +2,119,4,0 +2,119,5,0 +2,120,9,70 +2,120,4,0 +2,120,5,0 +2,121,9,100 +2,121,4,0 +2,121,5,0 +2,122,9,100 +2,122,4,0 +2,122,5,0 +2,123,9,55 +2,123,4,0 +2,123,5,0 +2,124,9,95 +2,124,4,0 +2,124,5,0 +2,125,9,85 +2,125,4,0 +2,125,5,0 +2,126,9,85 +2,126,4,0 +2,126,5,0 +2,127,9,55 +2,127,4,0 +2,127,5,0 +2,128,9,70 +2,128,4,0 +2,128,5,0 +2,129,9,20 +2,129,4,0 +2,129,5,0 +2,130,9,100 +2,130,4,0 +2,130,5,0 +2,131,9,95 +2,131,4,0 +2,131,5,0 +2,132,9,48 +2,132,4,0 +2,132,5,0 +2,133,9,65 +2,133,4,0 +2,133,5,0 +2,134,9,110 +2,134,4,0 +2,134,5,0 +2,135,9,110 +2,135,4,0 +2,135,5,0 +2,136,9,110 +2,136,4,0 +2,136,5,0 +2,137,9,75 +2,137,4,0 +2,137,5,0 +2,138,9,90 +2,138,4,0 +2,138,5,0 +2,139,9,115 +2,139,4,0 +2,139,5,0 +2,140,9,45 +2,140,4,0 +2,140,5,0 +2,141,9,70 +2,141,4,0 +2,141,5,0 +2,142,9,60 +2,142,4,0 +2,142,5,0 +2,143,9,65 +2,143,4,0 +2,143,5,0 +2,144,9,125 +2,144,4,0 +2,144,5,0 +2,145,9,125 +2,145,4,0 +2,145,5,0 +2,146,9,125 +2,146,4,0 +2,146,5,0 +2,147,9,50 +2,147,4,0 +2,147,5,0 +2,148,9,70 +2,148,4,0 +2,148,5,0 +2,149,9,100 +2,149,4,0 +2,149,5,0 +2,150,9,154 +2,150,4,0 +2,150,5,0 +2,151,9,100 +2,151,4,0 +2,151,5,0 +6,12,4,80 +6,15,2,80 +6,18,6,91 +6,25,3,30 +6,25,5,40 +6,26,6,100 +6,31,2,82 +6,34,2,92 +6,36,4,85 +6,40,4,75 +6,45,4,100 +6,62,2,85 +6,65,5,85 +6,71,5,60 +6,76,2,110 +6,181,3,75 +6,182,3,85 +6,184,4,50 +6,189,5,85 +6,267,4,90 +6,295,5,63 +6,398,5,50 +6,407,3,55 +6,508,2,100 +6,521,2,105 +6,526,5,70 +6,537,2,85 +6,542,5,70 +6,545,2,90 +6,553,3,70 diff --git a/pokedex/data/csv/stat_names.csv b/pokedex/data/csv/stat_names.csv index 1e98a1a..1066d89 100644 --- a/pokedex/data/csv/stat_names.csv +++ b/pokedex/data/csv/stat_names.csv @@ -47,3 +47,5 @@ stat_id,local_language_id,name 8,7,Evasión 8,8,elusione 8,9,evasion +9,9,Special +9,6,Spezial diff --git a/pokedex/data/csv/stats.csv b/pokedex/data/csv/stats.csv index 56a771d..4fa66a2 100644 --- a/pokedex/data/csv/stats.csv +++ b/pokedex/data/csv/stats.csv @@ -7,3 +7,4 @@ id,damage_class_id,identifier,is_battle_only,game_index 6,,speed,0,4 7,,accuracy,1, 8,,evasion,1, +9,3,special,1,5 diff --git a/pokedex/data/csv/type_efficacy_changelog.csv b/pokedex/data/csv/type_efficacy_changelog.csv new file mode 100644 index 0000000..5a05d01 --- /dev/null +++ b/pokedex/data/csv/type_efficacy_changelog.csv @@ -0,0 +1,7 @@ +changed_in_version_group_id,damage_type_id,target_type_id,damage_factor +3,4,7,200 +3,8,14,0 +3,15,10,100 +3,7,4,200 +15,8,9,50 +15,17,9,50 diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 5382196..c7923f2 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -2069,6 +2069,18 @@ class PokemonStat(TableBase): effort = Column(Integer, nullable=False, doc=u"The effort increase in this stat gained when this Pokémon is defeated") +class PokemonStatChangelog(TableBase): + u"""Changes of Pokémon stat values in generations.""" + __tablename__ = 'pokemon_stats_changelog' + changed_in_generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, nullable=False, autoincrement=False, + doc=u"ID of the generation in which the stat changed") + pokemon_id = Column(Integer, ForeignKey('pokemon.id'),primary_key=True, nullable=False, autoincrement=False, + doc=u"The ID of the Pokémon whose stat changed") + stat_id = Column(Integer, ForeignKey('stats.id'),primary_key=True, nullable=False, autoincrement=False, + doc=u"The ID of the Stat which changed") + base_stat = Column(Integer, nullable=False, + doc=u"The changed stat") + class PokemonType(TableBase): u"""Maps a type to a Pokémon. Each Pokémon has 1 or 2 types.""" __tablename__ = 'pokemon_types' @@ -2175,6 +2187,19 @@ class TypeEfficacy(TableBase): damage_factor = Column(Integer, nullable=False, doc=u"The multiplier, as a percentage of damage inflicted.") +class TypeEfficacyChangelog(TableBase): + """History of changes to type advantages across main game versions.""" + __tablename__ = 'type_efficacy_changelog' + __singlename__ = 'type_efficacy_changelog' + changed_in_version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, + doc=u"ID of the version group in which the type advantage changed") + damage_type_id = Column(Integer, ForeignKey('types.id'), primary_key=True, nullable=False, + doc=u"ID of the damaging move's type") + target_type_id = Column(Integer, ForeignKey('types.id'), primary_key=True, nullable=False, + doc=u"ID of the defending Pokémon's type") + damage_factor = Column(SmallInteger, nullable=False, + doc=u"The multiplier, as a percentage of damage inflicted.") + class TypeGameIndex(TableBase): u"""The internal ID number a game uses for a type.""" __tablename__ = 'type_game_indices' @@ -2875,6 +2900,10 @@ Type.target_efficacies = relationship(TypeEfficacy, backref=backref('target_type', innerjoin=True, lazy='joined'), doc=u"Efficacies with this type as the defending type.") +TypeEfficacyChangelog.changed_in = relationship(VersionGroup, + innerjoin=True, lazy='joined', + backref='type_efficacy_changelog') + Type.generation = relationship(Generation, innerjoin=True, backref='types')