Noita: Fix bug with Traps disabled in 1-player games #4651

This commit is contained in:
Scipio Wright
2025-02-23 11:27:05 -05:00
committed by GitHub
parent 58d460678e
commit 6dc461609b

View File

@@ -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()),