From 80217b269e3eae009d0772147ef0ef8cce6feae6 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Wed, 28 Aug 2019 21:38:08 -0400 Subject: [PATCH] Fix inverted triforce hunt --- ItemList.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ItemList.py b/ItemList.py index a25423fb3..6dac7a010 100644 --- a/ItemList.py +++ b/ItemList.py @@ -138,7 +138,10 @@ def generate_itempool(world, player): world.push_item(world.get_location('Ganon', player), ItemFactory('Triforce', player), False) if world.goal in ['triforcehunt']: - region = world.get_region('Hyrule Castle Courtyard', player) + if world.mode == 'inverted': + region = world.get_region('Light World',player) + else: + region = world.get_region('Hyrule Castle Courtyard', player) loc = Location(player, "Murahdahla", parent=region) loc.access_rule = lambda state: state.item_count('Triforce Piece', player) + state.item_count('Power Star', player) > state.world.treasure_hunt_count