diff --git a/services/flysim/crates/flybrain-gb/src/pokemon_red/macros/geography.rs b/services/flysim/crates/flybrain-gb/src/pokemon_red/macros/geography.rs index 351eb35..8779a9e 100644 --- a/services/flysim/crates/flybrain-gb/src/pokemon_red/macros/geography.rs +++ b/services/flysim/crates/flybrain-gb/src/pokemon_red/macros/geography.rs @@ -160,6 +160,10 @@ const LINKS: &[(u8, u8)] = &[ (maps::MT_MOON_1F, maps::MT_MOON_B1F), (maps::MT_MOON_B1F, maps::MT_MOON_B2F), (maps::MT_MOON_B1F, maps::ROUTE_4), + // Route 4's own Pokémon Center, the door at (11, 5) on the cave mouth's side (row 62). On the + // graph because it is an amenity ([`AMENITIES`]): a centre with no row here is one no errand + // can walk to and no `HEAL` is dealt in. + (maps::MT_MOON_POKECENTER, maps::ROUTE_4), (maps::CERULEAN_GYM, maps::CERULEAN_CITY), (maps::CERULEAN_MART, maps::CERULEAN_CITY), (maps::CERULEAN_POKECENTER, maps::CERULEAN_CITY), @@ -283,7 +287,11 @@ const SPLIT: &[Split] = &[ pieces: &[ Piece { doors: &[(0, 11, 5), (1, 18, 5)], - next: &[Region::whole(maps::ROUTE_3), Region::whole(maps::MT_MOON_1F)], + next: &[ + Region::whole(maps::ROUTE_3), + Region::whole(maps::MT_MOON_POKECENTER), + Region::whole(maps::MT_MOON_1F), + ], }, Piece { doors: &[(2, 24, 5)], @@ -627,6 +635,9 @@ const AMENITIES: &[(u8, Amenity, u8)] = &[ (maps::VIRIDIAN_CITY, Amenity::Center, maps::VIRIDIAN_POKECENTER), (maps::PEWTER_CITY, Amenity::Mart, maps::PEWTER_MART), (maps::PEWTER_CITY, Amenity::Center, maps::PEWTER_POKECENTER), + // Route 4 has no mart, and its centre is the last one before Mt. Moon (row 62): the one the + // cave's first floor is an area with, since Mt. Moon's mouths open onto Route 4. + (maps::ROUTE_4, Amenity::Center, maps::MT_MOON_POKECENTER), (maps::CERULEAN_CITY, Amenity::Mart, maps::CERULEAN_MART), (maps::CERULEAN_CITY, Amenity::Center, maps::CERULEAN_POKECENTER), ]; diff --git a/services/flysim/crates/flybrain-gb/src/pokemon_red/maps.rs b/services/flysim/crates/flybrain-gb/src/pokemon_red/maps.rs index fd1b4e8..f306cf2 100644 --- a/services/flysim/crates/flybrain-gb/src/pokemon_red/maps.rs +++ b/services/flysim/crates/flybrain-gb/src/pokemon_red/maps.rs @@ -86,5 +86,9 @@ pub const MT_MOON_B2F: u8 = 0x3d; pub const CERULEAN_POKECENTER: u8 = 0x40; pub const CERULEAN_GYM: u8 = 0x41; pub const CERULEAN_MART: u8 = 0x43; +/// Route 4's Pokémon Center, the one beside Mt. Moon's mouth: the id straight after +/// `CERULEAN_MART` `$43`, and confirmed by the cartridge rather than by counting -- Route 4's warp +/// table names `$44` at (11, 5) (`tests/rom_macros_mode.rs`, row 59's door survey). +pub const MT_MOON_POKECENTER: u8 = 0x44; pub const ROCK_TUNNEL_1F: u8 = 0x52; pub const INDIGO_PLATEAU_LOBBY: u8 = 0xae;