Fix song of storm rain bug, rearrange item space

This commit is contained in:
scawful
2024-02-24 09:16:27 -05:00
parent 5d3c3001ad
commit 97dde9329b
4 changed files with 42 additions and 19 deletions

View File

@@ -12,11 +12,7 @@ print "End of Items/ice_rod.asm ", pc
; Starts Expanded Bank 0x2B ; Starts Expanded Bank 0x2B
incsrc "Items/jump_feather.asm" incsrc "Items/jump_feather.asm"
incsrc "Items/book_of_secrets.asm" incsrc "Items/book_of_secrets.asm"
incsrc "Items/portal_rod.asm"
incsrc "Items/sword_collect.asm" incsrc "Items/sword_collect.asm"
incsrc "Items/goldstar.asm" incsrc "Items/goldstar.asm"
incsrc "Items/portal_rod.asm"
incsrc "Items/fishing_rod.asm" incsrc "Items/fishing_rod.asm"
print "End of Items/sword_collect.asm ", pc

View File

@@ -4,12 +4,10 @@
; ;
; $22XXXX - Denotes the source address from all in patch ; $22XXXX - Denotes the source address from all in patch
pushpc
org $07D576 org $07D576
Hookshot_CheckTileCollision: Hookshot_CheckTileCollision:
org $348000 pullpc
TransferGFXinRAM: TransferGFXinRAM:
{ {
PHX ; keep X PHX ; keep X
@@ -29,6 +27,7 @@ TransferGFXinRAM:
.morningstargfx .morningstargfx
incbin morningstar.bin incbin morningstar.bin
} }
pushpc
; OAM Draw Pattern for spikeball gfx ; OAM Draw Pattern for spikeball gfx
org $0085C4 org $0085C4

View File

@@ -51,7 +51,8 @@ Song_of_Healing:
!Storms_Params2 = $3C !Storms_Params2 = $3C
; SFX1_18 ; SFX1_18
org $1A8F93 ; org $1A92F7
org $1A92F7 ; SFX2_2F
Song_of_Storms: Song_of_Storms:
{ {
db $E0, $0D ; set sfx instrument - twee db $E0, $0D ; set sfx instrument - twee
@@ -86,7 +87,7 @@ Song_of_Storms:
db $00 ; end sfx db $00 ; end sfx
} }
warnpc $1A8FD4 ; warnpc $1A8FD4
; ========================================================= ; =========================================================
org $07A3DB org $07A3DB
@@ -133,7 +134,8 @@ LinkItem_NewFlute:
.song_of_storms .song_of_storms
; Play the Song of Storms SFX ; Play the Song of Storms SFX
LDA.b #$18 : JSR Player_DoSfx1 ; LDA.b #$18 : JSR Player_DoSfx1
LDA.b #$2F : JSR Player_DoSfx2
JSL OcarinaEffect_SummonStorms JSL OcarinaEffect_SummonStorms
RTS RTS
@@ -266,7 +268,6 @@ OcarinaEffect_SummonStorms:
RTL RTL
.summonStorms .summonStorms
; LDA #$16 : STA $11
LDA #$9F : STA $8C LDA #$9F : STA $8C
LDA.b #$01 : STA.b $1D LDA.b #$01 : STA.b $1D
LDA.b #$72 : STA.b $9A LDA.b #$72 : STA.b $9A
@@ -274,25 +275,50 @@ OcarinaEffect_SummonStorms:
RTL RTL
} }
PlayThunderAndRain:
{
LDA.b #$01 : STA $012D
LDX.b #$36 : STX.w $012E
RTL
}
CheckRealTable: CheckRealTable:
{ {
LDA $7EE00E : CMP #$00 : BEQ .continue LDA $7EE00E : CMP #$00 : BEQ .continue
JML $02A4CD+12 ; Jump to rain sound effect JML RainAnimation_Overridden_rainOverlaySet
.continue .continue
LDA #$05 : STA $012D
LDA.b $8A : ASL : TAX LDA.b $8A : ASL : TAX
LDA.l Pool_OverlayTable, X LDA.l Pool_OverlayTable, X
CMP.b #$9F : BEQ .summonStorms CMP.b #$9F : BNE .not_rain_area
RTL RTL
.summonStorms .not_rain_area
JML RainAnimation_Overridden_rainOverlaySet
JML RainAnimation_Overridden_skipMovement
}
ResetOcarinaFlag:
{
REP #$30
LDA #$0000 : STA.l $7EE00E
SEP #$30
LDA.w $0416 : ASL A
RTL
}
org $02F210
{
JSL ResetOcarinaFlag
} }
; ZS OW ; ZS OW
org $02A4CD org $02A4CD
RainAnimation_Overridden: RainAnimation_Overridden:
{ {
JSL CheckRealTable JSL CheckRealTable : BEQ .rainOverlaySet
LDA.b $8C : CMP.b #$9F : BEQ .rainOverlaySet ; LDA.b $8C : CMP.b #$9F :
; Check the progress indicator ; Check the progress indicator
LDA.l $7EF3C5 : CMP.b #$02 : BRA .skipMovement LDA.l $7EF3C5 : CMP.b #$02 : BRA .skipMovement
.rainOverlaySet .rainOverlaySet
@@ -320,7 +346,8 @@ RainAnimation_Overridden:
.thunder .thunder
; Play the thunder sound when outdoors. ; Play the thunder sound when outdoors.
LDX.b #$36 : STX.w $012E ;LDX.b #$36 : STX.w $012E
JSL PlayThunderAndRain
.lightning .lightning

View File

@@ -75,3 +75,4 @@ collectSword:
PLY PLY
RTL RTL
} }
pushpc