mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-18 21:38:13 -07:00
Compare commits
2 Commits
0.6.5
...
plando-cou
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86a6939f02 | ||
|
|
51254948aa |
7
Fill.py
7
Fill.py
@@ -937,13 +937,16 @@ def parse_planned_blocks(multiworld: MultiWorld) -> dict[int, list[PlandoItemBlo
|
|||||||
|
|
||||||
count = block.count
|
count = block.count
|
||||||
if not 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):
|
if isinstance(count, int):
|
||||||
count = {"min": count, "max": count}
|
count = {"min": count, "max": count}
|
||||||
if "min" not in count:
|
if "min" not in count:
|
||||||
count["min"] = 0
|
count["min"] = 0
|
||||||
if "max" not in count:
|
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
|
new_block.count = count
|
||||||
plando_blocks[player].append(new_block)
|
plando_blocks[player].append(new_block)
|
||||||
|
|||||||
Reference in New Issue
Block a user