WP-128: Phantom’s arenas, played (Gen 1)

Status: ✅ Done (2026-11-30). Fork PR barefootbetters/scummvm#53 merged on 2026-11-30 (merge commit c1c88abe41). Phase: 5 (rooms played) Depends on: WP-069 ✅ (the port of the two arenas), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-128-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 arenas (ROOM_P09_Arena1, 0x40D4E0; ROOM_P14_Arena2, 0x40D790) through the engine’s own event path, against the decompile, and fix what differs.

WP-069 ported the arenas. Its check sent the stone’s and the pile’s events, and called the second arena’s click() on Brad, never through the mouse. These are the ninth 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. Brad’s click is read on the press, where the original reads the release. As in WP-117, WP-120, WP-121, WP-124, WP-125 and WP-127, 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-127 run except for the per-run random keys and Maria’s item places. No new warnings.
  3. Live. Scripted runs sharpen the shears through movie 40, show Brad rising in the opening and the pile into his game, and give him the shield through Big Head, after which Velma takes the mirror.
  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