mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Removing MissingNo to make room
This commit is contained in:
parent
fb3a20a51d
commit
c7499a1fd2
21 changed files with 17 additions and 67 deletions
|
|
@ -100,6 +100,7 @@ LoadFrontSpriteByMonIndex::
|
|||
ld [hl], b
|
||||
and a
|
||||
pop hl
|
||||
jr z, .invalidDexNumber ; dex #0 invalid
|
||||
cp NUM_POKEMON + 1
|
||||
jr c, .validDexNumber ; dex numbers over normal limit invalid
|
||||
.invalidDexNumber
|
||||
|
|
@ -378,8 +379,6 @@ GetMonHeader::
|
|||
jr z, .specialID
|
||||
predef IndexToPokedex ; convert pokemon ID in [wd11e] to pokedex number
|
||||
ld a, [wd11e]
|
||||
and a
|
||||
jr z, .missingno ; index of 0 is missingno
|
||||
dec a
|
||||
ld bc, BASE_DATA_SIZE
|
||||
ld hl, BaseStats
|
||||
|
|
@ -388,12 +387,6 @@ GetMonHeader::
|
|||
ld bc, BASE_DATA_SIZE
|
||||
call CopyData
|
||||
jr .done
|
||||
.missingno
|
||||
ld hl, MissingnoBaseStats
|
||||
ld bc, BASE_DATA_SIZE
|
||||
ld de, wMonHeader
|
||||
call CopyData
|
||||
jr .done
|
||||
.specialID
|
||||
ld hl, wMonHSpriteDim
|
||||
ld [hl], b ; write sprite dimensions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue