Pokemon Red and Blue: Fix to having all traps disabled ()

This commit is contained in:
SonicRPika 2023-01-24 03:34:45 +00:00 committed by GitHub
parent 53dd0d5a7d
commit 920240cb6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
worlds/pokemon_rb

View File

@ -318,7 +318,8 @@ class PokemonRedBlueWorld(World):
spoiler_handle.write(f"{matchup[0]} deals {matchup[2] * 10}% damage to {matchup[1]}\n")
def get_filler_item_name(self) -> str:
if self.multiworld.random.randint(1, 100) <= self.multiworld.trap_percentage[self.player].value:
combined_traps = self.multiworld.poison_trap_weight[self.player].value + self.multiworld.fire_trap_weight[self.player].value + self.multiworld.paralyze_trap_weight[self.player].value + self.multiworld.ice_trap_weight[self.player].value
if self.multiworld.random.randint(1, 100) <= self.multiworld.trap_percentage[self.player].value and combined_traps != 0:
return self.select_trap()
return self.multiworld.random.choice([item for item in item_table if item_table[