Skip to content

Commit

Permalink
Update worlds/kh1/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Scipio Wright <[email protected]>
  • Loading branch information
gaithern and ScipioWright authored Apr 23, 2024
1 parent 5ff82af commit 25bd9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/kh1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def create_items(self):

# Fill remaining pool with items from other pool
while len(level_up_item_pool) < 100 and len(possible_level_up_item_pool) > 0:
level_up_item_pool.append(possible_level_up_item_pool.pop(random.randrange(len(possible_level_up_item_pool))))
level_up_item_pool.append(possible_level_up_item_pool.pop(self.random.randrange(len(possible_level_up_item_pool))))

level_up_locations = list(get_locations_by_category("Levels").keys())
random.shuffle(level_up_item_pool)
self.random.shuffle(level_up_item_pool)
i = 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()))
Expand Down

0 comments on commit 25bd9bd

Please sign in to comment.