Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,552 changes: 779 additions & 773 deletions ASM/build/asm_symbols.txt

Large diffs are not rendered by default.

Binary file modified ASM/build/bundle.o
Binary file not shown.
1,449 changes: 727 additions & 722 deletions ASM/build/c_symbols.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ASM/src/build.asm
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ RANDO_CONTEXT:
.include "en_dns.asm"
.include "bg_gate_shutter.asm"
.include "big_poe.asm"
.include "kaleido_gameoverfillmagic.asm"
.include "player_laddercutscenefix.asm"

.align 0x10
Expand Down
1 change: 1 addition & 0 deletions ASM/src/hacks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4162,3 +4162,4 @@ DemoEffect_DrawJewel_AfterHook:
.include "hacks/ovl_en_okarina_tag.asm"
.include "hacks/sound.asm"
.include "hacks/z_player.asm"
.include "hacks/ovl_kaleido_scope.asm"
13 changes: 13 additions & 0 deletions ASM/src/hacks/ovl_kaleido_scope.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.headersize (0x808137c0 - 0x00bb11e0)

; Prevent magicFillTarget from getting overwritten if dying
; during refill (game over respawn)
; Replaces: lb t7,51(t1)
; sh zero,5156(t1)
; sh zero,5104(t1)
; sh zero,5106(t1)
.org 0x80828890 ; in KaleidoScope_Update
jal Kaleido_GameOverFillMagic
lb t7,51(t1) ; displaced
bnez v0,0x808288a8 ; skip zero fill target
sh zero,5106(t1)
16 changes: 16 additions & 0 deletions ASM/src/kaleido_gameoverfillmagic.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Kaleido_GameOverFillMagic:
sh zero,5156(t1) ; displaced
lh t6,5104(t1) ; magic state
li at,9 ; If current magic state is FILL
beq at,t6,@@PreserveFill
li at,8 ; or STEP_CAPACITY
beq at,t6,@@PreserveFill ; preserve current fill target
lh at,50(t1) ; If current magic level is zero,
bnezl at,@@Return ; also preserve fill target
move v0,zero ; Else - zero fill target in caller
@@PreserveFill:
sh zero,5108(t1) ; Preserve fill target: set zero capacity here
li v0,1 ; and skip zero fill target in caller
@@Return:
jr ra
sh zero,5104(t1) ; displaced
2 changes: 1 addition & 1 deletion data/generated/patch_symbols.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading