Jump to content

Rhydon trap: Difference between revisions

→‎Is it a glitch?: Updated the assembly labels to reflect the fully documented current version in pret/pokered.
>Sherkel
m (3TRAINERPOKé₽)
>Bbbbbbbbba
(→‎Is it a glitch?: Updated the assembly labels to reflect the fully documented current version in pret/pokered.)
Line 39:
The Rhydon trap itself is not considered a glitch, and was programmed into the game as an intended feature, which may have been used for debugging purposes.
 
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, .asm_13a7invalidDexNumber ; If it is, it's invalid
cp $98 NUM_POKEMON + 1 ; Is the dex number less than 152?
jr c, .asm_13advalidDexNumber ; If it is, it's valid
.invalidDexNumber
Invalid:
ld a, $1RHYDON
ld [$cf91wcf91], a ; Set the index number to 01 (Rhydon)
ret ; Return as ifwithout nothingloading everthe happenedsprite
.validDexNumber
Valid:
push hl
(...)
Line 56:
(Source: [http://forums.glitchcity.info/index.php/topic,6966.msg195670.html#msg195670 TheZZAZZGlitch])
 
Despite this, it is unclear what the Rhydondevelopers trapintend suffersto fromachieve aby glitch.setting [wcf91] to 01, since this function is called in multiple places, <!--(and possiblywhile buggysome codeof them will use the value of [wcf91] for further processing (e.g. adding captured Pokémon to party)?-->If, others will get the species byte from some other memory address instead. In particular, if there was no space in the party before catching the glitch Pokémon and it is sent to the Pokémon Storage System, it will become an [[unstable hybrid Pokémon]] with Rhydon as the donor and the original glitch Pokémon as the recipient.
 
The player may also obtain a Rhydon/original glitch Pokémon hybrid if the glitch Pokémon has its status viewed in the Pokémon Storage System, regardless of registered Pokédex flags.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.