The Messenger: fix generation failure for no portal shuffle with 3 available portals (#3200)

This commit is contained in:
Aaron Wagener 2024-05-17 03:18:50 -05:00 committed by GitHub
parent 88dd27eb3a
commit 2447be92d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -155,6 +155,7 @@ class MessengerWorld(World):
self.starting_portals.append("Searing Crags Portal")
portals_to_strip = [portal for portal in ["Riviere Turquoise Portal", "Sunken Shrine Portal"]
if portal in self.starting_portals]
if portals_to_strip:
self.starting_portals.remove(self.random.choice(portals_to_strip))
self.filler = FILLER.copy()

View File

@ -4,6 +4,10 @@ from ..portals import PORTALS
class PortalTestBase(MessengerTestBase):
options = {
"available_portals": 3,
}
def test_portal_reqs(self) -> None:
"""tests the paths to open a portal if only that portal is closed with vanilla connections."""
# portal and requirements to reach it if it's the only closed portal