zzz-pokedex.git
14 years agoSupport natures in lookup.
Eevee [Mon, 19 Apr 2010 05:43:33 +0000 (22:43 -0700)] 
Support natures in lookup.

14 years agoFixed the hell out of the capture rate formula. #150
Eevee [Sat, 17 Apr 2010 09:12:27 +0000 (02:12 -0700)] 
Fixed the hell out of the capture rate formula.  #150

- Wobbles are based on WHICH number is greater than some pivot, not how
  many.  This was making everything totally wrong, especially 0 wobbles.

- HG/SS balls all modify capture rate, rather than ball bonus.

- Everything really is integer math; even the sqrts.  Bonuses are
  relative to 10, not 1.  HP is now treated as integer math, too.

- Implemented a minor game bug with very hard to catch Pokémon.

14 years agoAdded pokedex.savefile, which can encrypt/decrypt Pokémon save structs.
Eevee [Sat, 17 Apr 2010 05:45:44 +0000 (22:45 -0700)] 
Added pokedex.savefile, which can encrypt/decrypt Pokémon save structs.

14 years agoMade Encore effect a bit more accurate.
Eevee [Sat, 17 Apr 2010 00:49:22 +0000 (17:49 -0700)] 
Made Encore effect a bit more accurate.

14 years agoSunflora can be tutored Earth Power in HG/SS. #149
Eevee [Fri, 16 Apr 2010 04:22:06 +0000 (21:22 -0700)] 
Sunflora can be tutored Earth Power in HG/SS.  #149

14 years agoOnce and for all, fixed Pt tutor moves. #126
Eevee [Fri, 16 Apr 2010 04:16:05 +0000 (21:16 -0700)] 
Once and for all, fixed Pt tutor moves.  #126

14 years agoroomaji.py now handles "wu xe" and "shi xi" correctly. #132
Eevee [Fri, 16 Apr 2010 03:05:31 +0000 (20:05 -0700)] 
roomaji.py now handles "wu xe" and "shi xi" correctly.  #132

14 years agoAdded Pokemon.stat() accessor.
Eevee [Fri, 16 Apr 2010 03:05:03 +0000 (20:05 -0700)] 
Added Pokemon.stat() accessor.

14 years agoAdded canonical_pokedex, Pokedex.region, and some Pokédex descriptions.
Eevee [Tue, 30 Mar 2010 03:22:57 +0000 (20:22 -0700)] 
Added canonical_pokedex, Pokedex.region, and some Pokédex descriptions.

14 years agoFix HGSS fishing encounter slot rarities.
a_magical_me [Tue, 13 Apr 2010 06:11:48 +0000 (23:11 -0700)] 
Fix HGSS fishing encounter slot rarities.

<http://www.smogon.com/forums/showpost.php?p=2564048&postcount=215>
mingot has found the correct slot rarities for HGSS fishing encounters.
They are 40/30/15/10/5 for all rods. Surfing is the same as in DPPt.

14 years agoFix RBY grass/water encounter slot rarities.
a_magical_me [Thu, 18 Mar 2010 04:31:07 +0000 (21:31 -0700)] 
Fix RBY grass/water encounter slot rarities.

<http://tasvideos.org/PokemonTricks.html>
This page explains how the RNG in RBY works, and gives exact rarities.
They are out of 256 rather than 100, so some rounding is necessary to
fit them into the database.

====  =======  ======  ==========  =======
Slot   Range   Chance  Percentage  Rounded
====  =======  ======  ==========  =======
0       0-50   51/256  19.921875%    20%
1      51-101  51/256  19.921875%    20%
2     102-140  39/256  15.234375%    15%
3     141-165  25/256   9.765625%    10%
4     166-190  25/256   9.765625%    10%
5     191-215  25/256   9.765625%    10%
6     216-228  13/256   5.078125%     5%
7     229-241  13/256   5.078125%     5%
8     242-252  11/256   4.296875%     4%
9     253-255   3/256   1.171875%     1%
====  =======  ======  ==========  =======

14 years agoAdd slot index to encounter_slots
a_magical_me [Tue, 16 Mar 2010 09:45:25 +0000 (02:45 -0700)] 
Add slot index to encounter_slots

