Open Route 31, Violet City and Sprout Tower (#31)
Enable Route 31 and its gate, Dark Cave's Violet entrance, Violet City with its buildings and Sprout Tower. Port the script commands they use: gettrainername, askforphonenumber (with AddPhoneNumber's room for Mom and Elm; addcellnum now reports failure as the original does), checkpokemail, loadmenu/_2dmenu/closewindow, giveegg and trade (NPCTrade, with wTradeFlags saved). Eggs keep their species with an egg flag, as wPartySpecies does. The pack's TM/HM counts receive, check and toss TMs and HMs, which are named TM01-HM07. The playthrough continues through Route 31 (with Mom's call), Violet City and Sprout Tower to Elder Li's Flash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec3d1cd5c4
commit
7909302db1
16 files changed
+585
-63
No files matched your search
@@ -517,14 +517,16 @@ describe.skipIf(!existsSync(romPath))(
|
||||
load(),
|
||||
() => new Date("2026-09-22T12:00:00"),
|
||||
);
|
||||
const route = world.assets.map("26:1");
|
||||
const edge = Array.from({ length: route.width }, (_, x) => x).find(
|
||||
// Violet City's south edge leads to Route 32, which stays closed.
|
||||
const city = world.assets.map("10:5"),
|
||||
bottom = city.height - 1;
|
||||
const edge = Array.from({ length: city.width }, (_, x) => x).find(
|
||||
(x) =>
|
||||
world.assets.permission(world.assets.collision(route, x, 0)) === 0,
|
||||
world.assets.permission(world.assets.collision(city, x, bottom)) === 0,
|
||||
)!;
|
||||
world.restore({ ...world.save(), map: "26:1", x: edge, y: 0 });
|
||||
expect(world.move("up")).toBe(false);
|
||||
expect(world.notice).toBe("Route 31 is not ported yet.");
|
||||
world.restore({ ...world.save(), map: "10:5", x: edge, y: bottom });
|
||||
expect(world.move("down")).toBe(false);
|
||||
expect(world.notice).toBe("Route 32 is not ported yet.");
|
||||
const {
|
||||
scenes,
|
||||
phone,
|
||||
|
||||
Reference in new issue
Block a user