Skip to content

Commit 32b31c1

Browse files
beauxqFlySniper
authored andcommitted
Zillion: cache key includes gun requirement (ArchipelagoMW#1846)
The key for the logic cache was missing some important information, so it was yielding a cache hit when it should have been a miss.
1 parent cf42927 commit 32b31c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worlds/zillion/logic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def set_randomizer_locs(cs: CollectionState, p: int, zz_r: Randomizer) -> int:
2828
if isinstance(z_loc.item, ZillionItem) and z_loc.item.player == p \
2929
else zz_empty
3030
zz_r.locations[zz_name].item = zz_item
31-
_hash += hash(zz_name) ^ hash(zz_item)
31+
_hash += (hash(zz_name) * (z_loc.zz_loc.req.gun + 2)) ^ hash(zz_item)
3232
return _hash
3333

3434

0 commit comments

Comments
 (0)