From 122c7fce8959af78179321eea1212d78644c425e Mon Sep 17 00:00:00 2001 From: jamesbrq Date: Wed, 25 Sep 2024 04:45:39 -0400 Subject: [PATCH] Update Rom.py --- worlds/gl/Rom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worlds/gl/Rom.py b/worlds/gl/Rom.py index d276dc1228ef..e28821a312b1 100644 --- a/worlds/gl/Rom.py +++ b/worlds/gl/Rom.py @@ -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)