the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"CROSS RAILROAD BRIDGE" from Wicker & Pier takes you to the wrong room #18

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LOOK
Wicker & Pier
Northeast of here, Wicker curves northwards and passes under an old railroad
trestle. An aging, wooden pier leads off to the southeast. On the eastern corner
of the street is what appears to be a bookstore. A liquor store occupies the
southern corner, and a row of dismal apartment buildings lines the northwestern
side of Wicker.

>CROSS RAILROAD BRIDGE
Tenement
This is a substandard residence unit. The exit is southeast.

The RAILROAD-BRIDGE object is local global to four rooms:

From a mapping perspective, it's two different bridges crossing the same railroad at different places. One between BEND and WICKER-AND-RIVER, and another one between MAIN-AND-WICKER and WICKER-AND-PIER.

You go SE from BEND to get to WICKER-AND-RIVER and NW to go back.

You go SOUTH from MAIN-AND-WICKER to get to WICKER-AND-PIER and NE to go back.

This is how RAILROAD-BRIDGE-F implements it:

     <COND (<VERB? CROSS WALK-UNDER>
        <COND (<EQUAL? ,HERE ,MAIN-AND-WICKER>
               <DO-WALK ,P?SOUTH>)
              (<EQUAL? ,HERE ,BEND>
               <DO-WALK ,P?SE>)
              (<EQUAL? ,HERE ,WICKER-AND-RIVER>
               <DO-WALK ,P?NW>)
              (T
               <DO-WALK ,P?NW>)>)>>

So the default case (used for WICKER-AND-PIER) is wrong: It should go NE, not NW.