WP-071: Phantom’s secret passages, storage room and treasury: the wall of fire, the rope and the final clue (Gen 1)

Status: ✅ Done (2026-11-17) Phase: 4 (game logic) Depends on: WP-068 ✅ (the armory’s slide), WP-067 ✅ (an item taken after a line), WP-047 ✅ (a way that wants snacks), WP-031 ✅ (the final clue and the accusation) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-071-2026-11-17


Result (2026-11-17)

The rooms played by WP-127 (2026-11-30). The self-test now plays them through the engine’s own event path, the fire’s snacks fed through the toolbar. The classes match the original, and nothing in the engine needed a change.

The reference is wp072_ref.py: WP-070’s, plus the four rooms, written from the trace before the engine ran. It reads the placements and Velma’s steps from the art. It never runs the engine. At script level 3 the chase check now has 5 passage lines on Phantom (115 in all), and one on Showdown, which has no such rooms (228 in all).

The first run matched every line but the storage room’s, and both differences there were in the check, not the class:

With the check now letting each room’s opening play through first, all 115 lines match.

Exit criteria:

  1. Against the reference: ✅ Phantom:
    • The classes: each room gets its own.
    • The first passage: Velma walks in from the armory’s slide, Daphne from the storage room, and nobody from the second passage.
    • The wall of fire: a requires object burning (FLAMEA) with its sound. At each level it needs the level’s snacks plus two. Clicked with none, or with one too few, it gives that level’s line, holding input, and the snack box flashes. With enough, it goes out through movie 39. Back in the room it shows FLAMEB without the sound. GargoyleFlameActive saves as No; only Yes loads as burning, and a new game lights it again.
    • The storage room: the rope is a requires object until had. The hotspots’ lines run 370X_, 370X1_, 370X2_, then start over, without holding input; hotspot 3 has none. The rope with the arrow gives 370B_ before the well and 370A_ after it, holding input. As the line ends, Velma takes the rope in the same tick, with the cursor out and input held. The rope reaches the toolbar 102 ticks later (her step 34), and she is done at 165. Leaving before then still gives the rope.
    • The treasury: the Princess clicked with the arrow sets FinalClue and goes to ROOM_Suspect_Chooser through movie 55. With an item, or a click elsewhere, nothing happens.
    • Showdown prints that it has no secret passages.
  2. Live, Phantom: ✅ Through test_script, minimized:
    • The fire clicked with no snacks: Treasury.360A_.
    • Starting with GargoyleFlameActive=No: the gargoyle with the fire out.
    • The rope: 370B_, then Velma took it, and it went into the toolbar.
    • The Princess: movie 55, then the suspects with the final clue.
  3. Build and diff: ✅ Scooby-only build: 0 errors, 0 warnings. The exit, click, inventory and hint checks have nothing stuck. The room check is identical to WP-020’s (69 and 53 rooms).
    • The other checks match WP-070’s run, except that Phantom’s profile check now writes and imports GargoyleFlameActive, and some random keys vary by run: the drawbridge’s, Ewan’s CurrentQuestion, and Showdown’s first clue.
    • Fork commit 287fe5637b (7 files staged by name) is pushed.

Deviations and gaps:

Found on the way:


Goal

Port four of Phantom’s rooms: the two secret passages, the storage room and the treasury. They come next in its audit’s order, where the gallery, the magic mirror and ROOM_P31_KST follow. Until now these rooms had the base class:

Background

The rooms (scooby-exe):

Scope

In scope (fork, engines/scooby/ only):

Exit criteria

  1. Both titles match an independent reference line for line:
    • the classes and the first passage’s walk-ins;
    • the fire by level, with and without the snacks, and its profile key;
    • the rope’s placement, the hotspots, the rope’s lines and Velma’s take, and leaving during it;
    • the Princess.

    Showdown prints that it has no secret passages, as its reference does.

  2. Live, in Phantom: the fire’s line; the fire out; the rope; the Princess into the accusation.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged but for the new profile key and random keys. The fork diff stays inside engines/scooby/, staged by name.

Deliverables