WP-125: Phantom’s Ewan’s quiz, played (Gen 1)

Status: ✅ Done (2026-11-30). Fork PR barefootbetters/scummvm#50 merged on 2026-11-30 (merge commit 77a9b2047b). Phase: 5 (rooms played) Depends on: WP-066 ✅ (the port of the quiz), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-125-2026-11-30. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Estimated effort: Two hours


Goal

Play Ewan’s quiz (ROOM_Ewan, 0x4109D0, vtable 0x45E890) through the engine’s own event path, against the decompile, and fix what differs.

WP-066 ported the quiz. Its check called the room class’s click() on an answer and set the hovered sprite by hand, never through the mouse. It’s the seventh of the 11 checks that click through a class or script function, after the drawbridge, the room of doors, the throne room, the dining room, Maria’s game and the kitchen (WP-117, WP-119–122, WP-124).

What the decompile says

What differed

Nothing. The room class matches the decompile, and nothing in the engine needed a change. The hold is the class’s isBusy(), true every tick until the free state. An answer’s click is read on the press, where the original reads the release. As in WP-117, WP-120, WP-121 and WP-124, a press and release on one point plays the same.

Scope

In scope:

Exit criteria

  1. Expectations first. The new lines were written from the decompile before the run.
  2. Self-test. The new lines match the decompile, with the expectation I got wrong corrected (below). The rest matches the WP-124 run except for the per-run random keys and Maria’s item places. No new warnings.
  3. Live. A scripted run shows the opening and the reading with no cursor, a click meanwhile not taken, the hovers, and a right answer erased.
  4. Process. The fork PR against scooby-engine is open (merged on 2026-11-30).

Result

Evidence labels: log (a self-test’s debug log), live (session) (a scripted run this session drove and read, with screenshots).

Deliverables