From 92b320a8765e6c56667b4fc15d80135e24cf8916 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Mon, 12 Aug 2024 01:35:09 +0200 Subject: [PATCH] comments :D --- Main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Main.py b/Main.py index 2a780f07557c..a0a7c6211cf7 100644 --- a/Main.py +++ b/Main.py @@ -160,6 +160,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No if overall_target: new_items: List[Item] = [] + # Make new itempool with start_inventory_from_pool items removed for item in multiworld.itempool: if depletion_pool[item.player].get(item.name, 0): depletion_pool[item.player][item.name] -= 1 @@ -174,6 +175,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No for player, remaining_items in depletion_pool.items() } + # Create filler in place of the removed items, warn if any items couldn't be found in the multiworld itempool for player, unfound_items in unfound_items_per_player.items(): amount_of_unfound_items = sum(unfound_items.values()) needed_items = target_per_player[player] - amount_of_unfound_items