14 years agoFixed some misspelled German Pokémon names. #140
Zhorken [Tue, 13 Apr 2010 03:34:12 +0000 (23:34 -0400)] 
Fixed some misspelled German Pokémon names. #140

14 years agoFixed lookup tests to, um, run.
Eevee [Mon, 29 Mar 2010 05:14:27 +0000 (22:14 -0700)] 
Fixed lookup tests to, um, run.

14 years agoRemove absolute HP from the capture chance formula.
Eevee [Sun, 28 Mar 2010 02:47:36 +0000 (19:47 -0700)] 
Remove absolute HP from the capture chance formula.

14 years agoRoar and Whirlwind cancel Wish.
Eevee [Sat, 27 Mar 2010 23:12:51 +0000 (16:12 -0700)] 
Roar and Whirlwind cancel Wish.

14 years agoNope, shake formula dun use integers.
Eevee [Sat, 27 Mar 2010 05:18:19 +0000 (22:18 -0700)] 
Nope, shake formula dun use integers.

14 years agoWhy am I importing sqlalchemy.databases.mysql...?
Eevee [Thu, 25 Mar 2010 15:39:48 +0000 (08:39 -0700)] 
Why am I importing sqlalchemy.databases.mysql...?

14 years agoAdd locations to lookup. Wow, easy.
Eevee [Wed, 24 Mar 2010 05:56:45 +0000 (22:56 -0700)] 
Add locations to lookup.  Wow, easy.

14 years agoRemove special lookup logic for forms.
Eevee [Wed, 24 Mar 2010 02:43:42 +0000 (19:43 -0700)] 
Remove special lookup logic for forms.

14 years agoRemoved forme_name from lookup; added indexed_name to results.
Eevee [Wed, 24 Mar 2010 01:09:03 +0000 (18:09 -0700)] 
Removed forme_name from lookup; added indexed_name to results.

14 years agoLookup index now contains default form names.
Eevee [Tue, 23 Mar 2010 05:49:21 +0000 (22:49 -0700)] 
Lookup index now contains default form names.

14 years agoAdd 487-altered.png. Fixed form name.
Eevee [Tue, 23 Mar 2010 05:37:23 +0000 (22:37 -0700)] 
Add 487-altered.png.  Fixed form name.

14 years agoAdded natures table.
Eevee [Tue, 23 Mar 2010 05:29:28 +0000 (22:29 -0700)] 
Added natures table.

14 years agoHo-oh => Ho-Oh
Eevee [Mon, 22 Mar 2010 23:14:39 +0000 (16:14 -0700)] 
Ho-oh => Ho-Oh

14 years agoTweaked a couple of Pokédex descriptions.
Zhorken [Wed, 24 Mar 2010 04:03:56 +0000 (00:03 -0400)] 
Tweaked a couple of Pokédex descriptions.

14 years agoName the G/S/C Johto dex that instead of "New".
Zhorken [Wed, 24 Mar 2010 04:02:32 +0000 (00:02 -0400)] 
Name the G/S/C Johto dex that instead of "New".

14 years agoTotally overhauled lookup to use a class.
Eevee [Mon, 22 Mar 2010 06:27:47 +0000 (23:27 -0700)] 
Totally overhauled lookup to use a class.

Now state is held within an object, rather than passed back to the
caller who must then pass it in again.  That was retarded and I don't
know why I ever did it.

Code is much cleaner now.

With apologies to anyone running annotate.

14 years agoMake lookup ignore accent marks.
Eevee [Mon, 22 Mar 2010 05:10:43 +0000 (22:10 -0700)] 
Make lookup ignore accent marks.

14 years agoAdded capture chance formula.
Eevee [Sun, 21 Mar 2010 10:16:24 +0000 (03:16 -0700)] 
Added capture chance formula.

14 years agoAdded new HG/SS item sprites.
Eevee [Sun, 21 Mar 2010 08:06:24 +0000 (01:06 -0700)] 
Added new HG/SS item sprites.

14 years agoAllow passing engine arguments to connect().
Eevee [Wed, 17 Mar 2010 07:44:19 +0000 (00:44 -0700)] 
Allow passing engine arguments to connect().

