Port the Pokédex list, entries and tab (#35)
The start menu's POKéDEX runs Pokedex in New mode: the list up to the last seen Pokémon, its cursor and page moves, and DisplayDexEntry with the category, number, footprint, and the height, weight and pages once caught. The Pokédex tab shows the same records from the loaded game. Order, entries and footprints are compared with the pinned PRET source. AREA, CRY, PRNT, the option and search screens, Old and A to Z modes and Unown mode remain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
03aa913a94
commit
cdee576818
20 files changed
+1624
-29
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import { CrystalAssets } from "../src/game/rom/assets";
|
||||
import { generatePartyMon } from "../src/game/party/pokemon";
|
||||
import { ENGINE_FLAGS } from "../src/game/rom/profile";
|
||||
import { GameWorld } from "../src/game/world/world";
|
||||
|
||||
/** New Bark Town with a Cyndaquil, the Pokédex, and three Pokémon seen:
|
||||
* CHIKORITA, CYNDAQUIL (caught) and PIDGEY. */
|
||||
export function pokedexFixtureWorld(assets: CrystalAssets) {
|
||||
const world = new GameWorld(assets, () => new Date("2026-09-22T12:00:00"), () => 0x42);
|
||||
world.state.party = [
|
||||
generatePartyMon(assets.pokemon, {
|
||||
species: 155, level: 8, item: 0, otId: world.playerId,
|
||||
ot: "CHRIS", dvs: 0x9abc, caughtData: 0,
|
||||
}),
|
||||
];
|
||||
world.state.flags.add(ENGINE_FLAGS.pokedex);
|
||||
world.state.pokedex.seen = new Set([152, 155, 16]);
|
||||
world.state.pokedex.caught = new Set([155]);
|
||||
world.restore({ ...world.save(), map: "24:4", x: 13, y: 7, direction: "down", objects: [] });
|
||||
return world;
|
||||
}
|
||||
Reference in new issue
Block a user