Housekeeping

This commit is contained in:
scawful
2025-01-11 21:10:30 -05:00
parent dea2ff1561
commit f9f4436df2
6 changed files with 27 additions and 60 deletions

View File

@@ -8087,7 +8087,7 @@ ABILITY = $7EF379
; i - Ice Palace ; i - Ice Palace
; m - Misery Mire ; m - Misery Mire
; t - Turtle Rock ; t - Turtle Rock
CRYSTALS = $7EF37A Crystals = $7EF37A
; 0x00 - Normal magic ; 0x00 - Normal magic
; 0x01 - Half magic ; 0x01 - Half magic

View File

@@ -1,8 +1,6 @@
;================================================ ; ================================================
;use holes_0 tag routine ; use holes_0 tag routine
; DO NOT USE holes_1 tag (broken because of holes_0 tag)
;==================================================
org $01CC00 ; holes_0 tag routine org $01CC00 ; holes_0 tag routine
JSL NewTagRoutine JSL NewTagRoutine
@@ -17,10 +15,10 @@ NewTagRoutine:
LDA.b $20 : CLC : ADC #$10 : AND.b #$F0 : STA.w $0224 ; y LDA.b $20 : CLC : ADC #$10 : AND.b #$F0 : STA.w $0224 ; y
LDA.b $22 : CLC : ADC #$08 : AND.b #$F0 : STA.w $0225 ; x LDA.b $22 : CLC : ADC #$08 : AND.b #$F0 : STA.w $0225 ; x
LDA.w $0224 : CMP.w $0226 : BNE .differentTile LDA.w $0224 : CMP.w $0226 : BNE .different_tile
LDA.w $0225 : CMP.w $0227 : BNE .differentTile LDA.w $0225 : CMP.w $0227 : BNE .different_tile
JMP .sameTile JMP .same_tile
.differentTile .different_tile
; do code here for tile code ; do code here for tile code
REP #$30 REP #$30
@@ -32,7 +30,7 @@ NewTagRoutine:
LDA.l $7E2000, X : CMP.w #$0DED : BNE + LDA.l $7E2000, X : CMP.w #$0DED : BNE +
JSR update_star_tile JSR update_star_tile
JSR SearchForEmptyStar JSR SearchForEmptyStar
BRA .doneupdate BRA .done_update
+ +
LDA.l $7E2000, X : CMP.w #$0DEE : BNE + LDA.l $7E2000, X : CMP.w #$0DEE : BNE +
;JSR SearchToRedStar ;JSR SearchToRedStar
@@ -43,10 +41,10 @@ NewTagRoutine:
;JSR SearchForEmptyStar ;JSR SearchForEmptyStar
+ +
.doneupdate .done_update
SEP #$30 SEP #$30
.sameTile .same_tile
LDA.w $0224 : STA.w $0226 ; Last Y LDA.w $0224 : STA.w $0226 ; Last Y
LDA.w $0225 : STA.w $0227 ; Last X LDA.w $0225 : STA.w $0227 ; Last X
@@ -93,26 +91,19 @@ update_red_star_tile:
replace_red_tile_star: replace_red_tile_star:
{ {
LDX.w $1000 LDX.w $1000
LDA.w #$19EE : STA.w $1006, X
LDA.w #$19EE : STA.w $1006,X LDA.w #$99EE : STA.w $100C, X
LDA.w #$99EE : STA.w $100C,X LDA.w #$59EE : STA.w $1012, X
LDA.w #$59EE : STA.w $1012,X LDA.w #$D9EE : STA.w $1018, X
LDA.w #$D9EE : STA.w $1018,X
LDX.b $06 LDX.b $06
LDA.w #$19EE : STA.l $7E2000, X LDA.w #$19EE : STA.l $7E2000, X
LDA.w #$99EE : STA.l $7E2080, X LDA.w #$99EE : STA.l $7E2080, X
LDA.w #$59EE : STA.l $7E2002, X LDA.w #$59EE : STA.l $7E2002, X
LDA.w #$D9EE : STA.l $7E2082, X LDA.w #$D9EE : STA.l $7E2082, X
AND.w #$03FF : TAX
AND.w #$03FF LDA.l $7EFE00,X : AND.w #$00FF
TAX STA.b $08 : STA.b $09
LDA.l $7EFE00,X
AND.w #$00FF
STA.b $08
STA.b $09
JMP replace_tile_continue JMP replace_tile_continue
} }

