Big key door double-sided check

This commit is contained in:
aerinon
2022-07-06 09:48:42 -06:00
parent 7f8e560b76
commit 4e6acaf7b9
3 changed files with 26 additions and 11 deletions

View File

@@ -21,6 +21,20 @@ org $278000 ;138000
db $44, $52 ;DR db $44, $52 ;DR
DRMode: DRMode:
dw 0 dw 0
; xxpg rmse
; xxxx xBDM
; x - unused
; p - use the original palette for the dungeon rooms instead of the DR table
; g - fix the EG glitch in more places (should be off for no logic)
; r - The collection rate flag
; m - Whether to display keys Map Info
; s - Start with Mirror Scroll
; e - GT minibosses marked as defeated instead of spawning heart container in all dungeons
; B - Big Key doors can displayed and be opened on the "south" side in addition
; D - Enabled spawning as a bunny in the Dark World underworld
; M - hides the total number in the collection rate
DRFlags: DRFlags:
dw 0 dw 0
DRScroll: DRScroll:

View File

@@ -198,20 +198,15 @@ Underworld_DoorDown_Call:
org $02C3F3 org $02C3F3
dw $8AD9 ; address of Bank02.asm:2085 dw $8AD9 ; address of Bank02.asm:2085
; These two, if enabled together, have implications for vanilla BK doors in IP/Hera/Mire org $01aa90
; IPBJ is common enough to consider not doing this. Mire is not a concern for vanilla - maybe glitched modes JSL BigKeyDoorCheck
; Hera BK door back can be seen with Pot clipping - likely useful for no logic seeds
;Kill big key (1e) check for south doors org $01AAA2
;org $1aa90 RoomDraw_OneSidedShutters_South_onesided_shutter_or_big_key_door:
;DontCheck:
;bra .done
;nop #3
;.done
;Enable south facing bk graphic ;Enable south facing bk graphic
;org $00CE24 org $00CE24
;dw $2ac8 dw $2ac8
org $01b714 ; PC: b714 org $01b714 ; PC: b714
OpenableDoors: OpenableDoors:

View File

@@ -152,3 +152,9 @@ BlindsAtticHint:
SEP #$20 : RTL ; skip the dialog box if the hole is already open SEP #$20 : RTL ; skip the dialog box if the hole is already open
+ SEP #$20 : JML Main_ShowTextMessage + SEP #$20 : JML Main_ShowTextMessage
BigKeyDoorCheck:
CPY.w #$001E : BNE + ; skip if it isn't a BK door
LDA.l DRFlags : AND #$0400 : BNE + ; skip if the flag is set - bk doors can be double-sided
PLA : PEA.w RoomDraw_OneSidedShutters_South_onesided_shutter_or_big_key_door-1
+ RTL