14 years agoAdded language codes alongside the country codes.
Zhorken [Tue, 16 Mar 2010 03:24:29 +0000 (23:24 -0400)] 
Added language codes alongside the country codes.

Language codes are ISO 639-1; country codes are ISO 3166-1 alpha-2.

The country codes are important to keep for flags and stuff, I guess,
but reporting the language code as a short form for the language is
more correct.

Gonna see if I can do that, I guess.  I added the language codes mostly
just because I was adding languages.

14 years agoAdded German, Spanish, and Italian move names.
Zhorken [Tue, 16 Mar 2010 03:23:02 +0000 (23:23 -0400)] 
Added German, Spanish, and Italian move names.

14 years agoSky Shaymin holds a Lum Berry in Platinum.
Zhorken [Mon, 15 Mar 2010 19:21:00 +0000 (15:21 -0400)] 
Sky Shaymin holds a Lum Berry in Platinum.

14 years agoReplaced newlines and fancy quotation marks in DPPt flavor text.
Zhorken [Mon, 15 Mar 2010 07:36:21 +0000 (03:36 -0400)] 
Replaced newlines and fancy quotation marks in DPPt flavor text.

14 years agoAdded Land Shaymin (492-land.png) sprites.
Eevee [Mon, 15 Mar 2010 06:56:01 +0000 (23:56 -0700)] 
Added Land Shaymin (492-land.png) sprites.

14 years agoFix Rough Skin, Roost, and formatting of Detect.
Eevee [Mon, 15 Mar 2010 06:46:44 +0000 (23:46 -0700)] 
Fix Rough Skin, Roost, and formatting of Detect.

14 years agoGRAVITY. DISABLES. SPLASH.
Eevee [Mon, 15 Mar 2010 06:36:05 +0000 (23:36 -0700)] 
GRAVITY.  DISABLES.  SPLASH.

14 years agoLookup no longer crashes if all type prefixes are bogus.
Eevee [Sun, 14 Mar 2010 23:45:10 +0000 (16:45 -0700)] 
Lookup no longer crashes if all type prefixes are bogus.

14 years agoFixed malformed reST in Recycle's move effect.
Eevee [Sun, 14 Mar 2010 02:56:34 +0000 (18:56 -0800)] 
Fixed malformed reST in Recycle's move effect.

14 years agoImplemented rst as_text, for showing short move effects outside the Web.
Eevee [Sun, 14 Mar 2010 02:49:09 +0000 (18:49 -0800)] 
Implemented rst as_text, for showing short move effects outside the Web.

14 years agoMake rst as_html handle errors a little more nicely.
Eevee [Sun, 14 Mar 2010 02:11:40 +0000 (18:11 -0800)] 
Make rst as_html handle errors a little more nicely.

14 years agoAdded wild held items for HeartGold and SoulSilver.
Zhorken [Mon, 15 Mar 2010 05:54:31 +0000 (01:54 -0400)] 
Added wild held items for HeartGold and SoulSilver.

The only differences from Platinum are that Shuckle holds a Berry
Juice, Sky Shaymin holds a Lum Berry, and the *rizers are only held by
the final forms, only 5% of the time.

14 years agoHG/SS Pokémon flavor text.
Eevee [Fri, 12 Mar 2010 16:46:26 +0000 (08:46 -0800)] 
HG/SS Pokémon flavor text.

14 years agoAdded Rotom -normal sprites.
Eevee [Thu, 11 Mar 2010 05:07:14 +0000 (21:07 -0800)] 
Added Rotom -normal sprites.

14 years agoFixed Hustle description.
Eevee [Wed, 10 Mar 2010 08:24:20 +0000 (00:24 -0800)] 
Fixed Hustle description.

14 years agoFixed the hell out of all remaining form problems.
Eevee [Wed, 10 Mar 2010 08:19:05 +0000 (00:19 -0800)] 
Fixed the hell out of all remaining form problems.

Every flavor page should work with no missing sprites.  Save perhaps for
Unown, because I honestly don't have them.

Every sprite exists as ###-form.png.  There is also still a ###.png,
containing a reasonable default form, so people who don't give a crap
about this mess can just use the numbered sprites.  Beta forms should
now all be ###-beta.png.

