diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-01-26 17:13:51 -0500 |
---|---|---|
committer | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-01-26 17:13:51 -0500 |
commit | e8dc9ff098aa5109e26ac97fa94aa29be169b666 (patch) | |
tree | 782c992b08af7dfdf2ce60784ec9ae4c250249c3 | |
parent | 04ba34d3d590d4dbcf3b187da1434713a75a200b (diff) |
Destroyed Bugs and Glitches (markdown)
-rw-r--r-- | Bugs-and-Glitches.md | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/Bugs-and-Glitches.md b/Bugs-and-Glitches.md deleted file mode 100644 index 980d16f..0000000 --- a/Bugs-and-Glitches.md +++ /dev/null @@ -1,108 +0,0 @@ -### Source: -http://bulbapedia.bulbagarden.net/wiki/List_of_glitches_in_Generation_II - - -### Present damage miscalculation -Fixed in Crystal, but still occurs during Link battles to preserve backwards compatibility. Not completely sure if the code here shows the fix, but looks like it. -**[battle/effect_commands.asm (BattleCommand61, 9491-9508)](../blob/master/battle/effect_commands.asm#L9491-9508)** -```asm -BattleCommand61: ; 37874 -; present - - ld a, [InLinkBattle] - cp $3 - jr z, .asm_3787d - push bc - push de -.asm_3787d - - call BattleCommand07_CalcDamageTypeMultiplier - - ld a, [InLinkBattle] - cp $3 - jr z, .asm_37889 - pop de - pop bc -.asm_37889 -``` - -### Belly Drum effect error -The function to raise the Attack 2 stages is called a bit too early. -**[battle/effect_commands.asm (BattleCommand95, 10158-10163)](../blob/master/battle/effect_commands.asm#L10158-10163)** -```asm -BattleCommand95: ; 37c1a -; bellydrum - call BattleCommand77 - ld a, [AttackMissed] - and a - jr nz, .asm_37c4f -``` - -### Catch rate errors -**[items/item_effects.asm (MasterBall/UltraBall/GreatBall/PokeBall/HeavyBall/LevelBall//LureBall/FastBall/FriendBall/MoonBall/LoveBall/ParkBall, 336-340)](../blob/master/items/item_effects.asm#L336-340)** -```asm -.statuscheck -; This routine is buggy. It was intended that SLP and FRZ provide a higher -; catch rate than BRN/PSN/PAR, which in turn provide a higher catch rate than -; no status effect at all. But instead, it makes BRN/PSN/PAR provide no -; benefit. -``` - -**[items/item_effects.asm (MoonBallMultiplier, 916-919)](../blob/master/items/item_effects.asm#L916-919)** -```asm -MoonBallMultiplier: -; This function is buggy. -; Intent: multiply catch rate by 4 if mon evolves with moon stone -; Reality: no boost -``` - -**[items/item_effects.asm (LoveBallMultiplier, 967-970)](../blob/master/items/item_effects.asm#L967-970)** -```asm -LoveBallMultiplier: -; This function is buggy. -; Intent: multiply catch rate by 8 if mons are of same species, different sex -; Reality: multiply catch rate by 8 if mons are of same species, same sex -``` - -**[items/item_effects.asm (FastBallMultiplier, 1032-1037)](../blob/master/items/item_effects.asm#L1032-1037)** -```asm -FastBallMultiplier: -; This function is buggy. -; Intent: multiply catch rate by 4 if enemy mon is in one of the three -; FleeMons tables. -; Reality: multiply catch rate by 4 if enemy mon is one of the first three in -; the first FleeMons table. -``` - -### Wild Encounter Errors -**[main.asm (ChooseWildEncounter, 32844-32855)](../blob/master/main.asm#L32844-32855)** -```asm -; Store the level -.ok - ld a, b - ld [CurPartyLevel], a - ld b, [hl] - ; ld a, b - call ValidateTempWildMonSpecies - jr c, .nowildbattle - - ld a, b ; This is in the wrong place. - cp UNOWN - jr nz, .done -``` - -**[main.asm (ValidateTempMonSpecies, 33343-33354)](../blob/master/main.asm#L33343-33354)** -``` -ValidateTempWildMonSpecies: ; 2a4a0 -; Due to a development oversight, this function is called with the wild Pokemon's level, not its species, in a. - and a - jr z, .nowildmon ; = 0 - cp NUM_POKEMON + 1 ; 252 - jr nc, .nowildmon ; >= 252 - and a ; 1 <= Species <= 251 - ret - -.nowildmon - scf - ret -``` |