From 3f4b569469711db287b5ad2697800ef9ac682f71 Mon Sep 17 00:00:00 2001 From: gaithern Date: Sun, 7 Jul 2024 10:39:31 -0500 Subject: [PATCH] Update __init__.py --- worlds/kh1/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worlds/kh1/__init__.py b/worlds/kh1/__init__.py index a688f69b26f5..13bbbcbb55bb 100644 --- a/worlds/kh1/__init__.py +++ b/worlds/kh1/__init__.py @@ -91,10 +91,10 @@ def create_items(self): level_up_locations = list(get_locations_by_category("Levels").keys()) self.random.shuffle(level_up_item_pool) - i = self.options.force_stats_on_levels - 1 + starting_level_for_stats_only = self.options.force_stats_on_levels - 1 while len(level_up_item_pool) > 0 and i < self.options.level_checks: - self.multiworld.get_location(level_up_locations[i], self.player).place_locked_item(self.create_item(level_up_item_pool.pop())) - i += 1 + self.multiworld.get_location(level_up_locations[starting_level_for_stats_only], self.player).place_locked_item(self.create_item(level_up_item_pool.pop())) + starting_level_for_stats_only += 1 #Calculate prefilled locations and items if True: #Allow notepad++ to collpase this section