Form groups now have a notion of "in-battle", which is used to hide
overworld sprites when appropriate.

Form sprites have a first-class sense of being a default or not, too.

Deoxys is...  well, let's not talk about Deoxys.  Deoxys is fixed.

14 years agoFixed Cherrim/Castform/Pichu form names; renamed a mass of sprites to match.
Eevee [Tue, 9 Mar 2010 06:33:58 +0000 (22:33 -0800)] 
Fixed Cherrim/Castform/Pichu form names; renamed a mass of sprites to match.

14 years agoFixed or clarified some eight move/ability effects.
Eevee [Tue, 9 Mar 2010 05:42:56 +0000 (21:42 -0800)] 
Fixed or clarified some eight move/ability effects.

14 years agoFilled in some missing Pokémon colors.
Eevee [Thu, 4 Mar 2010 01:05:45 +0000 (17:05 -0800)] 
Filled in some missing Pokémon colors.

14 years agoFactored habitats into a separate table.
Eevee [Wed, 3 Mar 2010 08:53:00 +0000 (00:53 -0800)] 
Factored habitats into a separate table.

14 years agoFactored Pokémon colors out into their own table.
Eevee [Wed, 3 Mar 2010 04:27:40 +0000 (20:27 -0800)] 
Factored Pokémon colors out into their own table.

14 years agoAdded accents to French Pokémon names.
Zhorken [Mon, 22 Feb 2010 05:37:54 +0000 (00:37 -0500)] 
Added accents to French Pokémon names.

Taken from http://www.pokepedia.fr/ (Liste des Pokémon dans l'ordre du
Pokédex National).  They apparently took them from the French Mystery
Dungeon games (Poképédia:Conventions de Style).

This also corrects some typos.

14 years agoCorrected a docstring in rst.py.
Zhorken [Mon, 22 Feb 2010 05:13:28 +0000 (00:13 -0500)] 
Corrected a docstring in rst.py.

14 years agoReplaced ‘’“” with '" in Platinum Pokédex entries.
Zhorken [Mon, 22 Feb 2010 05:09:22 +0000 (00:09 -0500)] 
Replaced ‘’“” with '" in Platinum Pokédex entries.

14 years agoMoved Gen-I internal Pokémon IDs to their own Pokédex.
Zhorken [Wed, 17 Feb 2010 07:19:48 +0000 (02:19 -0500)] 
Moved Gen-I internal Pokémon IDs to their own Pokédex.

14 years agoAdded Pokédexes to replace dex numbers' generations.
Zhorken [Wed, 17 Feb 2010 07:16:59 +0000 (02:16 -0500)] 
Added Pokédexes to replace dex numbers' generations.

This deals with Gen IV having two Sinnoh dexes and a Johto dex.

14 years agoLabel Togepi and Riolu as babies.
Zhorken [Tue, 16 Feb 2010 19:54:54 +0000 (14:54 -0500)] 
Label Togepi and Riolu as babies.

They're bottom-stage, no-eggs Pokémon that evolve into things that can
breed.

14 years agoAdd Gen III wild held items.
a_magical_me [Tue, 9 Feb 2010 02:00:32 +0000 (18:00 -0800)] 
Add Gen III wild held items.

14 years agoFixed Bug Bite's effect.
Eevee [Mon, 8 Feb 2010 02:37:15 +0000 (18:37 -0800)] 
Fixed Bug Bite's effect.

14 years agoUnknown Dungeon => Cerulean Cave
Eevee [Thu, 4 Feb 2010 09:13:10 +0000 (01:13 -0800)] 
Unknown Dungeon => Cerulean Cave

14 years agoFilled in missing Vermilion port encounters.
Eevee [Thu, 4 Feb 2010 09:12:22 +0000 (01:12 -0800)] 
Filled in missing Vermilion port encounters.

14 years agoAdded Yellow fishing encounters.
Eevee [Thu, 4 Feb 2010 09:03:10 +0000 (01:03 -0800)] 
Added Yellow fishing encounters.

