forked from Roman971/OoT-Randomizer
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'Kak gate fix' (OoTRandomizer#2250)
# Conflicts: # ASM/build/asm_symbols.txt # ASM/build/bundle.o # ASM/build/c_symbols.txt # ASM/src/hacks.asm # data/generated/rom_patch.txt # data/generated/symbols.json
- Loading branch information
Showing
15 changed files
with
32,463 additions
and
32,385 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "z64.h" | ||
|
||
typedef struct BgGateShutter { | ||
/* 0x0000 */ DynaPolyActor dyna; | ||
/* 0x0154 */ void* actionFunc; | ||
/* 0x0158 */ int16_t openingState; // 1 if gate is opening | ||
/* 0x015C */ z64_xyzf_t somePos; | ||
/* 0x0168 */ int16_t unk_168; | ||
} BgGateShutter; // size = 0x016C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
; Check the new gate open flag instead of the master sword check | ||
; This happens after the zelda's letter check so it should only effect it when the setting is set to open | ||
; Put the flag into t9 because it will be checked against 0 when we return | ||
; we can use t8 | ||
bg_gate_shutter_open_hack: | ||
li t8, OPEN_KAKARIKO | ||
lb t8, 0x00(t8) ; read the value of the OPEN_KAKARIKO setting. If we set it to 2 then it's always open | ||
jr ra | ||
andi t9, t8, 0x02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
; Hacks in bg_gate_shutter (Kakariko Village Gate) | ||
|
||
.headersize(0x80A50A70 - 0xDD34B0) | ||
|
||
; Make the Kak gate open based on the setting. Removes the master sword check | ||
; In BgGateShutter_Init where it checks the master sword EVENTINF flag | ||
.org 0x80A50AF4 | ||
; Replaces | ||
; lhu t8, 0xedc(v1) | ||
; andi t9, t8, 0x20 | ||
jal bg_gate_shutter_open_hack | ||
nop | ||
|
||
|
||
;================================================================================================== | ||
; Speed Up Gate in Kakariko | ||
;================================================================================================== | ||
; gate opening x | ||
; Replaces: lui at, 0x4000 ;2.0f | ||
.orga 0x80A50C2C | ||
lui at, 0x40D0 ;6.5f | ||
|
||
; gate opening z | ||
; Replaces: lui a2, 0x3F4C | ||
; sub.s f8, f4, f6 | ||
; lui a3, 0x3E99 | ||
; ori a3, a3, 0x999A | ||
; ori a2, a2, 0xCCCD | ||
.orga 0x80A50C3C | ||
lui a2, 0x4000 | ||
sub.s f8, f4, f6 | ||
lui a3, 0x4000 | ||
nop | ||
nop | ||
|
||
; gate closing x | ||
; Replaces: lui at, 0x4000 ;2.0f | ||
.orga 0x80A50D04 | ||
lui at, 0x40D0 ;6.5f | ||
|
||
; gate closing z | ||
; Replaces: lui a2, 0x3F4C | ||
; add.s f8, f4, f6 | ||
; lui a3, 0x3E99 | ||
; ori a3, a3, 0x999A | ||
; ori a2, a2, 0xCCCD | ||
.orga 0x80A50D14 | ||
lui a2, 0x4000 | ||
add.s f8, f4, f6 | ||
lui a3, 0x4000 | ||
nop | ||
nop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.