Pokemon Emerald: Fix missing region for water encounters in Dewford (#3103)

This commit is contained in:
Bryce Wilson 2024-04-18 10:51:49 -06:00 committed by GitHub
parent 3343d4e364
commit 8b8df9fa33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -1143,7 +1143,7 @@
"REGION_DEWFORD_TOWN/MAIN": {
"parent_map": "MAP_DEWFORD_TOWN",
"has_grass": false,
"has_water": true,
"has_water": false,
"has_fishing": true,
"locations": [
"NPC_GIFT_RECEIVED_OLD_ROD"
@ -1152,6 +1152,7 @@
"EVENT_VISITED_DEWFORD_TOWN"
],
"exits": [
"REGION_DEWFORD_TOWN/WATER",
"REGION_ROUTE106/EAST",
"REGION_ROUTE107/MAIN",
"REGION_ROUTE104_MR_BRINEYS_HOUSE/MAIN",
@ -1165,6 +1166,16 @@
"MAP_DEWFORD_TOWN:4/MAP_DEWFORD_TOWN_HOUSE2:0"
]
},
"REGION_DEWFORD_TOWN/WATER": {
"parent_map": "MAP_DEWFORD_TOWN",
"has_grass": false,
"has_water": true,
"has_fishing": true,
"locations": [],
"events": [],
"exits": [],
"warps": []
},
"REGION_DEWFORD_TOWN_HALL/MAIN": {
"parent_map": "MAP_DEWFORD_TOWN_HALL",
"has_grass": false,

View File

@ -427,6 +427,10 @@ def set_rules(world: "PokemonEmeraldWorld") -> None:
state.can_reach("REGION_ROUTE104_MR_BRINEYS_HOUSE/MAIN -> REGION_DEWFORD_TOWN/MAIN", "Entrance", world.player)
and state.has("EVENT_TALK_TO_MR_STONE", world.player)
)
set_rule(
get_entrance("REGION_DEWFORD_TOWN/MAIN -> REGION_DEWFORD_TOWN/WATER"),
hm_rules["HM03 Surf"]
)
# Granite Cave
set_rule(