WP-121: Phantom’s dining room, played (Gen 1)

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


Goal

Play the dining room (ROOM_P12_Dining_Room, 0x40FD00, vtable 0x45E810) through the engine’s own event path, against the decompile, and fix what differs.

WP-063 ported the room. Its check clicked Maria through the room class’s click() and hotspot 2 through clickClickable(), never through the mouse. It’s the fourth of the 11 checks that click through a class or script function, after the drawbridge, the room of doors and the throne room (WP-117, WP-119, WP-120).

What the decompile says

What differed

Nothing. The room class matches the decompile, and nothing in the engine needed a change. The hold while Maria gives is the class’s isBusy(), which returns “thanks”.

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-120 run except for the per-run random keys. No new warnings.
  3. Live. Scripted runs show the hovers, hotspot 2’s fright, a click on Maria into her game, and her clue with no cursor while she gives it.
  4. Process. The fork PR against scooby-engine is open (merged on 2026-11-29).

Result

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

Deliverables