2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								from  . . generic . Rules  import  add_rule  
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								from  . Regions  import  connect_regions ,  sm64courses  
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 19:10:08 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								def  set_rules ( world ,  player :  int ,  area_connections ) :  
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    courseshuffle  =  list ( range ( len ( sm64courses ) ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    if  world . AreaRandomizer [ player ] : 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        world . random . shuffle ( courseshuffle ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    area_connections . update ( { index :  value  for  index ,  value  in  enumerate ( courseshuffle ) } ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 19:10:08 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  sm64courses [ area_connections [ 0 ] ] ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  sm64courses [ area_connections [ 1 ] ] ,  lambda  state :  state . has ( " Power Star " ,  player ,  1 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  sm64courses [ area_connections [ 2 ] ] ,  lambda  state :  state . has ( " Power Star " ,  player ,  3 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  sm64courses [ area_connections [ 3 ] ] ,  lambda  state :  state . has ( " Power Star " ,  player ,  3 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  " Bowser in the Dark World " ,  lambda  state :  state . has ( " Power Star " ,  player ,  8 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  sm64courses [ area_connections [ 4 ] ] ,  lambda  state :  state . has ( " Power Star " ,  player ,  12 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  " Basement " ,  lambda  state :  state . has ( " Basement Key " ,  player )  or  state . has ( " Progressive Key " ,  player ,  1 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 19:10:08 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Basement " ,  sm64courses [ area_connections [ 5 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Basement " ,  sm64courses [ area_connections [ 6 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Basement " ,  sm64courses [ area_connections [ 7 ] ] ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Basement " ,  sm64courses [ area_connections [ 8 ] ] ,  lambda  state :  state . has ( " Power Star " ,  player ,  30 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Basement " ,  " Bowser in the Fire Sea " ,  lambda  state :  state . has ( " Power Star " ,  player ,  30 )  and 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                                                                       state . can_reach ( " DDD: Board Bowser ' s Sub " ,  ' Location ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Menu " ,  " Second Floor " ,  lambda  state :  state . has ( " Second Floor Key " ,  player )  or  state . has ( " Progressive Key " ,  player ,  2 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 19:10:08 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Second Floor " ,  sm64courses [ area_connections [ 9 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Second Floor " ,  sm64courses [ area_connections [ 10 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Second Floor " ,  sm64courses [ area_connections [ 11 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Second Floor " ,  sm64courses [ area_connections [ 12 ] ] ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Second Floor " ,  " Third Floor " ,  lambda  state :  state . has ( " Power Star " ,  player ,  50 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-20 19:10:08 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Third Floor " ,  sm64courses [ area_connections [ 13 ] ] ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    connect_regions ( world ,  player ,  " Third Floor " ,  sm64courses [ area_connections [ 14 ] ] ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    #Special Rules for some Locations 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Tower of the Wing Cap Switch " ,  player ) ,  lambda  state :  state . has ( " Power Star " ,  player ,  10 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Cavern of the Metal Cap Switch " ,  player ) ,  lambda  state :  state . can_reach ( " Hazy Maze Cave " ,  ' Region ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Vanish Cap Under the Moat Switch " ,  player ) ,  lambda  state :  state . can_reach ( " Basement " ,  ' Region ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " BoB: Mario Wings to the Sky " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock BoB " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " BBH: Eye to Eye in the Secret Room " ,  player ) ,  lambda  state :  state . has ( " Vanish Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " DDD: Collect the Caps... " ,  player ) ,  lambda  state :  state . has ( " Vanish Cap " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " DDD: Pole-Jumping for Red Coins " ,  player ) ,  lambda  state :  state . can_reach ( " Bowser in the Fire Sea " ,  ' Region ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " SL: Into the Igloo " ,  player ) ,  lambda  state :  state . has ( " Vanish Cap " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " WDW: Quick Race Through Downtown! " ,  player ) ,  lambda  state :  state . has ( " Vanish Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " RR: Somewhere Over the Rainbow " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock RR " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    if  world . AreaRandomizer [ player ]  or  world . StrictCannonRequirements [ player ] : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        # If area rando is on, it may not be possible to modify WDW's starting water level, 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        # which would make it impossible to reach downtown area without the cannon. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " WDW: Quick Race Through Downtown! " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock WDW " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " WDW: Go to Town for Red Coins " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock WDW " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    if  world . StrictCapRequirements [ player ] : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " BoB: Mario Wings to the Sky " ,  player ) ,  lambda  state :  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " HMC: Metal-Head Mario Can Move! " ,  player ) ,  lambda  state :  state . has ( " Metal Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " JRB: Through the Jet Stream " ,  player ) ,  lambda  state :  state . has ( " Metal Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " SSL: Free Flying for 8 Red Coins " ,  player ) ,  lambda  state :  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " DDD: Through the Jet Stream " ,  player ) ,  lambda  state :  state . has ( " Metal Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " DDD: Collect the Caps... " ,  player ) ,  lambda  state :  state . has ( " Metal Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " Vanish Cap Under the Moat Red Coins " ,  player ) ,  lambda  state :  state . has ( " Vanish Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " Cavern of the Metal Cap Red Coins " ,  player ) ,  lambda  state :  state . has ( " Metal Cap " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    if  world . StrictCannonRequirements [ player ] : 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-15 19:56:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " WF: Blast Away the Wall " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock WF " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " JRB: Blast to the Stone Pillar " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock JRB " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " CCM: Wall Kicks Will Work " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock CCM " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " TTM: Blast to the Lonely Mushroom " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock TTM " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    if  world . StrictCapRequirements [ player ]  and  world . StrictCannonRequirements [ player ] : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        # Ability to reach the floating island. Need some of those coins to get 100 coin star as well. 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-24 11:49:30 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " BoB: Find the 8 Red Coins " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock BoB " ,  player )  or  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        add_rule ( world . get_location ( " BoB: Shoot to the Island in the Sky " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock BoB " ,  player )  or  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        if  world . EnableCoinStars [ player ] : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            add_rule ( world . get_location ( " BoB: 100 Coins " ,  player ) ,  lambda  state :  state . has ( " Cannon Unlock BoB " ,  player )  or  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    #Rules for Secret Stars 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Bowser in the Sky Red Coins " ,  player ) ,  lambda  state :  state . can_reach ( " Third Floor " ,  ' Region ' , player )  and  state . has ( " Power Star " ,  player ,  world . StarsToFinish [ player ] . value ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:14:17 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " The Princess ' s Secret Slide Block " ,  player ) ,  lambda  state :  state . has ( " Power Star " ,  player ,  1 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " The Princess ' s Secret Slide Fast " ,  player ) ,  lambda  state :  state . has ( " Power Star " ,  player ,  1 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Cavern of the Metal Cap Red Coins " ,  player ) ,  lambda  state :  state . can_reach ( " Cavern of the Metal Cap Switch " ,  ' Location ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 17:42:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Tower of the Wing Cap Red Coins " ,  player ) ,  lambda  state :  state . can_reach ( " Tower of the Wing Cap Switch " ,  ' Location ' ,  player ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Vanish Cap Under the Moat Red Coins " ,  player ) ,  lambda  state :  state . can_reach ( " Vanish Cap Under the Moat Switch " ,  ' Location ' ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:14:17 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Wing Mario Over the Rainbow " ,  player ) ,  lambda  state :  state . can_reach ( " Third Floor " ,  ' Region ' ,  player )  and  state . has ( " Wing Cap " ,  player ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-09 20:57:38 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " The Secret Aquarium " ,  player ) ,  lambda  state :  state . has ( " Power Star " ,  player ,  3 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Toad (Basement) " ,  player ) ,  lambda  state :  state . can_reach ( " Basement " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  12 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Toad (Second Floor) " ,  player ) ,  lambda  state :  state . can_reach ( " Second Floor " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  25 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " Toad (Third Floor) " ,  player ) ,  lambda  state :  state . can_reach ( " Third Floor " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  35 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " MIPS 1 " ,  player ) ,  lambda  state :  state . can_reach ( " Basement " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  15 ) ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    add_rule ( world . get_location ( " MIPS 2 " ,  player ) ,  lambda  state :  state . can_reach ( " Basement " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  50 ) ) 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-23 21:34:30 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 06:33:39 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    world . completion_condition [ player ]  =  lambda  state :  state . can_reach ( " Third Floor " ,  ' Region ' ,  player )  and  state . has ( " Power Star " ,  player ,  world . StarsToFinish [ player ] . value )