Hollow Knight: remove unused option check (#2595)
This commit is contained in:
		
							parent
							
								
									45fa9a8f9e
								
							
						
					
					
						commit
						db1d195cb0
					
				| 
						 | 
					@ -419,17 +419,16 @@ class HKWorld(World):
 | 
				
			||||||
    def set_rules(self):
 | 
					    def set_rules(self):
 | 
				
			||||||
        world = self.multiworld
 | 
					        world = self.multiworld
 | 
				
			||||||
        player = self.player
 | 
					        player = self.player
 | 
				
			||||||
        if world.logic[player] != 'nologic':
 | 
					        goal = world.Goal[player]
 | 
				
			||||||
            goal = world.Goal[player]
 | 
					        if goal == Goal.option_hollowknight:
 | 
				
			||||||
            if goal == Goal.option_hollowknight:
 | 
					            world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player)
 | 
				
			||||||
                world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player)
 | 
					        elif goal == Goal.option_siblings:
 | 
				
			||||||
            elif goal == Goal.option_siblings:
 | 
					            world.completion_condition[player] = lambda state: state._hk_siblings_ending(player)
 | 
				
			||||||
                world.completion_condition[player] = lambda state: state._hk_siblings_ending(player)
 | 
					        elif goal == Goal.option_radiance:
 | 
				
			||||||
            elif goal == Goal.option_radiance:
 | 
					            world.completion_condition[player] = lambda state: state._hk_can_beat_radiance(player)
 | 
				
			||||||
                world.completion_condition[player] = lambda state: state._hk_can_beat_radiance(player)
 | 
					        else:
 | 
				
			||||||
            else:
 | 
					            # Any goal
 | 
				
			||||||
                # Any goal
 | 
					            world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) or state._hk_can_beat_radiance(player)
 | 
				
			||||||
                world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) or state._hk_can_beat_radiance(player)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        set_rules(self)
 | 
					        set_rules(self)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue