the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"LEAVE POST OFFICE" doesn't work when inside the post office #19

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

The game has several objects representing various buildings, so that you can "ENTER building" and "LEAVE building". They usually work by either telling you to "look around" (if you're entering while inside or exiting while outside) or by calling DO-WALK with the appropriate direction.

POST-OFFICE-OBJECT-F has a slight bug:

>LOOK
Post Office
This is an old post office, probably built back in the days when "mail" usually
meant letters and packages delivered by human messengers. A couple of people are
waiting at the counter. A doorway leads out to the northwest.

>LEAVE POST OFFICE
Look around you.

>NW
Elm & Park
This is the intersection of the north-south Park Street and the east-west Elm
Street. A park entrance is on the northeast corner, and large, old-fashioned
edifices occupy the other three corners of the intersection.

>LEAVE POST OFFICE
Courthouse
The courthouse is of the same vintage as the other governmental buildings in the
area, dating from around 1990 or so. An exit leads southeast.

The court is in session. A woman is being tried for petty theft.

This part of POST-OFFICE-OBJECT-F:

           (<VERB? LEAVE DISEMBARK>
        <COND (<EQUAL? ,HERE ,POST-OFFICE>
               <TELL ,LOOK-AROUND CR>)
              (T
               <DO-WALK ,P?NW>)>)

should look something like this instead:

           (<VERB? LEAVE DISEMBARK>
        <COND (<EQUAL? ,HERE ,POST-OFFICE>
               <DO-WALK ,P?NW>)
              (T
               <TELL ,LOOK-AROUND CR>)>)