Open Routes 35 to 37, the National Park and Ecruteak to the Fog Badge (#32)
Enable Route 35, Route 36, Route 37, the National Park and its gates, Ecruteak City and its buildings, the Tin Tower entrance, the Wise Trio's room and both floors of the Burned Tower. The story runs from Floria, the SquirtBottle and Sudowoodo through the Kimono Girls' HM03 Surf, the rival in the Burned Tower and the beasts' release to Ecruteak Gym, Morty, the FOGBADGE and TM30. Port roaming Pokémon (InitRoamMons, UpdateRoamMons, JumpRoamMons, CheckEncounterRoamMon) with their state in the save; only Continue moves them on restore, so a failed import's rollback keeps them in place. Port the Bug-Catching Contest: registration on contest days, Park Balls, contestants, the timer, QUIT, the catch-and-swap prompt, judging from the ROM's contestant table, prizes and the saved contest state. Port the Game Corner's SlotMachine and CardFlip on a new realtime tile screen that advances two frames per tick with buffered buttons: reel strips and scrolling, bias tables, the seven streak, Golem and Chansey, payouts, the Card Flip board, cursor and navigation. Their tilemaps are checked against the ROM's own data. Also port getnum, a plain warp that continues its script on the new map, and PokemonNames' EGG entry. A trainer whose script is ObjectEvent (the Burned Tower rival) is no longer sighted once its own flag is set, as the original's read of bit 1 of wNumKeyItems gives with the usual key items. The playthrough walks through the National Park and continues to Morty; its driver chooses moves by type matchup, buys at Marts and uses Super Potions and Awakenings in trainer battles. New tests cover roaming, the contest, the Game Corner and Ecruteak's side content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0930b780fc
commit
2640fa2725
31 files changed
+4743
-91
No files matched your search
@@ -5,7 +5,7 @@ import { GameWorld } from "../src/game/world/world";
|
||||
import { generatePartyMon, validPartyMon } from "../src/game/party/pokemon";
|
||||
import { C } from "../src/game/battle/constants";
|
||||
import { battleFixtureWorld, ENCOUNTER_WALK } from "./battle-fixture";
|
||||
import { settle } from "./world-driver";
|
||||
import { afterRestore, settle } from "./world-driver";
|
||||
|
||||
const romPath =
|
||||
process.env.CRYSTAL_ROM_PATH ?? "Pokemon - Crystal Version (UE) (V1.1) [C][!].gbc";
|
||||
@@ -159,7 +159,8 @@ describe.skipIf(!existsSync(romPath))("the catching tutorial and capture in the
|
||||
expect(world.state.bag.balls[0].quantity).toBeLessThan(10);
|
||||
const saved = world.save();
|
||||
world.restore(saved);
|
||||
expect(world.save()).toEqual(saved);
|
||||
const reloaded = world.save();
|
||||
expect(reloaded).toEqual(afterRestore(saved, reloaded));
|
||||
expect(validPartyMon(world.assets.pokemon, world.state.party[1])).toBe(true);
|
||||
});
|
||||
|
||||
@@ -219,7 +220,8 @@ describe.skipIf(!existsSync(romPath))("the catching tutorial and capture in the
|
||||
expect(world.state.pokedex.caught.has(PIDGEY)).toBe(true);
|
||||
const saved = world.save();
|
||||
world.restore(saved);
|
||||
expect(world.save()).toEqual(saved);
|
||||
const reloaded = world.save();
|
||||
expect(reloaded).toEqual(afterRestore(saved, reloaded));
|
||||
});
|
||||
|
||||
it("keeps the ball when the party and the box are full", () => {
|
||||
|
||||
Reference in new issue
Block a user