SMZ3: KeyTH check fix (#2574)

This commit is contained in:
lordlou 2023-12-10 13:07:56 -05:00 committed by GitHub
parent 6b0eb7da79
commit 6cd5abdc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ class Patch:
def WriteZ3Locations(self, locations: List[Location]): def WriteZ3Locations(self, locations: List[Location]):
for location in locations: for location in locations:
if (location.Type == LocationType.HeraStandingKey): if (location.Type == LocationType.HeraStandingKey):
self.patches.append((Snes(0x9E3BB), [0xE4] if location.APLocation.item.game == "SMZ3" and location.APLocation.item.item.Type == ItemType.KeyTH else [0xEB])) self.patches.append((Snes(0x9E3BB), [0xEB]))
elif (location.Type in [LocationType.Pedestal, LocationType.Ether, LocationType.Bombos]): elif (location.Type in [LocationType.Pedestal, LocationType.Ether, LocationType.Bombos]):
text = Texts.ItemTextbox(location.APLocation.item.item if location.APLocation.item.game == "SMZ3" else Item(ItemType.Something)) text = Texts.ItemTextbox(location.APLocation.item.item if location.APLocation.item.game == "SMZ3" else Item(ItemType.Something))
if (location.Type == LocationType.Pedestal): if (location.Type == LocationType.Pedestal):