From 068a7573737078d413cdd0fe1ea4c94bc2903821 Mon Sep 17 00:00:00 2001 From: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> Date: Fri, 13 Jun 2025 20:29:06 -0400 Subject: [PATCH] Item Plando: Fix `count` value (#5101) --- Fill.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Fill.py b/Fill.py index d0a42c07..87d6b02e 100644 --- a/Fill.py +++ b/Fill.py @@ -937,13 +937,16 @@ def parse_planned_blocks(multiworld: MultiWorld) -> dict[int, list[PlandoItemBlo count = block.count if not count: - count = len(new_block.items) + count = (min(len(new_block.items), len(new_block.resolved_locations)) + if new_block.resolved_locations else len(new_block.items)) if isinstance(count, int): count = {"min": count, "max": count} if "min" not in count: count["min"] = 0 if "max" not in count: - count["max"] = len(new_block.items) + count["max"] = (min(len(new_block.items), len(new_block.resolved_locations)) + if new_block.resolved_locations else len(new_block.items)) + new_block.count = count plando_blocks[player].append(new_block)