Skip to content

Commit ce53b35

Browse files
committed
Merge 'Increase y spawn coordinate of dead hand to avoid spawning out of bounds' (#2497)
2 parents 30c52e9 + c60f0c3 commit ce53b35

11 files changed

Lines changed: 5084 additions & 5062 deletions

File tree

ASM/build/asm_symbols.txt

Lines changed: 281 additions & 281 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/build/bundle.o

96 Bytes
Binary file not shown.

ASM/build/c_symbols.txt

Lines changed: 171 additions & 171 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ASM/c/debug.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ room_t water_rooms[] = {
9191

9292
room_t shadow_rooms[] = {
9393
{ 0x37, 2, { -254, -63, 594 }, 32768, "Entrance"},
94+
{ 0x37, 4, { -2141, -63, -394 }, 49152, "Dead Hand"},
9495
{ 0x37, 8, { 4164, -983, 1366 }, 49152, "Before huge room"},
9596
{ 0x37, 16, { 4677, -1143, 2474 }, 32768, "Invisible scythes"},
9697
{ 0x37, 10, { 1227, -1343, 3853 }, 49152, "Stone umbrella"},
@@ -110,6 +111,7 @@ room_t spirit_rooms[] = {
110111

111112
room_t botw_rooms[] = {
112113
{ 0x98, 0, { 0, -12, 117 }, 32768, "Main room Entrance"},
114+
{ 0x98, 4, { 991, -20, 207 }, 16384, "Dead Hand"},
113115
{ 0x98, 2, { -1650, 0, -739 }, 49152, "Coffin room"},
114116
{ 0x98, 3, { 1140, 0, -1339 }, 0, "Beamos room"},
115117
};
@@ -151,7 +153,7 @@ room_t ganon_rooms[] = {
151153
rooms_t dungeon_rooms[13] = {
152154
{6, deku_rooms}, {4, dc_rooms}, {3, jabu_rooms},
153155
{6, forest_rooms}, {7, fire_rooms}, {6, water_rooms},
154-
{7, shadow_rooms}, {6, spirit_rooms}, {3, botw_rooms},
156+
{8, shadow_rooms}, {6, spirit_rooms}, {4, botw_rooms},
155157
{5, ice_rooms}, {4, hideout_rooms}, {6, gtg_rooms}, {7, ganon_rooms},
156158
};
157159

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* Fix the texture of the rotated Forest Temple boss key chest when `Chest Appearance Matches Content` is off.
2828
* Misc. location hints no longer prevent their area from being hinted as Barren.
2929
* Fix a generator failure when a `named_items_required` Named Item hint conflicts with a misc. location hint.
30+
* Prevent another case of Dead Hand spawning outside the room collision.
3031

3132
## Other changes
3233
* Big poe souls can now be collected while riding Epona.

Patches.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,13 +1795,16 @@ def update_scrub_text(message: bytearray, text_replacement: list[str], default_p
17951795

17961796
# Fix Dead Hand spawn coordinates in vanilla shadow temple and bottom of the well to be the exact centre of the room
17971797
# This prevents the extremely small possibility of Dead Hand spawning outside of collision
1798+
# He can still spawn outside of the room if the xz spawn rolls in the specific corner of the room where there is rubble, so
1799+
# also elevate its y coordinate. This way, Dead Hand will correctly be projected down at the ground for all possible values.
17981800
if not world.dungeon_mq['Shadow Temple']:
1799-
rom.write_int16(0x27DC0AE, 0xF67E) # x-coordinate spawn in shadow temple
1800-
rom.write_int16(0x27DC0B2, 0xFE6B) # z-coordinate spawn in shadow temple
1801+
rom.write_int16(0x27DC0AE, 0xF67E) # x-coordinate spawn in shadow temple, original value is -2424
1802+
rom.write_int16(0x27DC0B0, 0x0003) # y-coordinate spawn in shadow temple, original value is -63
1803+
rom.write_int16(0x27DC0B2, 0xFE6B) # z-coordinate spawn in shadow temple, original value is -413
18011804
if not world.dungeon_mq['Bottom of the Well']:
1802-
rom.write_int16(0x32FB08E, 0x0500) # x-coordinate spawn in bottom of the well
1803-
rom.write_int16(0x32FB092, 0x00D2) # z-coordinate spawn in bottom of the well
1804-
1805+
rom.write_int16(0x32FB08E, 0x0500) # x-coordinate spawn in bottom of the well, original value is 1276
1806+
rom.write_int16(0x32FB090, 0x0032) # y-coordinate spawn in bottom of the well, original value is -16
1807+
rom.write_int16(0x32FB092, 0x00D2) # z-coordinate spawn in bottom of the well, original value is 209
18051808
# update happy mask shop to use new SOLD OUT text id
18061809
rom.write_int16(shop_item_file.start + 0x1726, shop_items[0x26].description_message)
18071810

data/generated/patch_symbols.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)