Skip to content

Commit

Permalink
Update Rom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq committed Sep 25, 2024
1 parent 2874b1f commit 122c7fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/gl/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ def patch_items(caller: APProcedurePatch, rom: bytes):
data.chests_replaced_by_items += 1
else:
if chest_barrel(location_name):
data.chests[j - (len(data.items) + data.items_replaced_by_obelisks + data.chests_replaced_by_obelisks)][12:13] = item_dict[item[0]]
data.chests[j - (len(data.items) + data.items_replaced_by_obelisks + data.chests_replaced_by_obelisks)][12:14] = item_dict[item[0]]
if "Chest" in location_name:
data.chests[j - (len(data.items) + data.items_replaced_by_obelisks + data.chests_replaced_by_obelisks)][9] = 0x2
else:
data.items[j - data.items_replaced_by_obelisks][6:7] = item_dict[item[0]]
data.items[j - data.items_replaced_by_obelisks][6:8] = item_dict[item[0]]
uncompressed = level_data_reformat(data)
compressed = zenc(uncompressed)
stream.seek(level_header[i] + 4, 0)
Expand Down

0 comments on commit 122c7fc

Please sign in to comment.