summary refs log tree commit diff stats
path: root/test/TestDoors.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-03-03 02:20:37 -0500
committerGitHub <noreply@github.com>2024-03-03 08:20:37 +0100
commitfcb3b36f44a7d475aa49c5c44971a2b7cabc4ca8 (patch)
tree7098b5a4c05195383f50c0af4f8b262afecac7ba /test/TestDoors.py
parentaa22095508e85abe337951fa8ab85fbbfd37d93b (diff)
downloadlingo-apworld-fcb3b36f44a7d475aa49c5c44971a2b7cabc4ca8.tar.gz
lingo-apworld-fcb3b36f44a7d475aa49c5c44971a2b7cabc4ca8.tar.bz2
lingo-apworld-fcb3b36f44a7d475aa49c5c44971a2b7cabc4ca8.zip
Lingo: Add a third location to Starting Room (#2839)
Despite earlier efforts, there were still rare fill errors when door shuffle and color shuffle were on and early color hallways was off, because sphere 1 was too small. This turns "Starting Room - HI" back into a location, which should give the algorithm more room.

The "forced good item" pool has been reconsidered. The problem with the specific item that caused the recent failure (Welcome Back - Shortcut to Starting Room) is that it only provided one location when color shuffle was on, which is a net of zero considering that the GOOD LUCK check was forced. It will no longer show up as a good item unless color shuffle is off. On an opposite vein, Rhyme Room Doors will now show up even if color shuffle is on, because it gives color hallways access by itself.

A good item will only be forced onto GOOD LUCK now if there is more than one player.
Diffstat (limited to 'test/TestDoors.py')
-rw-r--r--test/TestDoors.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/TestDoors.py b/test/TestDoors.py index 49a0f9c..f496c5f 100644 --- a/test/TestDoors.py +++ b/test/TestDoors.py
@@ -8,8 +8,6 @@ class TestRequiredRoomLogic(LingoTestBase):
8 } 8 }
9 9
10 def test_pilgrim_first(self) -> None: 10 def test_pilgrim_first(self) -> None:
11 self.remove_forced_good_item()
12
13 self.assertFalse(self.multiworld.state.can_reach("The Seeker", "Region", self.player)) 11 self.assertFalse(self.multiworld.state.can_reach("The Seeker", "Region", self.player))
14 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Antechamber", "Region", self.player)) 12 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Antechamber", "Region", self.player))
15 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Room", "Region", self.player)) 13 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Room", "Region", self.player))
@@ -30,8 +28,6 @@ class TestRequiredRoomLogic(LingoTestBase):
30 self.assertTrue(self.can_reach_location("The Seeker - Achievement")) 28 self.assertTrue(self.can_reach_location("The Seeker - Achievement"))
31 29
32 def test_hidden_first(self) -> None: 30 def test_hidden_first(self) -> None:
33 self.remove_forced_good_item()
34
35 self.assertFalse(self.multiworld.state.can_reach("The Seeker", "Region", self.player)) 31 self.assertFalse(self.multiworld.state.can_reach("The Seeker", "Region", self.player))
36 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Room", "Region", self.player)) 32 self.assertFalse(self.multiworld.state.can_reach("Pilgrim Room", "Region", self.player))
37 self.assertFalse(self.can_reach_location("The Seeker - Achievement")) 33 self.assertFalse(self.can_reach_location("The Seeker - Achievement"))
@@ -59,8 +55,6 @@ class TestRequiredDoorLogic(LingoTestBase):
59 } 55 }
60 56
61 def test_through_rhyme(self) -> None: 57 def test_through_rhyme(self) -> None:
62 self.remove_forced_good_item()
63
64 self.assertFalse(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall")) 58 self.assertFalse(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall"))
65 59
66 self.collect_by_name("Starting Room - Rhyme Room Entrance") 60 self.collect_by_name("Starting Room - Rhyme Room Entrance")
@@ -70,8 +64,6 @@ class TestRequiredDoorLogic(LingoTestBase):
70 self.assertTrue(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall")) 64 self.assertTrue(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall"))
71 65
72 def test_through_hidden(self) -> None: 66 def test_through_hidden(self) -> None:
73 self.remove_forced_good_item()
74
75 self.assertFalse(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall")) 67 self.assertFalse(self.can_reach_location("Rhyme Room - Circle/Looped Square Wall"))
76 68
77 self.collect_by_name("Starting Room - Rhyme Room Entrance") 69 self.collect_by_name("Starting Room - Rhyme Room Entrance")
@@ -91,8 +83,6 @@ class TestSimpleDoors(LingoTestBase):
91 } 83 }
92 84
93 def test_requirement(self): 85 def test_requirement(self):
94 self.remove_forced_good_item()
95
96 self.assertFalse(self.multiworld.state.can_reach("Outside The Wanderer", "Region", self.player)) 86 self.assertFalse(self.multiworld.state.can_reach("Outside The Wanderer", "Region", self.player))
97 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player)) 87 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player))
98 88