Pokémon R/B: Pokédex option fixes (#1666)

* Pokémon R/B: Pokedex option fixes

* Pokémon R/B: Missing option display names
This commit is contained in:
Alchav
2023-04-05 00:59:59 -04:00
committed by GitHub
parent 37fdc00517
commit 397ce8343e
6 changed files with 148 additions and 142 deletions

View File

@@ -197,6 +197,7 @@ class PokemonRedBlueWorld(World):
+ self.multiworld.paralyze_trap_weight[self.player].value
+ self.multiworld.ice_trap_weight[self.player].value)
for location in locations:
event = location.event
if not location.inclusion(self.multiworld, self.player):
continue
if location.original_item in self.multiworld.start_inventory[self.player].value and \
@@ -208,7 +209,7 @@ class PokemonRedBlueWorld(World):
elif location.original_item == "Pokedex":
if self.multiworld.randomize_pokedex[self.player] == "vanilla":
self.multiworld.get_location(location.name, self.player).event = True
location.event = True
event = True
item = self.create_item("Pokedex")
elif location.original_item.startswith("TM"):
if self.multiworld.randomize_tm_moves[self.player]:
@@ -220,7 +221,7 @@ class PokemonRedBlueWorld(World):
if (item.classification == ItemClassification.filler and self.multiworld.random.randint(1, 100)
<= self.multiworld.trap_percentage[self.player].value and combined_traps != 0):
item = self.create_item(self.select_trap())
if location.event:
if event:
self.multiworld.get_location(location.name, self.player).place_locked_item(item)
elif "Badge" not in item.name or self.multiworld.badgesanity[self.player].value:
item_pool.append(item)