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
; m - Misery Mire
; t - Turtle Rock
CRYSTALS = $7EF37A
Crystals = $7EF37A
; 0x00 - Normal magic
; 0x01 - Half magic

View File

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

View File

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

View File

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

View File

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

View File

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