Sync more with pokeyellow

This commit is contained in:
Rangi 2020-11-06 10:33:58 -05:00
parent d3f1352875
commit 13d4d533f7
19 changed files with 35 additions and 41 deletions

View file

@ -20,7 +20,7 @@ AgathaShowOrHideExitBlock:
jp .setExitBlock
.blockExitToNextRoom
ld a, $3b
.setExitBlock:
.setExitBlock
ld [wNewTileBlockID], a
lb bc, 0, 2
predef_jump ReplaceTileBlock

View file

@ -50,8 +50,8 @@ BikeShopText1:
ld hl, wd730
set 6, [hl]
hlcoord 0, 0
ld b, $4
ld c, $f
ld b, 4
ld c, 15
call TextBoxBorder
call UpdateSprites
hlcoord 2, 2
@ -63,7 +63,7 @@ BikeShopText1:
ld hl, BikeShopText_1d815
call PrintText
call HandleMenuInput
bit 1, a
bit BIT_B_BUTTON, a
jr nz, .cancel
ld hl, wd730
res 6, [hl]

View file

@ -71,7 +71,7 @@ CeladonMartRoofScript_GiveDrinkToGirl:
ld hl, wd730
res 6, [hl]
call HandleMenuInput
bit 1, a ; pressed b
bit BIT_B_BUTTON, a
ret nz
ld hl, wFilteredBagItems
ld a, [wCurrentMenuItem]

View file

@ -475,8 +475,8 @@ CeladonGameCornerScript_48f1e:
ld hl, wd730
set 6, [hl]
hlcoord 11, 0
ld b, $5
ld c, $7
ld b, 5
ld c, 7
call TextBoxBorder
call UpdateSprites
hlcoord 12, 1
@ -491,7 +491,7 @@ CeladonGameCornerScript_48f1e:
call PlaceString
hlcoord 12, 3
ld de, wPlayerMoney
ld c, $a3
ld c, 3 | MONEY_SIGN | LEADING_ZEROES
call PrintBCDNumber
hlcoord 12, 4
ld de, GameCornerCoinText

View file

@ -18,23 +18,21 @@ LanceShowOrHideEntranceBlocks:
; open entrance
ld a, $31
ld b, $32
jp LanceSetEntranceBlocks
jp .setEntranceBlocks
.closeEntrance
ld a, $72
ld b, $73
LanceSetEntranceBlocks:
.setEntranceBlocks
; Replaces the tile blocks so the player can't leave.
push bc
ld [wNewTileBlockID], a
lb bc, 6, 2
call LanceSetEntranceBlock
call .SetEntranceBlock
pop bc
ld a, b
ld [wNewTileBlockID], a
lb bc, 6, 3
LanceSetEntranceBlock:
.SetEntranceBlock:
predef_jump ReplaceTileBlock
ResetLanceScript:

View file

@ -180,7 +180,8 @@ MtMoon3Text1:
text_asm
CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
jr z, .asm_49e8d
and $c0
; CheckEitherEventSetReuseA EVENT_GOT_DOME_FOSSIL, EVENT_GOT_HELIX_FOSSIL
and (1 << (EVENT_GOT_DOME_FOSSIL % 8)) | (1 << (EVENT_GOT_HELIX_FOSSIL % 8))
jr nz, .asm_49eb8
ld hl, MtMoon3Text_49f8f
call PrintText

View file

@ -666,7 +666,7 @@ OaksLabScript_RemoveParcel:
ld hl, wNumBagItems
ld a, c
ld [wWhichPokemon], a
ld a, $1
ld a, 1
ld [wItemQuantity], a
jp RemoveItemFromInventory
@ -716,7 +716,7 @@ OaksLabScript_1d076:
ld a, l
ld [wMapTextPtr], a
ld a, h
ld [wMapTextPtr+1], a
ld [wMapTextPtr + 1], a
ret
OaksLab_TextPointers:

View file

@ -41,7 +41,6 @@ PewterGymScript3:
jp z, PewterGymScript_5c3bf
ld a, $f0
ld [wJoyIgnore], a
PewterGymScript_5c3df:
ld a, $4
ldh [hSpriteIndexOrTextID], a

View file

@ -14,6 +14,7 @@ PewterMartText2:
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text
text_far _PewterMartText2
text_end
@ -23,6 +24,7 @@ PewterMartText3:
ld hl, .Text
call PrintText
jp TextScriptEnd
.Text
text_far _PewterMartText3
text_end

View file

@ -59,7 +59,7 @@ Route22Gate_TextPointers:
Route22GateText1:
text_asm
ld a, [wObtainedBadges]
bit 0, a
bit BIT_BOULDERBADGE, a
jr nz, .asm_1e6f6
ld hl, Route22GateText_1e704
call PrintText

View file

@ -45,7 +45,7 @@ SSAnne7RubText:
text_far _SSAnne7RubText
text_asm
ld a, [wAudioROMBank]
cp BANK(Audio3_UpdateMusic)
cp BANK("Audio Engine 3")
ld [wAudioSavedROMBank], a
jr nz, .asm_61908
ld a, SFX_STOP_ALL_MUSIC

View file

@ -124,7 +124,7 @@ VermilionDock_1db9b:
VermilionDock_AnimSmokePuffDriftRight:
push bc
push de
ld hl, wOAMBuffer + $11
ld hl, wOAMBuffer + 4 * $4 + 1 ; x coord
ld a, [wSSAnneSmokeDriftAmount]
swap a
ld c, a

View file

@ -17,7 +17,6 @@ VictoryRoad2F_Script:
VictoryRoad2Script_517c4:
ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
VictoryRoad2Script_517c9:
CheckEvent EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
jr z, .asm_517da
@ -31,7 +30,6 @@ VictoryRoad2Script_517c9:
ret z
ld a, $1d
lb bc, 7, 11
VictoryRoad2Script_517e2:
ld [wNewTileBlockID], a
predef ReplaceTileBlock