From 1c42564d9021fa76ba988a7ed2b8823e62fc1ce7 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 30 Aug 2021 16:47:34 +0200 Subject: [PATCH] LttP: remove leftover location binding --- worlds/alttp/Dungeons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/alttp/Dungeons.py b/worlds/alttp/Dungeons.py index 42bdda29..d3d79478 100644 --- a/worlds/alttp/Dungeons.py +++ b/worlds/alttp/Dungeons.py @@ -144,7 +144,7 @@ def fill_dungeons_restrictive(autoworld, world): for location in locations: dungeon = location.parent_region.dungeon orig_rule = location.item_rule - location.item_rule = lambda item, location=location, dungeon=dungeon, orig_rule=orig_rule: \ + location.item_rule = lambda item, dungeon=dungeon, orig_rule=orig_rule: \ (not (item.player, item.name) in dungeon_specific or item.dungeon is dungeon) and orig_rule world.random.shuffle(locations)