View File

@@ -19,8 +19,6 @@
org $068365 org $068365
JSL LinkItem_SecretsBook ; overwrite it (originally JSL $099F91) JSL LinkItem_SecretsBook ; overwrite it (originally JSL $099F91)
; =========================================================
pullpc pullpc
LinkItem_SecretsBook: LinkItem_SecretsBook:

View File

@@ -538,8 +538,6 @@ FloorIndicatorNumberHigh:
dw $E51C, $250E, $007F dw $E51C, $250E, $007F
} }
; ==========================================================
; $57CF6 DATA ; $57CF6 DATA
org $0AFCF6 org $0AFCF6
FloorIndicatorNumberLow: FloorIndicatorNumberLow:
@@ -548,8 +546,6 @@ FloorIndicatorNumberLow:
dw $E50C, $A50E, $007F dw $E50C, $A50E, $007F
} }
; ==========================================================
; *$57D0C-$57DA7 JUMP LOCATION (LONG) ; *$57D0C-$57DA7 JUMP LOCATION (LONG)
org $0AFD0C org $0AFD0C
FloorIndicator: FloorIndicator:

View File

@@ -1,12 +1,4 @@
; ========================================================= ; =========================================================
; Normal Overlays:
; Overworld_DrawQuadrantsAndOverlays
; -> ApplyOverworldOverlay
; Animated Entrances:
; Module09_00_PlayerControl
; -> Overworld_AnimateEntrance
; =========================================================
; Trigger Zora Temple from Tablet ; Trigger Zora Temple from Tablet
org $1EE061 org $1EE061

View File

@@ -47,8 +47,6 @@ Sprite_KydreeokHead_Long:
RTL RTL
} }
; =========================================================
Sprite_KydreeokHead_Prep: Sprite_KydreeokHead_Prep:
{ {
PHB : PHK : PLB PHB : PHK : PLB
@@ -59,8 +57,6 @@ Sprite_KydreeokHead_Prep:
RTL RTL
} }
; =========================================================
SpeedTable: SpeedTable:
db $00, $02, $04, $06, $07, $01, $06, $03 db $00, $02, $04, $06, $07, $01, $06, $03
db 0, -2, -4, -6, -7, -1, -6, -3 db 0, -2, -4, -6, -7, -1, -6, -3
@@ -219,8 +215,6 @@ KydreeokHead_RotationMove:
RTS RTS
} }
; =========================================================
CoordinateBasedRotation: CoordinateBasedRotation:
{ {
LDA.w Neck_Index : TAY LDA.w Neck_Index : TAY
@@ -238,20 +232,18 @@ CoordinateBasedRotation:
LDA #0 : STA.w Neck_Index LDA #0 : STA.w Neck_Index
.not_full .not_full
RTS RTS
; Table for X coordinates (based on a radius of 8)
X_Coords:
db 8, 11, 8, 3, -4, -9, -12, -9
db -4, 3, 8, 11, 8, 3, -4, -9
; Table for Y coordinates (based on a radius of 8)
Y_Coords:
db 0, -3, -8, -11, -15, -15, -11, -8
db -3, 0, 3, 8, 11, 15, 15, 11
} }
; Table for X coordinates (based on a radius of 8)
X_Coords:
db 8, 11, 8, 3, -4, -9, -12, -9
db -4, 3, 8, 11, 8, 3, -4, -9
; Table for Y coordinates (based on a radius of 8)
Y_Coords:
db 0, -3, -8, -11, -15, -15, -11, -8
db -3, 0, 3, 8, 11, 15, 15, 11
; =========================================================
RotateHeadUsingSpeedValues: RotateHeadUsingSpeedValues:
{ {
LDY.w Neck_Index LDY.w Neck_Index
@@ -284,8 +276,6 @@ RotateHeadUsingSpeedValues:
db -12, -9, -6, -3 db -12, -9, -6, -3
} }
; =========================================================
RandomlyAttack: RandomlyAttack:
{ {
JSL Sprite_DamageFlash_Long JSL Sprite_DamageFlash_Long