Skip to content

Commit

Permalink
load the correct high ID offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie-A committed Oct 9, 2024
1 parent 0ddebb2 commit 5edb0f3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions worlds/ff4fe/FreeEnterpriseForAP/FreeEnt/scripts/treasure_ap.f4c
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ msfpatch {
rep #$20
lda $06
asl a
clc
adc $06
tax
sep #$20
lda $348000,x // load bank into bank byte
sta $06DD
lda $348001,x // load dialog index into event bytes
sta $06B2
sta $0608
lda $348002,x // load dialog index into event bytes
sta $06B3
sta $0609

lda $06B2
lda $0608
stz $0773
asl a
rol $0773
Expand All @@ -39,7 +40,7 @@ msfpatch {
sta $063E
bra $+Finish
%Bank1:
lda $06B3
lda $0609
cmp #$01
beq $+HiBank
lda $108000, x
Expand All @@ -48,9 +49,9 @@ msfpatch {
sta $063E
bra $+Finish
%HiBank:
lda $108000, x
lda $108200, x
sta $063D
lda $108001, x
lda $108201, x
sta $063E
%Finish:
ldx $063D
Expand Down

0 comments on commit 5edb0f3

Please sign in to comment.