geography: Route 4's Pokécenter is a centre on the map graph

MT_MOON_POKECENTER ($44, Route 4's warp at (11, 5)) joins LINKS, Route
4's west piece and AMENITIES as Route 4's centre. It was on no table,
so HEAL was never dealt in it and no errand could walk to it: the last
centre before Mt. Moon, where the live run spent 3.5 hours whiting out
(loop review row 62).
This commit is contained in:
acamilo 2026-09-24 02:41:15 +00:00
parent eecd5744e0
commit 019bd02dfe
2 changed files with 16 additions and 1 deletions

View file

@ -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),
];

View file

@ -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;