Open Goldenrod City, Whitney's gym and the Radio Tower quiz (#32)
Enable Goldenrod City and its buildings, the department store with its elevator and rooftop, the Underground and its rooms, the Radio Tower floors and the Route 35 gate. Port what their scripts need: the herb shop, bargain shop, pharmacy and rooftop sale marts with ROM stock, prices and text; the Name Rater; the haircut brothers' happiness tables; the Lucky Number show over the party and boxes with its saved number and Friday countdown (RTC day timers with the 140-day wrap); coin and money balance boxes; Game Corner prize registration through NewPokedexEntry; gift Pokémon to the box when the party is full, with OT, nickname and MAIL (Kenya's 15-letter first line now stores). Saves gain hallOfFame, timers and luckyNumber, with defaults for older saves, and wUndergroundSwitchPositions joins the saved script bytes. The playthrough continues to the Bicycle, Whitney, the PLAINBADGE and the radio card. SlotMachine and CardFlip are still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f4ef244fc7
commit
0930b780fc
19 files changed
+1596
-126
No files matched your search
+10
-1
@@ -179,6 +179,7 @@ function showChoice(choice: Choice | undefined) {
|
||||
container.hidden = true;
|
||||
} else if (choice.kind === "yesno")
|
||||
container.replaceChildren(
|
||||
...balanceBox(choice.balance),
|
||||
button("YES", choice.selected === 1, () => runtime.choose(1)),
|
||||
button("NO", choice.selected === 0, () => runtime.choose(0)),
|
||||
);
|
||||
@@ -296,13 +297,21 @@ function showChoice(choice: Choice | undefined) {
|
||||
}),
|
||||
);
|
||||
// As in the original there is no CANCEL entry: B leaves the menu.
|
||||
container.replaceChildren(list);
|
||||
container.replaceChildren(...balanceBox(choice.balance), list);
|
||||
// On a small screen the box scrolls; keep the highlighted entry in view.
|
||||
list
|
||||
.querySelector('[aria-selected="true"]')
|
||||
?.scrollIntoView({ block: "nearest" });
|
||||
}
|
||||
}
|
||||
/** The money or coin box a script placed beside a choice. */
|
||||
function balanceBox(balance: string | undefined): HTMLElement[] {
|
||||
if (!balance) return [];
|
||||
const box = document.createElement("output");
|
||||
box.className = "choice-balance";
|
||||
box.textContent = balance;
|
||||
return [box];
|
||||
}
|
||||
/** The naming screen as a text field and OK: an empty name keeps the
|
||||
* current one. */
|
||||
function nameField(
|
||||
|
||||
Reference in new issue
Block a user