Invisible Bunny fix

Double count Hera Basement Cage fix
This commit is contained in:
aerinon
2020-11-09 13:59:00 -07:00
parent 5310569aa3
commit 4c4fa74f1a
4 changed files with 41 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
;================================================================================
;================================================================================
; Lamp Mantle & Light Cone Fix
;--------------------------------------------------------------------------------
; Output: 0 for darkness, 1 for lamp cone
@@ -49,11 +50,6 @@ MirrorCheckOverride:
rtl
+ lda.l DRScroll : rtl
;moved to base rom
;MirrorCheckOverride2:
; lda $7ef353 : and #$02 : rtl
BlockEraseFix:
lda $7ef353 : and #$02 : beq +
stz $05fc : stz $05fd
@@ -93,6 +89,7 @@ SuctionOverworldFix:
CutoffRooms:
db $bc, $a2, $1a, $49, $14, $8c, $9f, $c2
db $66, $5d, $a8
; Don't forget CutoffRoomCount!!!
CutoffEntranceRug:
pha : phx
@@ -101,7 +98,7 @@ CutoffEntranceRug:
cmp #$000C : bne .norm
+ lda $a0 : sep #$20 : ldx #$0000
- cmp.l CutoffRooms, x : beq .check
inx : cpx #$0009 : !blt - ; CutoffRoom Count is here!
inx : cpx #$000B : !blt - ; CutoffRoomCount is here!
rep #$20
.norm plx : pla : lda $9B52, y : sta $7E2000, x ; what we wrote over
rtl
@@ -113,3 +110,15 @@ rtl
bra .norm
.skip plx : pla : rtl
StoreTempBunnyState:
LDA $5D : CMP #$1C : BNE +
STA $5F
+ LDA #$15 : STA $5D ; what we wrote over
RTL
RetrieveBunnyState:
STY $5D : STZ $02D8 ; what we wrote over
LDA $5F : BEQ +
STA $5D
+ RTL