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