WP-046: Showdown’s Sheriff’s office: the cell door, the oil can and the snacks (Gen 1)

Status: ✅ Done (2026-11-15) Phase: 4 (game logic) Depends on: WP-044 ✅ (the jail), WP-024 ✅ (snacks), WP-023 ✅ (inventory and requires objects), WP-021 ✅ (clickables) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-046-2026-11-15


Result (2026-11-15)

The reference is wp047_ref.py: the hotel fix’s, plus the office, written from the trace before the engine ran. It reads the placements, step counts, clickable states and priority= keys from the art and object.ini, and which scenes and sounds are on the disc from the sound archives’ indexes. It never runs the engine. At script level 3 the chase check now logs 145 lines on Showdown: the earlier 139 and 6 for the office. The reference prints the same 145, none different, on the first run. On Phantom both print the one line saying there is no chase.

Exit criteria:

  1. Against the reference: ✅ Showdown:
    • The placements. The door is a requires object at depth 1, on its closed state. The way into the jail is an exit at depth -1000. Hotspots 1 and 4 are clickables at depth -1. With MoaningActive (a new game’s) the opening is 140A_, unplayed; without it there is none. With the oil can used the door is open. Once the blanket has been taken too, it shows the bed gone, and the way into the jail isn’t built.
    • The hotspots. Hotspot 1 gives 140X_ on its B and 140X3_ on its E, held, and nothing on C, D, F and A. Hotspot 4 gives HOTSPOT4A_ and HOTSPOT4A2_. On its C, Shaggy starts his sandwich on tick 52, when the C stops (11 steps, with Global.Idle.SHAGGY_S1_E, input held), and input is free on tick 85.
    • The stuck door. Four times: input is held, and on tick 1 Shaggy shakes the bars (91 steps, Shaggy.Shakes.Bars). On tick 274 comes 150A1_, 150A12_, 150A13_, then 150A1_ again, not held, and input is free.
    • The oil can. It is used up and the arrow is back, with input held. On tick 1 Shaggy oils the door (134 steps, Shaggy.Oils.Door) and the door is hidden. On tick 403 it shows open and input is free. Back again, it is open.
    • The way into the jail. At each level the gang is kept with 150A_, 150A2_ or 150A3_, held, and the toolbar opens for the flash. The way to Street 1 isn’t kept. At level 1 the gang is kept after 0, 1 and 2 snacks, and goes through after 3.
  2. Live, Showdown: ✅ Through test_script, minimized, from profiles in the original’s form:
    • The stuck door. Shaggy shook the bars, and 150A1_ followed, not held.
    • The oil can. Used on the door, Shaggy oiled it, and it was open on tick 586.
    • The jail. With the door open, the way in gave 150A_ and the snack box flashed. Fed two snacks from the toolbar, Scooby took them. The way in then walked the gang off through movie 29 (360 frames) into the jail.
  3. Build and diff: ✅

Deviations and gaps:


Goal

Make Showdown’s Sheriff’s office play as the original does. It is the first of the rooms the room class audit found still on the base class. Until now:

Background

The office (scooby-exe):

Scope

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

Out of scope:

Exit criteria

  1. Showdown matches an independent reference line for line:
    • the class;
    • the placements, and the opening with and without MoaningActive;
    • the door with the oil can used, and with the blanket taken;
    • hotspot 1’s lines on its B and E, hotspot 4’s on A and B, and the sandwich after its C, with their ticks;
    • the stuck door four times, with its lines in turn;
    • the oil can on the door, Shaggy, and the door open, with their ticks;
    • the way into the jail by level, the flash, and the snacks that let the gang through.

    Phantom prints that it has no chase, as its reference does.

  2. Live, in Showdown, from profiles in the original’s form:
    • the stuck door;
    • the oil can opening it;
    • the snack gate, two snacks, and the way into the jail.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged. The fork diff stays inside engines/scooby/, staged by name.

Deliverables