From 019bd02dfe0789b193715e476001767cebc6a547 Mon Sep 17 00:00:00 2001 From: acamilo Date: Thu, 24 Sep 2026 02:41:15 +0000 Subject: [PATCH] =?UTF-8?q?geography:=20Route=204's=20Pok=C3=A9center=20is?= =?UTF-8?q?=20a=20centre=20on=20the=20map=20graph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- .../flybrain-gb/src/pokemon_red/macros/geography.rs | 13 ++++++++++++- .../crates/flybrain-gb/src/pokemon_red/maps.rs | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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;