mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Noita: Fix bug with Traps disabled in 1-player games #4651
This commit is contained in:
@@ -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]:
|
def create_random_items(world: NoitaWorld, weights: Dict[str, int], count: int) -> List[str]:
|
||||||
filler_pool = weights.copy()
|
filler_pool = weights.copy()
|
||||||
if not world.options.bad_effects:
|
if not world.options.bad_effects:
|
||||||
del filler_pool["Trap"]
|
filler_pool["Trap"] = 0
|
||||||
del filler_pool["Greed Die"]
|
filler_pool["Greed Die"] = 0
|
||||||
|
|
||||||
return world.random.choices(population=list(filler_pool.keys()),
|
return world.random.choices(population=list(filler_pool.keys()),
|
||||||
weights=list(filler_pool.values()),
|
weights=list(filler_pool.values()),
|
||||||
|
Reference in New Issue
Block a user