Skip to content

Commit

Permalink
Change internal Pokémon IDs to national dex ones.
Browse files Browse the repository at this point in the history
Also expand the pokédex to 254 entries.
  • Loading branch information
Sanqui committed Dec 3, 2014
1 parent 956247f commit 8b44d6a
Show file tree
Hide file tree
Showing 159 changed files with 1,083 additions and 818 deletions.
18 changes: 18 additions & 0 deletions add_sprite_banks_to_base_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from extras.pokemontools.pokemon_constants import pokemon_constants

for pokemon in pokemon_constants.values()[0:151]:
text = ""
f = open('data/baseStats/{}.asm'.format(pokemon.lower().replace('_', '')), 'r+w')
for line in f.readlines():
if line == "db 0 ; padding\n" or line.startswith("db BANK("):
p = pokemon.capitalize()
if p == "Nidoran_f": p = "NidoranF"
if p == "Nidoran_m": p = "NidoranM"
if p == "Farfetch_d": p = "Farfetchd"
if p == "Mr__mime": p = "MrMime"
text += "db BANK({}PicFront)\n".format(p)
else:
text += line
f.seek(0)
f.write(text)
f.close()
2 changes: 1 addition & 1 deletion constants/pokedex_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ DEX_DRAGONITE EQU 149
DEX_MEWTWO EQU 150
DEX_MEW EQU 151

