Fix witch item bug
This commit is contained in:
@@ -343,7 +343,8 @@ warnpc $B08000
|
||||
;$3B reserved for downstream use
|
||||
;$3F reserved for internal debugging
|
||||
;================================================================================
|
||||
;RAM
|
||||
;RAM
|
||||
;$7E021B[0x1]: Used by race game instead of $0ABF to avoid witch item conflict
|
||||
;$7EC900[0x1F00]: BIGRAM buffer
|
||||
;$7EF000[0x500]: SRAM mirror First 0x500 bytes of SRAM
|
||||
;$7F5000[0x800]: Rando's main free ram region
|
||||
|
||||
@@ -214,3 +214,10 @@ FixJingleGlitch:
|
||||
|
||||
.exit
|
||||
RTL
|
||||
|
||||
;--------------------------------------------------------------------------------
|
||||
SetOverworldTransitionFlags:
|
||||
LDA #$01
|
||||
STA $0ABF ; used by witch
|
||||
STA $021B ; used by race game
|
||||
RTL
|
||||
|
||||
16
hooks.asm
16
hooks.asm
@@ -2525,6 +2525,22 @@ JSL ParadoxCaveGfxFix
|
||||
NOP
|
||||
;================================================================================
|
||||
|
||||
;================================================================================
|
||||
; Resolve conflict between race game and witch item
|
||||
;--------------------------------------------------------------------------------
|
||||
; Change race game to use $021B instead of $0ABF for detecting cheating
|
||||
org $0DCB9D ; STZ.w $0ABF
|
||||
STZ $021B
|
||||
|
||||
org $0DCBFE ; LDA.w $0ABF
|
||||
LDA $021B
|
||||
|
||||
org $02BFE0 ; LDA.b #$01 : STA.w $0ABF
|
||||
JSL SetOverworldTransitionFlags
|
||||
NOP
|
||||
; For mirroring, the new flag is set in IncrementOWMirror in stats.asm
|
||||
;================================================================================
|
||||
|
||||
;================================================================================
|
||||
; Player Sprite Fixes
|
||||
;--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user