Pre-Flight — WP-072 — 2026-11-18
Filled-in copy of docs/reference/pre-flight for WP-072. Verdict at the bottom.
Nothing on main, in the fork or in an open PR touched the royal gallery or the magic mirror room.
Header
- WP:
WP-072 - Title: Phantom’s royal gallery and magic mirror room: the hung mirror, the red ball and the snack gate (Gen 1)
- Pre-flight date:
2026-11-18 - Targets generation(s): 1
- Targets disc(s): Phantom (Showdown has no such rooms)
Pre-flight intent
Validating readiness for
WP-072. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-061 | ✅ Done | 2026-11-16 | The room of doors’ JesterControl, which the gallery embeds at +0xC8. |
| WP-047 | ✅ Done | 2026-11-15 | A way that wants the level’s snacks, as the gate to the magic mirror room does. |
| WP-057 | ✅ Done | 2026-11-15 | A room’s Room::Actor-style sprite (the drawbridge’s flags), as the mirror sprite. |
| WP-067 | ✅ Done | 2026-11-17 | A character acting after a line, as Shaggy hangs the mirror. |
Repo + disc state
- Project worktree on new branch
claude/wp-072frommain(WP-071 merged), clean. - Fork on
scooby-engineat287fe5637b, clean, in sync. - Phantom.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the royal gallery and the magic mirror room)
docs/work-packets/WP-072-royal-gallery.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-072-2026-11-18.md
Fork: engines/scooby/**, staged by name. New files gallery_rooms.{h,cpp} and the check in gallery_check.cpp; a factory line, the module entries, the check’s declaration and its call.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
The gallery embeds a shared sub-object (JesterControl at +0xC8). |
— | medium | It is the same class the room of doors already ports (WP-061); the gallery reuses it by value, not a copy. |
The hung mirror is a custom sprite the class animates (0x402D90, +0xB8). |
— | medium | Modelled as a claimed requires-object placement the class drives, as the drawbridge’s flags are. |
ROOM_P31_KST is in the same audit group. |
— | low | Left for WP-073, as the task sets out; this packet takes the two rooms beside each other. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-072 session) Date: 2026-11-18
After execution — lessons learned
Lesson: a placement that is already a requires object keeps its own cursor; don’t re-claim it with the rollover. OBJ_P07_ROYAL_GALLERY_MIRROR is ID=requiresobject in object.ini, answering the found mirror (requiredanim=ANIM_CURSORHAND_MIRROR). Claiming it as a requires object and setting claim.required to ANIM_CURSOROPEN (the original’s rollover, +0x70, not its required cursor, +0x5C) made the found mirror fall on nothing (Global.WRONGS_). The fix leaves the default path to build it with its own requiredanim=, and enter() only sets its animation and its open-hand rollover.
Lesson: a check’s findSprite matches the object’s name, not the sprite’s label. The first build missed the mirror because enter() looked it up by getLabel, so it never stopped the looping requires object; the reference’s mode 0 met the engine’s mode 1. The drawbridge’s findSprite matches getObjectName.
Lesson: a shared room sub-object is reused, not re-ported. The gallery’s Jester is the room of doors’ JesterControl embedded at +0xC8; the port includes it by value and calls its enter/tick/click, rather than tracing it again.
Scope note: one fork commit of 7 files staged by name: the two classes and their check in new files, a factory line, the module entries, the check’s declaration and its call.