Add door frame data for the multi-entrance caves. This will support
mixing single and multi-entrance caves. I also added the alternate door frame table, which is needed for having single entrance caves at Sanctuary and Hyrule castle. (Added as a table rather than hard coding the ids in order to be more friendly to level editors). Updated the comments and function name to be clear that we are tracking the overworld door id, not the entrance id. Remove the code that attempts to clear the entrance because the code is broken (it lacked a needed ".w" suffix, so xkas miscompiled it) meaning the value was never cleared, which has not caused any issues. Also having the entrance ID around is generally useful.
This commit is contained in:
34
tables.asm
34
tables.asm
@@ -1288,7 +1288,7 @@ dw #9999 ; Rupee Limit
|
||||
; $7F5096 - Dialog Offset Pointer Return (Low)
|
||||
; $7F5097 - Dialog Offset Pointer Return (High)
|
||||
; $7F5098 - Water Entry Index
|
||||
; $7F5099 - Last Entered Entrance
|
||||
; $7F5099 - Last Entered Overworld Door ID
|
||||
|
||||
; $7F50A0 - Event Parameter 1
|
||||
|
||||
@@ -1331,8 +1331,18 @@ db $83, $21, $EB, $6E, $0A, $71, $B0, $11, $85, $C7, $A1, $FD, $E5, $16, $48, $F
|
||||
db $F2, $23, $2F, $28, $9B, $AA, $AB, $D0, $6A, $9D, $C6, $2D, $00, $FE, $E1, $3F
|
||||
db $A0, $4A, $B8, $4E, $74, $1F, $8E, $A9, $F5, $CD, $60, $91, $DB, $D8, $52, $E2
|
||||
;================================================================================
|
||||
org $30A100 ; PC 0x182100 - 0x18218C
|
||||
org $30A100 ; PC 0x182100 - 0x182304
|
||||
EntranceDoorFrameTable:
|
||||
; data for multi-entrance caves
|
||||
dw $0816, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $05cc, $05d4, $0bb6, $0b86
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000
|
||||
; simple caves:
|
||||
dw $0000, $0000, $0DE8, $0B98, $14CE, $0000, $1C50, $FFFF
|
||||
dw $1466, $0000, $1AB6, $0B98, $1AB6, $040E, $9C0C, $1530
|
||||
dw $0A98, $0000, $0000, $0000, $0000, $0000, $0000, $0816
|
||||
@@ -1342,6 +1352,24 @@ dw $041A, $0000, $091E, $09AC, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0AA8, $07AA, $0000, $0000, $0000, $0000, $0000
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000
|
||||
EntranceAltDoorFrameTable:
|
||||
dw $0000, $01aa, $8124, $87be, $8158, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $82be, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
|
||||
dw $0000
|
||||
;===============================================================================
|
||||
org $30B000 ; PC 0x183000 - 0x183054
|
||||
StartingEquipment:
|
||||
@@ -1371,4 +1399,4 @@ db $FF, $AF, $50, $00
|
||||
db $FF, $27, $0A, $00
|
||||
db $FF, $12, $F4, $01
|
||||
db $FF, $FF, $FF, $FF
|
||||
;================================================================================
|
||||
;================================================================================
|
||||
|
||||
Reference in New Issue
Block a user