Skip to content

Commit

Permalink
honor grub count if not all
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Dec 7, 2024
1 parent 25d6dd5 commit b19d324
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions worlds/hk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ def __init__(self, multiworld, player):
self.created_shop_items = 0
self.vanilla_shop_costs = deepcopy(vanilla_shop_costs)

# defaulting so completion condition isn't incorrect before pre_fill
self.grub_count = 46
self.grub_player_count = {player: 46}

def generate_early(self):
options = self.options
charm_costs = options.RandomCharmCosts.get_costs(self.random)
Expand All @@ -206,7 +202,14 @@ def generate_early(self):
mini.value = min(mini.value, maxi.value)
self.ranges[term] = mini.value, maxi.value
self.multiworld.push_precollected(HKItem(starts[options.StartLocation.current_key],
True, None, "Event", self.player))
True, None, "Event", self.player))

# defaulting so completion condition isn't incorrect before pre_fill
self.grub_count = (
46 if options.GrubHuntGoal == GrubHuntGoal.special_range_names["all"]
else options.GrubHuntGoal
)
self.grub_player_count = {self.player: self.grub_count}

def white_palace_exclusions(self):
exclusions = set()
Expand Down

0 comments on commit b19d324

Please sign in to comment.