Zillion: use Option.current_key

and other minor fixes
This commit is contained in:
beauxq
2023-03-06 19:14:25 -08:00
committed by black-sliver
parent 8ca25fed63
commit e6109394ad
4 changed files with 18 additions and 14 deletions

View File

@@ -42,6 +42,7 @@ def item_counts(cs: CollectionState, p: int) -> Tuple[Tuple[str, int], ...]:
LogicCacheType = Dict[int, Tuple[_Counter[Tuple[str, int]], FrozenSet[Location]]]
""" { hash: (cs.prog_items, accessible_locations) } """
def cs_to_zz_locs(cs: CollectionState, p: int, zz_r: Randomizer, id_to_zz_item: Dict[int, Item]) -> FrozenSet[Location]: