POKéGEAR in the start menu runs the clock, Town Map and phone cards with the original joypad rules. Calls to Elm and Mom run their callee scripts, with the out-of-area and out-of-hours cases and HangUp's corrected timing. Mom saves a quarter of trainer prizes once asked, talking to her at home opens BankOfMom (GET, SAVE, CHANGE and the DST checks) with its digit amount box, and MomTriesToBuySomething buys items and dolls with her savings. Saves gain Mom's money, her next item and its trigger balance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3456aa4e11
commit
209778cabe
29 files changed
+2726
-47
No files matched your search
@@ -105,6 +105,23 @@ describe.skipIf(!existsSync(romPath))("trainer battles", () => {
|
||||
expect(result.prizeMoney).toBe(128);
|
||||
expect(result.texts).toContain("CHRIS got ¥128");
|
||||
});
|
||||
it("sends a quarter of the prize to Mom while she saves some", () => {
|
||||
const { mon, options } = setup();
|
||||
mon.item = 0x5b;
|
||||
const result = finish(new Battle({ ...options, mom: { saving: 1, money: 10 } }));
|
||||
expect(result.prizeMoney).toBe(96);
|
||||
expect(result.momMoney).toBe(32);
|
||||
expect(result.texts).toContain("CHRIS got ¥128 for winning! Sent some to MOM!");
|
||||
// A full account keeps the whole prize in the wallet.
|
||||
const full = setup();
|
||||
const kept = finish(
|
||||
new Battle({ ...full.options, mom: { saving: 1, money: 999999 } }),
|
||||
);
|
||||
expect(kept.prizeMoney).toBe(64);
|
||||
expect(kept.momMoney).toBeUndefined();
|
||||
expect(kept.texts).toContain("CHRIS got ¥64 for winning!");
|
||||
expect(kept.texts).not.toContain("MOM");
|
||||
});
|
||||
it("scores exhausted trainer moves before the menu, then uses Struggle", () => {
|
||||
const { options } = setup();
|
||||
options.trainer!.party[0].pp.fill(0);
|
||||
|
||||
Reference in new issue
Block a user