Skip to content

Commit

Permalink
actually make the apworld 0.5.0 compatible lol
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Aug 30, 2024
1 parent 0c590d6 commit aa8f2a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion worlds/witness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def create_regions(self) -> None:
# Only sweeps for events because having this behavior be random based on Tutorial Gate would be strange.

state = CollectionState(self.multiworld)
state.sweep_for_advancements(locations=event_locations)
state.sweep_for_events(locations=event_locations)

num_early_locs = sum(
1 for loc in self.multiworld.get_reachable_locations(state, self.player)
Expand Down
4 changes: 2 additions & 2 deletions worlds/witness/test/test_panel_hunt.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_correct_panels_were_picked(self) -> None:

for _ in range(100):
state_100.collect(panel_hunt_item, True)
state_100.sweep_for_advancements([self.world.get_location("Tutorial Gate Open Solved")])
state_100.sweep_for_events([self.world.get_location("Tutorial Gate Open Solved")])

self.assertTrue(self.multiworld.completion_condition[self.player](state_100))

Expand All @@ -34,7 +34,7 @@ def test_correct_panels_were_picked(self) -> None:

for _ in range(99):
state_99.collect(panel_hunt_item, True)
state_99.sweep_for_advancements([self.world.get_location("Tutorial Gate Open Solved")])
state_99.sweep_for_events([self.world.get_location("Tutorial Gate Open Solved")])

self.assertFalse(self.multiworld.completion_condition[self.player](state_99))

Expand Down

0 comments on commit aa8f2a9

Please sign in to comment.