Pokémon that levelled up evolve after a won battle, following EvolveAfterBattle's checks over the ROM's evolution bytes, with the evolution screen that B can stop and move learning outside battle. The pack uses Rare Candy, stones (with ABLE/NOT ABLE labels) and vitamins, and its pocket tabs now sit in their own row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1af2beacdc
commit
45275ba83b
19 files changed
+1032
-39
No files matched your search
@@ -4,10 +4,11 @@ import { OW } from "../src/game/world/constants";
|
||||
import { generatePartyMon } from "../src/game/party/pokemon";
|
||||
|
||||
/** `room` places the player at the bedroom PC or poster, "center" at
|
||||
* Cherrygrove's Pokémon Center PC with two Pokémon; otherwise outdoors. */
|
||||
* Cherrygrove's Pokémon Center PC with two Pokémon ("candy": the first at
|
||||
* level 13, with a Rare Candy); otherwise outdoors. */
|
||||
export function foundationFixture(
|
||||
assets: CrystalAssets,
|
||||
room: boolean | "poster" | "center",
|
||||
room: boolean | "poster" | "center" | "candy",
|
||||
) {
|
||||
const world = new GameWorld(
|
||||
assets,
|
||||
@@ -16,11 +17,11 @@ export function foundationFixture(
|
||||
);
|
||||
world.state.scenes["24:4"] = 1;
|
||||
world.state.bag.keyItems.push(OW.BICYCLE);
|
||||
if (room === "center") {
|
||||
if (room === "center" || room === "candy") {
|
||||
world.state.party = [155, 16].map((species, i) =>
|
||||
generatePartyMon(assets.pokemon, {
|
||||
species,
|
||||
level: 8 - i * 4,
|
||||
level: room === "candy" && !i ? 13 : 8 - i * 4,
|
||||
item: 0,
|
||||
otId: world.playerId,
|
||||
ot: "CHRIS",
|
||||
@@ -29,10 +30,11 @@ export function foundationFixture(
|
||||
}),
|
||||
);
|
||||
world.state.bag.items = [{ item: 18, quantity: 5 }]; // POTION
|
||||
if (room === "candy") world.state.bag.items.push({ item: 0x20, quantity: 1 });
|
||||
}
|
||||
const save = world.save();
|
||||
const [map, x, y] =
|
||||
room === "center"
|
||||
room === "center" || room === "candy"
|
||||
? ["26:5", 9, 2]
|
||||
: room === "poster"
|
||||
? ["24:7", 6, 1]
|
||||
|
||||
Reference in new issue
Block a user