From 3016379b85efdb336a25f82c146933476380f62d Mon Sep 17 00:00:00 2001 From: Mysteryem Date: Tue, 10 Mar 2026 22:06:44 +0000 Subject: [PATCH] KH2: Fix nondeterministic generation when CasualBounties is enabled (#5967) When CasualBounties was enabled, the location names in `exclusion_table["HitlistCasual"]` would be iterated into `self.random_super_boss_list` in `generate_early`, but `exclusion_table["HitlistCasual"]` was a `set`, so its iteration order would vary on each generation, even with same seed. Random location names would be picked from `self.random_super_boss_list` to place Bounty items at, so different locations could be picked on each generation with the same seed. `exclusion_table["Hitlist"]` is similar and was already a `list`, avoiding the issue of nondeterministic iteration order, so `exclusion_table["HitlistCasual"]` has been changed to a `list` to match. --- worlds/kh2/Locations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/kh2/Locations.py b/worlds/kh2/Locations.py index 3b5a6e7e69..4b423d255a 100644 --- a/worlds/kh2/Locations.py +++ b/worlds/kh2/Locations.py @@ -1281,7 +1281,7 @@ exclusion_table = { LocationName.HadesCupTrophyParadoxCups, LocationName.MusicalOrichalcumPlus, ], - "HitlistCasual": { + "HitlistCasual": [ LocationName.FuturePete, LocationName.BetwixtandBetweenBondofFlame, LocationName.GrimReaper2, @@ -1299,7 +1299,7 @@ exclusion_table = { LocationName.MCP, LocationName.Lvl50, LocationName.Lvl99 - }, + ], "Cups": { LocationName.ProtectBeltPainandPanicCup, LocationName.SerenityGemPainandPanicCup,