From 3b2037a2d4020ffc7fdcc1842a594479bb99239f Mon Sep 17 00:00:00 2001 From: Alchav <59858495+Alchav@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:19:07 -0400 Subject: [PATCH] HK - focus location (#778) --- worlds/hk/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worlds/hk/__init__.py b/worlds/hk/__init__.py index af0e54e2..c07d995e 100644 --- a/worlds/hk/__init__.py +++ b/worlds/hk/__init__.py @@ -254,6 +254,9 @@ class HKWorld(World): if location_name == "Start": if item_name in randomized_starting_items: + if item_name == "Focus": + self.create_location("Focus") + unfilled_locations += 1 pool.append(item) else: self.world.push_precollected(item) @@ -502,6 +505,7 @@ class HKWorld(World): location.place_locked_item(item) if costs: location.costs = costs.pop() + return location def collect(self, state, item: HKItem) -> bool: change = super(HKWorld, self).collect(state, item)