From 6dc461609b1df651e327050f279f8cdce38fe95b Mon Sep 17 00:00:00 2001 From: Scipio Wright Date: Sun, 23 Feb 2025 11:27:05 -0500 Subject: [PATCH] Noita: Fix bug with Traps disabled in 1-player games #4651 --- worlds/noita/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/noita/items.py b/worlds/noita/items.py index 394bcdb575..20d9ff1930 100644 --- a/worlds/noita/items.py +++ b/worlds/noita/items.py @@ -52,8 +52,8 @@ def create_kantele(victory_condition: VictoryCondition) -> List[str]: def create_random_items(world: NoitaWorld, weights: Dict[str, int], count: int) -> List[str]: filler_pool = weights.copy() if not world.options.bad_effects: - del filler_pool["Trap"] - del filler_pool["Greed Die"] + filler_pool["Trap"] = 0 + filler_pool["Greed Die"] = 0 return world.random.choices(population=list(filler_pool.keys()), weights=list(filler_pool.values()),