HK - focus location (#778)
This commit is contained in:
@@ -254,6 +254,9 @@ class HKWorld(World):
|
|||||||
|
|
||||||
if location_name == "Start":
|
if location_name == "Start":
|
||||||
if item_name in randomized_starting_items:
|
if item_name in randomized_starting_items:
|
||||||
|
if item_name == "Focus":
|
||||||
|
self.create_location("Focus")
|
||||||
|
unfilled_locations += 1
|
||||||
pool.append(item)
|
pool.append(item)
|
||||||
else:
|
else:
|
||||||
self.world.push_precollected(item)
|
self.world.push_precollected(item)
|
||||||
@@ -502,6 +505,7 @@ class HKWorld(World):
|
|||||||
location.place_locked_item(item)
|
location.place_locked_item(item)
|
||||||
if costs:
|
if costs:
|
||||||
location.costs = costs.pop()
|
location.costs = costs.pop()
|
||||||
|
return location
|
||||||
|
|
||||||
def collect(self, state, item: HKItem) -> bool:
|
def collect(self, state, item: HKItem) -> bool:
|
||||||
change = super(HKWorld, self).collect(state, item)
|
change = super(HKWorld, self).collect(state, item)
|
||||||
|
|||||||
Reference in New Issue
Block a user