Skip to content

Commit

Permalink
Move event creation earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Sep 7, 2023
1 parent d46a551 commit 5025445
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions worlds/witness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ def create_regions(self):

set_rules(self.multiworld, self.player, self.player_logic, self.locat)

# Add event items and tie them to event locations (e.g. laser activations).

for event_location in self.locat.EVENT_LOCATION_TABLE:
item_obj = self.create_item(
self.player_logic.EVENT_ITEM_PAIRS[event_location]
)
location_obj = self.multiworld.get_location(event_location, self.player)
location_obj.place_locked_item(item_obj)

# There are some really restrictive settings in The Witness.
# They are rarely played, but when they are, we add some extra sphere 1 locations.
# This is done both to prevent generation failures, but also to make the early game less linear.
Expand Down Expand Up @@ -183,14 +192,6 @@ def create_items(self):
if remaining_item_slots > 0:
item_pool.update(self.items.get_filler_items(remaining_item_slots))

# Add event items and tie them to event locations (e.g. laser activations).
for event_location in self.locat.EVENT_LOCATION_TABLE:
item_obj = self.create_item(
self.player_logic.EVENT_ITEM_PAIRS[event_location]
)
location_obj = self.multiworld.get_location(event_location, self.player)
location_obj.place_locked_item(item_obj)

# BAD DOG GET BACK HERE WITH THAT PUZZLE SKIP YOU'RE POLLUTING THE ITEM POOL
self.multiworld.get_location("Town Pet the Dog", self.player)\
.place_locked_item(self.create_item("Puzzle Skip"))
Expand Down

0 comments on commit 5025445

Please sign in to comment.