Anonymous user
Rhydon trap: Difference between revisions
m
→Is it a glitch?: Adjusted indentation again, because 3 is just weird...
>Bbbbbbbbba m (Code formatting) |
>Bbbbbbbbba m (→Is it a glitch?: Adjusted indentation again, because 3 is just weird...) |
||
Line 41:
The following code in the {{RB}} ROM is responsible for converting the glitch Pokémon into a Rhydon. It is part of the function [https://github.com/pret/pokered/blob/725b86ebbec23bd1f53fd60bf0201c904fee951d/home.asm#L268 LoadFrontSpriteByMonIndex].
and a ; Is the dex number 000?
pop hl
jr z, .invalidDexNumber ; If it is, it's invalid
cp NUM_POKEMON + 1 ; Is the dex number less than 152?
jr c, .validDexNumber ; If it is, it's valid
.invalidDexNumber
ld a, RHYDON
ld [wcf91], a ; Set the index number to 01 (Rhydon)
ret ; Return without loading the sprite
.validDexNumber
push hl
(...)
(Source: [http://forums.glitchcity.info/index.php/topic,6966.msg195670.html#msg195670 TheZZAZZGlitch])
|