diff options
author | dannye <corrnondacqb@yahoo.com> | 2016-08-12 12:50:05 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2016-08-12 13:32:41 -0500 |
commit | aa1e3eac34137d88d6bc1df4fac6f32ceab404b6 (patch) | |
tree | c4177a4bc694a212a4c35a790c28c71f72db67cb /home.asm | |
parent | 032f961ef26a94caf385f6d5ae5823a0066d4d66 (diff) |
Internal order = Pokedex order
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 41 |
1 files changed, 9 insertions, 32 deletions
@@ -285,7 +285,7 @@ LoadFrontSpriteByMonIndex:: cp NUM_POKEMON + 1 jr c, .validDexNumber ; dex >#151 invalid .invalidDexNumber - ld a, RHYDON ; $1 + ld a, RHYDON ld [wcf91], a ret .validDexNumber @@ -722,40 +722,17 @@ UncompressMonSprite:: ld [wSpriteInputPtr],a ; fetch sprite input pointer ld a,[hl] ld [wSpriteInputPtr+1],a -; define (by index number) the bank that a pokemon's image is in -; index = Mew, bank 1 -; index = Kabutops fossil, bank $B -; index < $1F, bank 9 -; $1F ≤ index < $4A, bank $A -; $4A ≤ index < $74, bank $B -; $74 ≤ index < $99, bank $C -; $99 ≤ index, bank $D ld a,[wcf91] ; XXX name for this ram location - ld b,a - cp MEW - ld a,BANK(MewPicFront) - jr z,.GotBank - ld a,b cp FOSSIL_KABUTOPS + jr z,.GhostOrFossil + cp FOSSIL_AERODACTYL + jr z,.GhostOrFossil + cp MON_GHOST + jr z,.GhostOrFossil + ld a,[wMonHPicBank] + jr .GotBank +.GhostOrFossil ld a,BANK(FossilKabutopsPic) - jr z,.GotBank - ld a,b - cp TANGELA + 1 - ld a,BANK(TangelaPicFront) - jr c,.GotBank - ld a,b - cp MOLTRES + 1 - ld a,BANK(MoltresPicFront) - jr c,.GotBank - ld a,b - cp BEEDRILL + 2 - ld a,BANK(BeedrillPicFront) - jr c,.GotBank - ld a,b - cp STARMIE + 1 - ld a,BANK(StarmiePicFront) - jr c,.GotBank - ld a,BANK(VictreebelPicFront) .GotBank jp UncompressSpriteData |