mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
The Messenger: fix generation failure for no portal shuffle with 3 available portals (#3200)
This commit is contained in:
@@ -155,6 +155,7 @@ class MessengerWorld(World):
|
|||||||
self.starting_portals.append("Searing Crags Portal")
|
self.starting_portals.append("Searing Crags Portal")
|
||||||
portals_to_strip = [portal for portal in ["Riviere Turquoise Portal", "Sunken Shrine Portal"]
|
portals_to_strip = [portal for portal in ["Riviere Turquoise Portal", "Sunken Shrine Portal"]
|
||||||
if portal in self.starting_portals]
|
if portal in self.starting_portals]
|
||||||
|
if portals_to_strip:
|
||||||
self.starting_portals.remove(self.random.choice(portals_to_strip))
|
self.starting_portals.remove(self.random.choice(portals_to_strip))
|
||||||
|
|
||||||
self.filler = FILLER.copy()
|
self.filler = FILLER.copy()
|
||||||
|
@@ -4,6 +4,10 @@ from ..portals import PORTALS
|
|||||||
|
|
||||||
|
|
||||||
class PortalTestBase(MessengerTestBase):
|
class PortalTestBase(MessengerTestBase):
|
||||||
|
options = {
|
||||||
|
"available_portals": 3,
|
||||||
|
}
|
||||||
|
|
||||||
def test_portal_reqs(self) -> None:
|
def test_portal_reqs(self) -> None:
|
||||||
"""tests the paths to open a portal if only that portal is closed with vanilla connections."""
|
"""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
|
# portal and requirements to reach it if it's the only closed portal
|
||||||
|
Reference in New Issue
Block a user