Restoring some native dungeon item behavior for glitched modes

Also fixes issues with HC BK (item collection in other dungeons, acting like a small key on BnC)
This commit is contained in:
codemann8
2025-01-02 03:41:42 -06:00
parent 8a9df7a8ef
commit b7437fa9fd
3 changed files with 7 additions and 1 deletions

View File

@@ -558,6 +558,10 @@ class Sprite(object):
if self.location is not None:
item_id = self.location.item.code if self.location.item is not None else 0x5A
code = 0xF9 if self.location.item.player != self.location.player else 0xF8
if code == 0xF8:
world = self.location.parent_region.world
if world.dropshuffle[self.location.player] == 'none' or self.location.locked:
item_id = handle_native_dungeon(self.location, item_id)
data.append(item_id)
data.append(0 if code == 0xF8 else self.location.item.player)
data.append(code)