WP-127: Phantom’s secret passages and treasury, played (Gen 1)

Status: ✅ Done (2026-11-30). Fork PR barefootbetters/scummvm#52 merged on 2026-11-30 (merge commit a9516e1531). Phase: 5 (rooms played) Depends on: WP-071 ✅ (the port of the four rooms), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-127-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 Phantom’s two secret passages, the storage room and the treasury (ROOM_P15_Secret_Passage1, ROOM_P19_Secret_Passage2, ROOM_P18_Storage, ROOM_P16_Treasury) through the engine’s own event path, against the decompile, and fix what differs.

WP-071 ported the rooms. Its check sent the fire’s and the rope’s events with sendEvent(), set the snacks given, and called the treasury’s click(), never through the mouse. These are the eighth of the 11 checks that click through a class or script function.

What the decompile says

What differed

Nothing. The classes match the decompile, and nothing in the engine needed a change. The Princess’s click is read on the press, where the original reads the release. As in WP-117, WP-120, WP-121, WP-124 and WP-125, 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 check slips corrected (below). The rest matches the WP-125 run except for the per-run random keys and Maria’s item places. No new warnings.
  3. Live. Scripted runs put the fire out with two snacks fed through the toolbar, have Velma take the rope, and take the Princess’s final clue to the suspects.
  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