WP-120: Phantom’s throne room, played (Gen 1)

Status: ✅ Done (2026-11-29). Fork PR barefootbetters/scummvm#44 merged on 2026-11-29 (merge commit e617f82e73). Phase: 5 (rooms played) Depends on: WP-062 ✅ (the port of the room), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-120-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 throne room (ROOM_P10_Throne_Room, 0x417A90, vtable 0x45EC1C) through the engine’s own event path, against the decompile, and fix what differs.

WP-062 ported the room. Its check clicked Jane through the room class’s click(), the throne through clickClickable() and sendEvent(), and set the items as the cursor by hand. It’s the third of the 11 checks that click through a class or script function, after the drawbridge (WP-117) and the room of doors (WP-119).

What the decompile says

What differed

Nothing. The room class matches the decompile, and nothing in the engine needed a change.

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 check slips corrected (below). The rest matches the WP-119 run except for the per-run random keys. No new warnings.
  3. Live. Scripted runs give Jane the duster and the throne the ruby, each taken from the toolbar, and scare the gang with the third hotspot.
  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).

Found on the way

Deliverables