The Messenger: fix generation failure for no portal shuffle with 3 available portals (#3200)
This commit is contained in:
parent
88dd27eb3a
commit
2447be92d8
|
@ -155,7 +155,8 @@ 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]
|
||||
self.starting_portals.remove(self.random.choice(portals_to_strip))
|
||||
if portals_to_strip:
|
||||
self.starting_portals.remove(self.random.choice(portals_to_strip))
|
||||
|
||||
self.filler = FILLER.copy()
|
||||
if self.options.traps:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue