Lingo: Add pilgrimage logic through Starting Room (#3654)
* Lingo: Add pilgrimage logic through Starting Room * Added unit test * Reverse order of two doors in unit test * Remove print statements from TestPilgrimage * Update generated.dat
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							9c2933f803
						
					
				
				
					commit
					5188375736
				
			@@ -140,6 +140,15 @@
 | 
				
			|||||||
        painting: True
 | 
					        painting: True
 | 
				
			||||||
      The Colorful:
 | 
					      The Colorful:
 | 
				
			||||||
        painting: True
 | 
					        painting: True
 | 
				
			||||||
 | 
					      Welcome Back Area:
 | 
				
			||||||
 | 
					        room: Welcome Back Area
 | 
				
			||||||
 | 
					        door: Shortcut to Starting Room
 | 
				
			||||||
 | 
					      Second Room:
 | 
				
			||||||
 | 
					        door: Main Door
 | 
				
			||||||
 | 
					      Hidden Room:
 | 
				
			||||||
 | 
					        door: Back Right Door
 | 
				
			||||||
 | 
					      Rhyme Room (Looped Square):
 | 
				
			||||||
 | 
					        door: Rhyme Room Entrance
 | 
				
			||||||
    panels:
 | 
					    panels:
 | 
				
			||||||
      HI:
 | 
					      HI:
 | 
				
			||||||
        id: Entry Room/Panel_hi_hi
 | 
					        id: Entry Room/Panel_hi_hi
 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							@@ -29,7 +29,6 @@ class TestPilgrimageWithRoofAndPaintings(LingoTestBase):
 | 
				
			|||||||
                 "Outside The Undeterred - Green Painting"]
 | 
					                 "Outside The Undeterred - Green Painting"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for door in doors:
 | 
					        for door in doors:
 | 
				
			||||||
            print(door)
 | 
					 | 
				
			||||||
            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
					            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
            self.collect_by_name(door)
 | 
					            self.collect_by_name(door)
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
@@ -53,7 +52,6 @@ class TestPilgrimageNoRoofYesPaintings(LingoTestBase):
 | 
				
			|||||||
                 "Starting Room - Street Painting"]
 | 
					                 "Starting Room - Street Painting"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for door in doors:
 | 
					        for door in doors:
 | 
				
			||||||
            print(door)
 | 
					 | 
				
			||||||
            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
					            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
            self.collect_by_name(door)
 | 
					            self.collect_by_name(door)
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
@@ -81,7 +79,34 @@ class TestPilgrimageNoRoofNoPaintings(LingoTestBase):
 | 
				
			|||||||
                 "Orange Tower Fourth Floor - Hot Crusts Door"]
 | 
					                 "Orange Tower Fourth Floor - Hot Crusts Door"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for door in doors:
 | 
					        for door in doors:
 | 
				
			||||||
            print(door)
 | 
					            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
 | 
					            self.collect_by_name(door)
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class TestPilgrimageRequireStartingRoom(LingoTestBase):
 | 
				
			||||||
 | 
					    options = {
 | 
				
			||||||
 | 
					        "enable_pilgrimage": "true",
 | 
				
			||||||
 | 
					        "shuffle_colors": "false",
 | 
				
			||||||
 | 
					        "shuffle_doors": "complex",
 | 
				
			||||||
 | 
					        "pilgrimage_allows_roof_access": "false",
 | 
				
			||||||
 | 
					        "pilgrimage_allows_paintings": "false",
 | 
				
			||||||
 | 
					        "early_color_hallways": "false"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_access(self):
 | 
				
			||||||
 | 
					        doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
 | 
				
			||||||
 | 
					                 "Outside The Undeterred - Green Painting", "Outside The Undeterred - Number Hunt",
 | 
				
			||||||
 | 
					                 "Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room",
 | 
				
			||||||
 | 
					                 "Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door",
 | 
				
			||||||
 | 
					                 "Color Hunt - Shortcut to The Steady", "The Bearer - Entrance",
 | 
				
			||||||
 | 
					                 "Orange Tower Fifth Floor - Quadruple Intersection", "The Tenacious - Shortcut to Hub Room",
 | 
				
			||||||
 | 
					                 "Outside The Agreeable - Tenacious Entrance", "Crossroads - Tower Entrance",
 | 
				
			||||||
 | 
					                 "Orange Tower Fourth Floor - Hot Crusts Door", "Challenge Room - Welcome Door",
 | 
				
			||||||
 | 
					                 "Number Hunt - Challenge Entrance", "Welcome Back Area - Shortcut to Starting Room"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        for door in doors:
 | 
				
			||||||
            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
					            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
            self.collect_by_name(door)
 | 
					            self.collect_by_name(door)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -107,7 +132,6 @@ class TestPilgrimageYesRoofNoPaintings(LingoTestBase):
 | 
				
			|||||||
                 "Orange Tower Fifth Floor - Quadruple Intersection"]
 | 
					                 "Orange Tower Fifth Floor - Quadruple Intersection"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for door in doors:
 | 
					        for door in doors:
 | 
				
			||||||
            print(door)
 | 
					 | 
				
			||||||
            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
					            self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
 | 
				
			||||||
            self.collect_by_name(door)
 | 
					            self.collect_by_name(door)
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user