WP-124: Phantom’s kitchen, played (Gen 1)

Status: ✅ Done (2026-11-30). Fork PR barefootbetters/scummvm#49 merged on 2026-11-30 (merge commit d49e7e83d2). Phase: 5 (rooms played) Depends on: WP-065 ✅ (the port of the room), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-124-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 the kitchen (ROOM_P13_Kitchen, 0x412C90, vtable 0x45E954) through the engine’s own event path, against the decompile, and fix what differs.

WP-065 ported the room. Its check clicked Ewan through the room class’s click(), the grease through sendEvent() and hotspot 3 through clickClickable(), never through the mouse. It’s the sixth 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 and Maria’s game (WP-117, WP-119–122).

What the decompile says

What differed

Nothing. The room class matches the decompile, and nothing in the engine needed a change. The holds while Ewan gives and while Fred fetches the grease are the class’s isBusy(), which returns “thanks” or the bottle at the grease. Ewan’s click is read on the press, where the original reads the release; as in WP-117, WP-120 and WP-121, 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-122 run except for the per-run random keys and Maria’s item places. No new warnings.
  3. Live. Scripted runs show the hovers, Ewan into Big Head, his clue with no cursor while he gives it, his scenes asleep, and the grease filled with the bottle taken from the toolbar.
  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