NUM_POKEMON EQU 151
NUM_POKEMON EQU 254
2 changes: 1 addition & 1 deletion data/baseStats/abra.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %10000111
db %00111000
db %01000011
db 0 ; padding
db BANK(AbraPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/aerodactyl.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %01100011
db %00001100
db %00001010
db 0 ; padding
db BANK(AerodactylPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/alakazam.asm
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ db %11111000
db %10000111
db %00111000
db %01000011
db 0 ; padding
db BANK(AlakazamPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/arbok.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %10000010
db %10001000
db %00100010
db 0 ; padding
db BANK(ArbokPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/arcanine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11101000
db %11100011
db %00001000
db %00000010
db 0 ; padding
db BANK(ArcaninePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/articuno.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %01000011
db %00001100
db %00001010
db 0 ; padding
db BANK(ArticunoPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/beedrill.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %11000011
db %00001000
db %00000110
db 0 ; padding
db BANK(BeedrillPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/bellsprout.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %00000011
db %00001000
db %00000110
db 0 ; padding
db BANK(BellsproutPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/blastoise.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %10000011
db %00001000
db %00110010
db 0 ; padding
db BANK(BlastoisePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/bulbasaur.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %00000011
db %00001000
db %00000110
db 0 ; padding
db BANK(BulbasaurPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/butterfree.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ IF DEF(_YELLOW)
ELSE
db %00000010
ENDC
db 0 ; padding
db BANK(ButterfreePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/caterpie.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %00000000
db %00000000
db %00000000
db %00000000
db 0 ; padding
db BANK(CaterpiePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/chansey.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ db %11110001
db %10110111
db %00111001
db %01100011
db 0 ; padding
db BANK(ChanseyPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/charizard.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ IF DEF(_YELLOW)
ELSE
db %00100110
ENDC
db 0 ; padding
db BANK(CharizardPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/charmander.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001000
db %11100011
db %00001000
db %00100110
db 0 ; padding
db BANK(CharmanderPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/charmeleon.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001000
db %11100011
db %00001000
db %00100110
db 0 ; padding
db BANK(CharmeleonPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/clefable.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110001
db %10100111
db %00111000
db %01100011
db 0 ; padding
db BANK(ClefablePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/clefairy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110001
db %10100111
db %00111000
db %01100011
db 0 ; padding
db BANK(ClefairyPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/cloyster.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11100000
db %01001011
db %01001000
db %00010011
db 0 ; padding
db BANK(CloysterPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/cubone.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %10100010
db %00001000
db %00100010
db 0 ; padding
db BANK(CubonePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dewgong.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %10000010
db %00001000
db %00110010
db 0 ; padding
db BANK(DewgongPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/diglett.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ IF DEF(_YELLOW)
ELSE
db %00000010
ENDC
db 0 ; padding
db BANK(DiglettPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/ditto.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %00000000
db %00000000
db %00000000
db %00000000
db 0 ; padding
db BANK(DittoPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dodrio.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %10000011
db %00001100
db %00001011
db 0 ; padding
db BANK(DodrioPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/doduo.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %10000011
db %00001100
db %00001011
db 0 ; padding
db BANK(DoduoPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dragonair.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000001
db %11100011
db %00011000
db %00010010
db 0 ; padding
db BANK(DragonairPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dragonite.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000001
db %11100011
db %00011000
db %00110010
db 0 ; padding
db BANK(DragonitePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dratini.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000001
db %11100011
db %00011000
db %00010010
db 0 ; padding
db BANK(DratiniPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/drowzee.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %10000111
db %00111010
db %01000011
db 0 ; padding
db BANK(DrowzeePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/dugtrio.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ IF DEF(_YELLOW)
ELSE
db %00000010
ENDC
db 0 ; padding
db BANK(DugtrioPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/eevee.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ db %11000000
db %11000011
db %00001000
db %00000010
db 0 ; padding
db BANK(EeveePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/ekans.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %10000010
db %10001000
db %00100010
db 0 ; padding
db BANK(EkansPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/electabuzz.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110001
db %11000111
db %00111000
db %01100010
db 0 ; padding
db BANK(ElectabuzzPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/electrode.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11100001
db %11001011
db %01011000
db %01000010
db 0 ; padding
db BANK(ElectrodePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/exeggcute.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %00011011
db %01101000
db %00000010
db 0 ; padding
db BANK(ExeggcutePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/exeggutor.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %00011011
db %01101000
db %00100010
db 0 ; padding
db BANK(ExeggutorPicFront)
3 changes: 2 additions & 1 deletion data/baseStats/farfetchd.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ db %11000000
db %11000011
db %00001000
db %00001110
db 0 ; padding
db BANK(FarfetchdPicFront)

2 changes: 1 addition & 1 deletion data/baseStats/fearow.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %01000010
db %00001100
db %00001010
db 0 ; padding
db BANK(FearowPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/flareon.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ db %11000000
db %11100011
db %00001000
db %00000010
db 0 ; padding
db BANK(FlareonPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/gastly.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11010001
db %00001010
db %01101010
db %00000010
db 0 ; padding
db BANK(GastlyPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/gengar.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11010001
db %10001110
db %01101010
db %00100010
db 0 ; padding
db BANK(GengarPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/geodude.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %00101110
db %11001000
db %00100010
db 0 ; padding
db BANK(GeodudePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/gloom.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %00000011
db %00001000
db %00000110
db 0 ; padding
db BANK(GloomPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/golbat.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %01000010
db %00001000
db %00000010
db 0 ; padding
db BANK(GolbatPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/goldeen.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %11000010
db %00001000
db %00010010
db 0 ; padding
db BANK(GoldeenPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/golduck.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001000
db %11000010
db %00001000
db %00110010
db 0 ; padding
db BANK(GolduckPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/golem.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %00101110
db %11001000
db %00100010
db 0 ; padding
db BANK(GolemPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/graveler.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001110
db %00101110
db %11001000
db %00100010
db 0 ; padding
db BANK(GravelerPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/grimer.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000001
db %00101010
db %01001000
db %00000010
db 0 ; padding
db BANK(GrimerPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/growlithe.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11001000
db %11100011
db %00001000
db %00000010
db 0 ; padding
db BANK(GrowlithePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/gyarados.asm
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ db %11000001
db %10100011
db %00001000
db %00110010
db 0 ; padding
db BANK(GyaradosPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/haunter.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11010001
db %00001010
db %01101010
db %00000010
db 0 ; padding
db BANK(HaunterPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/hitmonchan.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %11000110
db %00001000
db %00100010
db 0 ; padding
db BANK(HitmonchanPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/hitmonlee.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %11000110
db %00001000
db %00100010
db 0 ; padding
db BANK(HitmonleePicFront)
2 changes: 1 addition & 1 deletion data/baseStats/horsea.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %11000010
db %00001000
db %00010010
db 0 ; padding
db BANK(HorseaPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/hypno.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %10000111
db %00111010
db %01000011
db 0 ; padding
db BANK(HypnoPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/ivysaur.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %00000011
db %00001000
db %00000110
db 0 ; padding
db BANK(IvysaurPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/jigglypuff.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110001
db %10100011
db %00111000
db %01100011
db 0 ; padding
db BANK(JigglypuffPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/jolteon.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ db %11000001
db %11000011
db %00011000
db %01000010
db 0 ; padding
db BANK(JolteonPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/jynx.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11110000
db %10000111
db %00101000
db %00000010
db 0 ; padding
db BANK(JynxPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/kabuto.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %00000011
db %00001000
db %00010010
db 0 ; padding
db BANK(KabutoPicFront)
2 changes: 1 addition & 1 deletion data/baseStats/kabutops.asm
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ db %11000000
db %10000011
db %00001000
db %00010010
db 0 ; padding
db BANK(KabutopsPicFront)
Loading

0 comments on commit 8b44d6a

Please sign in to comment.