the-infocom-files / ballyhoo

Ballyhoo
5 stars 4 forks source link

"SEARCH TRAILER" should work the same as "SEARCH ROOM" #58

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LOOK
Inside Trailer
These quarters are furnished in a foreigner's vision of American Rugged
Individualism. The head of a moose, for example, hangs as a trophy against one
wall. Against the west wall the door stands open and a gaily decorated curtain
is open at the window.

>SEARCH TRAILER
You find nothing unusual.

>SEARCH ROOM
As the trailer door is closed, you notice a crowbar leaning against the wall,
where it looks more like a weapon than a tool.

This is handled by a special case in GLOBAL-ROOM-F:

               (<AND <VERB? SEARCH>
                     <EQUAL? ,HERE ,TAMER-ROOM>
                     <IN? ,CROWBAR ,LOCAL-GLOBALS>>
                <PERFORM ,V?CLOSE ,TAMER-DOOR>
                <RTRUE>)

But there is nothing corresponding in TAMER-TRAILER-F. Perhaps this would work, but I haven't tested it:

               (<AND <VERB? SEARCH>
                     <EQUAL? ,HERE ,TAMER-ROOM>>
                <PERFORM ,V?SEARCH ,GLOBAL-ROOM>
                <RTRUE>)