Only apply bunny pocket rule if glitched logic

This commit is contained in:
codemann8
2024-01-05 20:47:41 -06:00
parent a77d3faf78
commit 20d1398e4d

View File

@@ -1841,10 +1841,11 @@ def set_bunny_rules(world, player, inverted):
continue continue
add_rule(location, get_rule_to_add(region, location)) add_rule(location, get_rule_to_add(region, location))
for ent_name in bunny_pocket_entrances: if world.logic[player] in ['owglitches', 'hybridglitches']:
bunny_exit = world.get_entrance(ent_name, player) for ent_name in bunny_pocket_entrances:
if bunny_exit.connected_region and is_bunny(bunny_exit.parent_region) and not can_bunny_pocket_to(world, ent_name, player): bunny_exit = world.get_entrance(ent_name, player)
add_rule(bunny_exit, lambda state: state.has_Pearl(player)) if bunny_exit.connected_region and is_bunny(bunny_exit.parent_region) and not can_bunny_pocket_to(world, ent_name, player):
add_rule(bunny_exit, lambda state: state.has_Pearl(player))
drop_dungeon_entrances = { drop_dungeon_entrances = {