mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-26 19:59:58 -07:00
Pokemon Emerald: Switch to rule builder (#5923)
This commit is contained in:
@@ -177,7 +177,7 @@ def set_legendary_cave_entrances(world: "PokemonEmeraldWorld") -> None:
|
|||||||
terra_cave_location_location = world.multiworld.get_location("TERRA_CAVE_LOCATION", world.player)
|
terra_cave_location_location = world.multiworld.get_location("TERRA_CAVE_LOCATION", world.player)
|
||||||
terra_cave_location_location.item = None
|
terra_cave_location_location.item = None
|
||||||
terra_cave_location_location.place_locked_item(world.create_event(terra_cave_location_name))
|
terra_cave_location_location.place_locked_item(world.create_event(terra_cave_location_name))
|
||||||
|
|
||||||
marine_cave_location_name = world.random.choice([
|
marine_cave_location_name = world.random.choice([
|
||||||
"MARINE_CAVE_ROUTE_105_1",
|
"MARINE_CAVE_ROUTE_105_1",
|
||||||
"MARINE_CAVE_ROUTE_105_2",
|
"MARINE_CAVE_ROUTE_105_2",
|
||||||
|
|||||||
@@ -594,7 +594,7 @@ class NormalizeEncounterRates(Toggle):
|
|||||||
Make every slot on an encounter table approximately equally likely.
|
Make every slot on an encounter table approximately equally likely.
|
||||||
|
|
||||||
This does NOT mean each species is equally likely. In the vanilla game, each species may occupy more than one slot, and slots vary in probability.
|
This does NOT mean each species is equally likely. In the vanilla game, each species may occupy more than one slot, and slots vary in probability.
|
||||||
|
|
||||||
Species will still occupy the same slots as vanilla, but the slots will be equally weighted. The minimum encounter rate will be 8% (higher in water).
|
Species will still occupy the same slots as vanilla, but the slots will be equally weighted. The minimum encounter rate will be 8% (higher in water).
|
||||||
"""
|
"""
|
||||||
display_name = "Normalize Encounter Rates"
|
display_name = "Normalize Encounter Rates"
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ def randomize_learnsets(world: "PokemonEmeraldWorld") -> None:
|
|||||||
|
|
||||||
species.learnset = new_learnset
|
species.learnset = new_learnset
|
||||||
|
|
||||||
|
|
||||||
def randomize_starters(world: "PokemonEmeraldWorld") -> None:
|
def randomize_starters(world: "PokemonEmeraldWorld") -> None:
|
||||||
if world.options.starters == RandomizeStarters.option_vanilla:
|
if world.options.starters == RandomizeStarters.option_vanilla:
|
||||||
return
|
return
|
||||||
@@ -682,7 +682,7 @@ def randomize_misc_pokemon(world: "PokemonEmeraldWorld") -> None:
|
|||||||
]
|
]
|
||||||
if should_match_bst:
|
if should_match_bst:
|
||||||
candidates = filter_species_by_nearby_bst(candidates, sum(original_species.base_stats))
|
candidates = filter_species_by_nearby_bst(candidates, sum(original_species.base_stats))
|
||||||
|
|
||||||
player_filtered_candidates = [
|
player_filtered_candidates = [
|
||||||
species
|
species
|
||||||
for species in candidates
|
for species in candidates
|
||||||
|
|||||||
+464
-1461
File diff suppressed because it is too large
Load Diff
@@ -100,7 +100,7 @@ def get_encounter_type_label(encounter_type: EncounterType, slot: int) -> str:
|
|||||||
8: "Super Rod",
|
8: "Super Rod",
|
||||||
9: "Super Rod",
|
9: "Super Rod",
|
||||||
}[slot]
|
}[slot]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
EncounterType.LAND: 'Land',
|
EncounterType.LAND: 'Land',
|
||||||
EncounterType.WATER: 'Water',
|
EncounterType.WATER: 'Water',
|
||||||
|
|||||||
Reference in New Issue
Block a user