Removing MissingNo to make room

This commit is contained in:
MementoMartha 2023-04-09 20:41:31 +01:00
parent fb3a20a51d
commit c7499a1fd2
21 changed files with 17 additions and 67 deletions

View file

@ -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