fix: suppress warning for missing items if they are in start inventory

This commit is contained in:
aerinon
2024-05-30 14:02:52 -06:00
parent 3ba1472635
commit 54858500e5
2 changed files with 3 additions and 0 deletions

View File

@@ -1331,6 +1331,7 @@ def make_customizer_pool(world, player):
bow_found = next((i for i in pool if i in {'Bow', 'Progressive Bow'}), None)
if not bow_found:
missing_items.append('Progressive Bow')
missing_items = [i for i in missing_items if all(i != start.name or player != start.player for start in world.precollected_items)]
if missing_items:
logging.getLogger('').warning(f'The following items are not in the custom item pool {", ".join(missing_items)}')