From 0a7e3ebc5426ae0324495085b324a9be8a348bb3 Mon Sep 17 00:00:00 2001 From: scawful Date: Mon, 19 Dec 2022 19:13:48 -0500 Subject: [PATCH] fix house tag bug, close keyblock namespace --- Events/house_tag.asm | 22 +++++++--------------- KeyBlock/keyblock.asm | 3 ++- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/Events/house_tag.asm b/Events/house_tag.asm index a877a91..e1f6a4f 100644 --- a/Events/house_tag.asm +++ b/Events/house_tag.asm @@ -2,13 +2,7 @@ ; NEW: Custom Room Tag to initialize the game without the Uncle sprite. ; -incsrc "Util/ram.asm" - -org $008781 - UseImplicitRegIndexedLocalJumpTable: - -org $05E219 - Sprite_ShowMessageUnconditional: +StoryState = $7C org $01CC18 ; override routine 0x39 "Holes(7)" JML HouseTag @@ -16,7 +10,7 @@ org $01CC18 ; override routine 0x39 "Holes(7)" org $01CC5A HouseTag_Return: -org $228000 +org $238000 HouseTag: { PHX @@ -35,7 +29,7 @@ HouseTag_Main: { LDA StoryState - JSL UseImplicitRegIndexedLocalJumpTable + JSL $008781 dw HouseTag_TelepathicPlea dw HouseTag_WakeUpPlayer @@ -56,7 +50,7 @@ HouseTag_TelepathicPlea: ; "Accept our quest, Link!" LDA.b #$1F : LDY.b #$00 - JSL Sprite_ShowMessageUnconditional + JSL $05E219 INC.b StoryState RTS @@ -98,11 +92,9 @@ HouseTag_WakeUpPlayer: LDA $7EF3C6 : ORA.b #$10 : STA $7EF3C6 ; Set the game mode to part 2 - ; LDA #$02 - ; STA $7ef3C5 ; store "part 2" - ; LDA #$00 - ; STA $7ef3CC ; disable telepathic message - ; JSL $00FC41 ; fix monsters + LDA #$02 : STA $7ef3C5 ; store "part 2" + LDA #$00 : STA $7ef3CC ; disable telepathic message + JSL $00FC41 ; fix monsters RTS } diff --git a/KeyBlock/keyblock.asm b/KeyBlock/keyblock.asm index 82669fe..2e23bbd 100644 --- a/KeyBlock/keyblock.asm +++ b/KeyBlock/keyblock.asm @@ -49,4 +49,5 @@ namespace KeyBlock ; 5C- xy mirror ; 5E- y mirror } ; label Main -} ; namespace KeyBlock \ No newline at end of file +} ; namespace KeyBlock +namespace off \ No newline at end of file