Vermilion Beauty Bug Fixes & more

- Vermilion Beauty no longer skips text to hand you your Pokemon
- Vermilion City text boxes are fixed
- Cancelling TMs and causing crashes when trying different ones is fixed (thanks to some old code by BlueZangoose, it was a vanilla bug!)
- Minor enhancement to the Candy Jar that seems to make Meltan more stable.
- Fixed a fallthrough error that caused Mewtwo's theme to play for every wild encounter (very cool, but also oops)
This commit is contained in:
Llinos Evans 2023-06-22 18:54:25 +01:00
parent c445892d7f
commit 9a24ec74d8
6 changed files with 29 additions and 23 deletions

View file

@ -212,12 +212,9 @@ Known Bugs
- The Tradeback Tutor doesn't work properly with Rhydon for reasons likely related to its index number of 1.
- The Vermilion Passes are very unstable (Faraway warps are weird unless you battle, Citrine outright crashes).
- Meltan spawned via the Mystery Box will use the moves of the Pokemon they are replacing.
- GiveMonName doesn't work properly for the Vermilion Beauty after receiving the Pokemon, jank ensues.
- Text scrolls immediately when receiving the Pokemon from the Vermilion Beauty.
- HP DV does not appear to display correctly.
- Vermilion City sign near Diglett's Cave doesn't show correctly (prolly just an event thing)
- Vermilion Beauty gives wrong Pokemon when cats are chosen
- Cancelling teaching with a TM and choosing another crashes the game
- Vermilion Beauty gives the wrong Pokemon when cats are chosen, seems to be an issue with wBeautyChoice.
- GetMonName doesn't work properly for the Vermilion Beauty after receiving the Pokemon, jank ensues.
Evolution Methods for new Pokemon
====

View file

@ -46,9 +46,9 @@ PlayBattleMusic::
.finalBattle
ld a, MUSIC_FINAL_BATTLE
jr .playSong
.wildBattle
ld a, MUSIC_WILD_BATTLE
.mewtwoBattle
ld a, MUSIC_MEWTWO01
.wildBattle
ld a, MUSIC_WILD_BATTLE
.playSong
jp PlayMusic

View file

@ -14,13 +14,13 @@ VermilionCity_Object:
warp_event 11, 31, FARAWAY_ISLAND_OUTSIDE, 1
def_bg_events
bg_event 27, 3, 7 ; VermilionCityText7
bg_event 37, 13, 8 ; VermilionCityText8
bg_event 24, 13, 9 ; MartSignText
bg_event 12, 3, 10 ; PokeCenterSignText
bg_event 7, 13, 11 ; VermilionCityText11
bg_event 7, 19, 12 ; VermilionCityText12
bg_event 29, 15, 13 ; VermilionCityText13
bg_event 27, 3, 9 ; VermilionCityText7
bg_event 37, 13, 10 ; VermilionCityText8
bg_event 24, 13, 11 ; MartSignText
bg_event 12, 3, 12 ; PokeCenterSignText
bg_event 7, 13, 13 ; VermilionCityText11
bg_event 7, 19, 14 ; VermilionCityText12
bg_event 29, 15, 15 ; VermilionCityText13
def_object_events
object_event 19, 7, SPRITE_BEAUTY, WALK, LEFT_RIGHT, 1 ; person
@ -29,7 +29,7 @@ VermilionCity_Object:
object_event 30, 7, SPRITE_GAMBLER, STAY, NONE, 4 ; person
object_event 29, 9, SPRITE_MONSTER, WALK, UP_DOWN, 5 ; person
object_event 25, 27, SPRITE_SAILOR, WALK, LEFT_RIGHT, 6 ; person
object_event 31, 27, SPRITE_COOLTRAINER_F, WALK, LEFT_RIGHT, 14 ; person
object_event 12, 13, SPRITE_BEAUTY, STAY, DOWN, 15 ; person
object_event 31, 27, SPRITE_COOLTRAINER_F, WALK, LEFT_RIGHT, 7 ; person
object_event 12, 13, SPRITE_BEAUTY, STAY, DOWN, 8 ; person
def_warps_to VERMILION_CITY

View file

@ -6282,6 +6282,7 @@ LoadEnemyMonData:
ld a, MELTAN ; Meltan is loaded...
ld [wEnemyMonSpecies2], a ; Here!
ld [wcf91], a
.skip ; Standard loading.
ld a, [wEnemyMonSpecies2]

View file

@ -2282,6 +2282,8 @@ ItemUseTMHM:
ld a, [wCurrentMenuItem]
and a
jr z, .useMachine
ld a, ITEM_NAME ; tm thing from BlueZangoose/vimescarrot
ld [wNameListType], a; if you decide not to use the machine, change the list type back to item list. FIXES THE TM CRASH BUG
ld a, 2
ld [wActionResultOrTookBattleTurn], a ; item not used
ret

View file

@ -266,6 +266,8 @@ VermilionCity_TextPointers:
dw VermilionCityText4
dw VermilionCityText5
dw VermilionCityText6
dw RoingusText
dw VermilionBeauty
dw VermilionCityText7
dw VermilionCityText8
dw MartSignText
@ -273,8 +275,6 @@ VermilionCity_TextPointers:
dw VermilionCityText11
dw VermilionCityText12
dw VermilionCityText13
dw RoingusText
dw VermilionBeauty
VermilionCityText1:
text_far _VermilionCityText1
@ -516,16 +516,22 @@ VermilionBeauty:
call GetMonName
ld hl, BeautyFinish
call PrintText
lb bc, PERSIAN, 16
ld a, [wBeautyChoice] ; Let's make sure they actually need Persian.
cp PERSIAN ; Do they?
ld a, [wSimulatedJoypadStatesEnd] ; ensuring that the text doesn't autoskip.
and a ; yep, here too.
call z, WaitForTextScrollButtonPress ; and here.
call EnableAutoTextBoxDrawing ; and here. GivePokemon is very hasty.
lb bc, PERSIAN, 16 ; because we're elitists, let's see if they chose cats first.
ld a, [wBeautyChoice] ; *sigh*, but if they're dog lovers, let's make sure they actually want Persian.
cp PERSIAN ; Do they? If yes, skip.
jr z, .skip2 ; electric boogaloo
lb bc, ARCANINE, 16 ; ok but skip2 means arc never gets loaded in. very good sequel. disney would NEVER.
.skip2
call GivePokemon
jr nc, .done
call LoadScreenTilesFromBuffer1 ; saves us from some corruption disasters if nicknaming.
SetEvent EVENT_VERMILION_BEAUTY_DONE ; and now we can finally rest.
ld hl, wd72e
set 0, [hl]
.done
jp TextScriptEnd
@ -576,4 +582,4 @@ BeautyFinish:
BeautyExplain:
text_far _BeautyExplain
text_end
text_end