14 years agoWhoops; removed some R/B fishing from places with no water.
Eevee [Thu, 4 Feb 2010 04:52:14 +0000 (20:52 -0800)] 
Whoops; removed some R/B fishing from places with no water.

14 years agoAdded Red/Blue fishing encounters.
Eevee [Thu, 4 Feb 2010 04:28:57 +0000 (20:28 -0800)] 
Added Red/Blue fishing encounters.

14 years agoAdded Red/Blue/Yellow grass and surfing encounters.
Eevee [Thu, 4 Feb 2010 03:19:43 +0000 (19:19 -0800)] 
Added Red/Blue/Yellow grass and surfing encounters.

14 years agoFilled in missing Kanto locations/areas.
Eevee [Thu, 4 Feb 2010 01:05:17 +0000 (17:05 -0800)] 
Filled in missing Kanto locations/areas.

14 years ago"PokéRadar" conditions values were missing their accents.
Eevee [Wed, 3 Feb 2010 07:56:35 +0000 (23:56 -0800)] 
"PokéRadar" conditions values were missing their accents.

14 years agoUpdated Good/Super Rod rarities to be.. correct.
Eevee [Tue, 2 Feb 2010 07:50:48 +0000 (23:50 -0800)] 
Updated Good/Super Rod rarities to be..  correct.

14 years agoFixed comments in pokedex.lookup.
Eevee [Tue, 2 Feb 2010 07:50:33 +0000 (23:50 -0800)] 
Fixed comments in pokedex.lookup.

14 years agoAdded terrain icons for Rock Smash and unknown.
Eevee [Sun, 31 Jan 2010 02:12:23 +0000 (18:12 -0800)] 
Added terrain icons for Rock Smash and unknown.

Moved terrain icons into encounters/.

14 years agoRemoved leading zeroes from cries' filenames.
Zhorken [Sun, 31 Jan 2010 19:14:23 +0000 (14:14 -0500)] 
Removed leading zeroes from cries' filenames.

This makes them match the sprites etc. and fixes the cry links for
Bulbasaur through Kingler.

14 years agoMerge branch 'master' of git://veekun.com/pokedex
Zhorken [Sun, 31 Jan 2010 19:10:14 +0000 (14:10 -0500)] 
Merge branch 'master' of git://veekun.com/pokedex

14 years agoRemoved some svn cruft.
Eevee [Thu, 28 Jan 2010 09:21:28 +0000 (01:21 -0800)] 
Removed some svn cruft.

14 years agoMade regions first-class objects.
Eevee [Mon, 25 Jan 2010 04:39:33 +0000 (20:39 -0800)] 
Made regions first-class objects.

14 years agoUpdated some location/area names; collapsed Turnback Cave.
Eevee [Sun, 24 Jan 2010 10:35:34 +0000 (02:35 -0800)] 
Updated some location/area names; collapsed Turnback Cave.

This had been done before, but some of the changes were lost when I
re-ripped Diamond and Pearl.

Also, Turnback Cave has been collapsed into seven sections rather than
four.  The previous change in particular ignored that the encounter
rates for the first three areas were lower than elsewhere.  I'm
conjecturing wildly, but I believe those first three are the actual
pillar rooms, and the following four identical groups are the groups of
rooms between the pillars.

14 years agoRe-re-ripped HG/SS encounters.
Eevee [Thu, 21 Jan 2010 08:45:21 +0000 (00:45 -0800)] 
Re-re-ripped HG/SS encounters.

Turns out "fishing swarm 2" is time of day; it represents some water
Pokémon that only appear at night.

14 years agoAdded some encounter condition icons.
Eevee [Thu, 21 Jan 2010 07:57:39 +0000 (23:57 -0800)] 
Added some encounter condition icons.

14 years agoRedumped encounters for all five gen4 games.
Eevee [Sat, 2 Jan 2010 04:38:04 +0000 (20:38 -0800)] 
Redumped encounters for all five gen4 games.

14 years agoMerge branch 'master' of git://veekun.com/pokedex
Zhorken [Sun, 20 Dec 2009 21:08:47 +0000 (16:08 -0500)] 
Merge branch 'master' of git://veekun.com/pokedex

