Skip to content

Commit

Permalink
missed some multiworld.optionname
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredWeakStrike committed Oct 29, 2023
1 parent 2655e7f commit 8bcd879
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions worlds/kh2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ def fill_slot_data(self) -> dict:
if ability in self.goofy_ability_dict.keys():
if self.goofy_ability_dict[ability] >= 1:
self.goofy_ability_dict[ability] -= 1
return {


slot_data = self.options.as_dict("Goal", "FinalXemnas", "LuckyEmblemsRequired", "BountyRequired")
slot_data.update({
Expand Down Expand Up @@ -133,14 +131,14 @@ def create_items(self) -> None:
"""
self.visitlocking_dict = visit_locking_dict["AllVisitLocking"].copy()
if self.options.Schmovement != "level_0":
for _ in range(self.multiworld.Schmovement[self.player].value):
for _ in range(self.options.Schmovement.value):
for name in Movement_Table.keys():
self.item_quantity_dict[name] -= 1
self.growth_list.remove(name)
self.multiworld.push_precollected(self.create_item(name))

if self.options.RandomGrowth != 0:
max_growth = min(self.multiworld.RandomGrowth[self.player].value, len(self.growth_list))
if self.options.RandomGrowth:
max_growth = min(self.options.RandomGrowth.value, len(self.growth_list))
for _ in range(max_growth):
random_growth = self.random.choice(self.growth_list)
self.item_quantity_dict[random_growth] -= 1
Expand Down

0 comments on commit 8bcd879

Please sign in to comment.