Compare commits

...

2 Commits

Author SHA1 Message Date
Fabian Dill
ebbfc70c56 remove parenthesis that I'm pretty sure I didn't manually add 2023-11-06 05:19:18 +01:00
Fabian Dill
972ef7d829 Core: check that only unsendable items are on unsendable locations 2023-11-06 05:11:40 +01:00
3 changed files with 4 additions and 1 deletions

View File

@@ -363,6 +363,9 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
elif any([location.item.name in world.worlds[player].options.start_hints
for player in world.groups.get(location.item.player, {}).get("players", [])]):
precollect_hint(location)
elif __debug__ and location.item.code is not None:
raise Exception(f"Intended to be sendable item {location.item}, "
f"was placed on never sendable location {location} of {location.game}.")
# embedded data package
data_package = {

View File

@@ -313,6 +313,7 @@ def generate_itempool(world):
for location_name, event_name in event_pairs:
location = multiworld.get_location(location_name, player)
event = ItemFactory(event_name, player)
event.code = None
multiworld.push_item(location, event, False)
location.event = location.locked = True

View File

@@ -447,7 +447,6 @@ def mark_light_world_regions(world, player: int):
queue.append(exit.connected_region)
old_location_address_to_new_location_address = {
0x2eb18: 0x18001b, # Bottle Merchant
0x33d68: 0x18001a, # Purple Chest