The Messenger: Add more difficult logic options (#1550)

This commit is contained in:
alwaysintreble
2023-03-21 15:21:27 -05:00
committed by GitHub
parent 91502505a1
commit 1c69fb3c3c
9 changed files with 277 additions and 50 deletions

View File

@@ -199,11 +199,15 @@ class WorldTestBase(unittest.TestCase):
self.collect_all_but(all_items)
for location in self.multiworld.get_locations():
self.assertEqual(self.multiworld.state.can_reach(location), location.name not in locations)
loc_reachable = self.multiworld.state.can_reach(location)
self.assertEqual(loc_reachable, location.name not in locations,
f"{location.name} is reachable without {all_items}" if loc_reachable
else f"{location.name} is not reachable without {all_items}")
for item_names in possible_items:
items = self.collect_by_name(item_names)
for location in locations:
self.assertTrue(self.can_reach_location(location))
self.assertTrue(self.can_reach_location(location),
f"{location} not reachable with {item_names}")
self.remove(items)
def assertBeatable(self, beatable: bool):