Fix Old Man death putting you on Pyramid

This commit is contained in:
codemann8
2023-09-27 16:09:45 -05:00
parent 173b474b9d
commit 8e9b4c234b
3 changed files with 15 additions and 0 deletions

View File

@@ -110,6 +110,15 @@ FakeWorldFix:
+
RTL
;--------------------------------------------------------------------------------
GetCurrentWorldForLoad:
LDA FollowerIndicator : CMP #$04 : BNE .default
LDA InvertedMode : BEQ +
LDA #$40
+ RTL
.default
LDA CurrentWorld
RTL
;--------------------------------------------------------------------------------
MasterSwordFollowerClear:
LDA FollowerIndicator
CMP #$0E : BNE .exit ; clear master sword follower

View File

@@ -13,6 +13,9 @@ PHP
SetDefaultWorld:
PHP : SEP #$20
LDA.l FollowerIndicator : CMP #$04 : BNE .default
LDA.l OldManRetrievalWorld : BRA +
.default
LDA.l InvertedMode : BEQ +
LDA.b #$40
+ STA CurrentWorld

View File

@@ -2139,6 +2139,9 @@ PHB : JSL.l DarkWorldSaveFix
org $028046 ; <- 10046 - Bank02.asm : 217 (JSL EnableForceBlank) (Start of Module_LoadFile)
JSL.l OnFileLoad
;--------------------------------------------------------------------------------
org $0280A2
JSL GetCurrentWorldForLoad
;--------------------------------------------------------------------------------
org $09F520 ; <- 4F520 - module_death.asm : 401 (LDA $7EF3C5 : CMP.b #$03 : BCS BRANCH_THETA)
JSL.l OnPlayerDead
JSL.l IncrementDeathCounter