the-infocom-files / zork2

Zork II: The Wizard of Frobozz
8 stars 4 forks source link

"LEAVE GAZEBO" doesn't work as intended #82

Open eriktorbjorn opened 3 years ago

eriktorbjorn commented 3 years ago
>LOOK
Gazebo
This is a gazebo in the midst of a formal garden. It is cool and restful here. A
tea table adorns the center of the gazebo.

>LEAVE GAZEBO
You're not carrying the gazebo.

GAZEBO-FCN does check for the LEAVE action:

               (<AND <EQUAL? ,HERE ,GAZEBO-ROOM> <VERB? LEAVE EXIT>>
                <DO-WALK ,P?OUT> <RTRUE>)>>

But LEAVE does not actually take an object. "LEAVE object" is actually handled by V-DROP:

<SYNTAX LEAVE = V-LEAVE>
<SYNTAX LEAVE OBJECT = V-DROP PRE-DROP>

This is not true of every game. In fact, it appears to be false in at least:

But it wouldn't surprise me if this bug happens in other places as well.