14 years agoAdded types' generations and pre-gen-IV damage classes.
Zhorken [Sun, 20 Dec 2009 06:41:40 +0000 (01:41 -0500)] 
Added types' generations and pre-gen-IV damage classes.

14 years agoAdded ???'s type efficacies to the database.
Zhorken [Sun, 20 Dec 2009 06:41:10 +0000 (01:41 -0500)] 
Added ???'s type efficacies to the database.

14 years agoFixed "Official Romaaji" -> "Official Roomaji".
Zhorken [Sun, 20 Dec 2009 06:40:03 +0000 (01:40 -0500)] 
Fixed "Official Romaaji" -> "Official Roomaji".

14 years agoAdded types' generations and pre-gen-IV damage classes.
Zhorken [Sun, 20 Dec 2009 06:41:40 +0000 (01:41 -0500)] 
Added types' generations and pre-gen-IV damage classes.

14 years agoAdded ???'s type efficacies to the database.
Zhorken [Sun, 20 Dec 2009 06:41:10 +0000 (01:41 -0500)] 
Added ???'s type efficacies to the database.

14 years agoFixed "Official Romaaji" -> "Official Roomaji".
Zhorken [Sun, 20 Dec 2009 06:40:03 +0000 (01:40 -0500)] 
Fixed "Official Romaaji" -> "Official Roomaji".

14 years agoOptimized the fuck out of `pokedex load`.
Eevee [Thu, 10 Dec 2009 02:15:51 +0000 (18:15 -0800)] 
Optimized the fuck out of `pokedex load`.

Major change was to skip the ORM entirely.  Sped it up 500%.

14 years agoRefactored encounters schema so HG/SS can work.
Eevee [Wed, 9 Dec 2009 22:35:29 +0000 (14:35 -0800)] 
Refactored encounters schema so HG/SS can work.

Conditions are now condition values; condition groups are conditions.
Types are now terrain.  Slots are first-class things.

Encounters' condition values and slots' conditions have been broken off
into their own tables, as HG/SS has several slots affected by multiple
conditions.

14 years agoAdded Emerald animations. #73
Eevee [Wed, 2 Dec 2009 00:45:08 +0000 (16:45 -0800)] 
Added Emerald animations.  #73

14 years agoReplaced cropped Pokémon sprites with HG/SS ones.
Eevee [Sun, 29 Nov 2009 06:09:33 +0000 (22:09 -0800)] 
Replaced cropped Pokémon sprites with HG/SS ones.

14 years agoAdded PokemonMove.machine relation.
Eevee [Sat, 28 Nov 2009 10:14:39 +0000 (02:14 -0800)] 
Added PokemonMove.machine relation.

14 years agoAdded ISO-3166 country codes to languages table and lookup.
Eevee [Tue, 24 Nov 2009 05:50:45 +0000 (21:50 -0800)] 
Added ISO-3166 country codes to languages table and lookup.

14 years agoAdded short_effects for no-effect moves.
Eevee [Tue, 24 Nov 2009 05:50:18 +0000 (21:50 -0800)] 
Added short_effects for no-effect moves.

14 years agoUpdated move and contest type icons to gen 4.
Eevee [Tue, 24 Nov 2009 03:49:53 +0000 (19:49 -0800)] 
Updated move and contest type icons to gen 4.

14 years agoAdded French move names.
Zhorken [Sat, 14 Nov 2009 01:05:28 +0000 (20:05 -0500)] 
Added French move names.

14 years agoRenamed ????? to ???, as the D/P text dump indicates is correct.
Eevee [Thu, 12 Nov 2009 06:11:44 +0000 (22:11 -0800)] 
Renamed ????? to ???, as the D/P text dump indicates is correct.

14 years agoRearranged move effect categories by primary key.
Eevee [Wed, 11 Nov 2009 04:06:30 +0000 (20:06 -0800)] 
Rearranged move effect categories by primary key.

14 years agoAdded HG/SS tutor moves. #109
Eevee [Wed, 11 Nov 2009 04:04:12 +0000 (20:04 -0800)] 
Added HG/SS tutor moves.  #109

14 years agoAdded move categories. #41
Eevee [Mon, 9 Nov 2009 01:00:45 +0000 (17:00 -0800)] 
Added move categories.  #41