the-infocom-files / leathergoddesses

Leather Goddesses of Phobos
4 stars 3 forks source link

"GO THROUGH DOOR" doesn't always work #38

Open eriktorbjorn opened 3 years ago

eriktorbjorn commented 3 years ago

"GO THROUGH DOOR" is usually handled by V-ENTER:

    <COND (<FSET? ,PRSO ,DOORBIT>
           <DO-WALK <OTHER-SIDE ,PRSO>>
           <RTRUE>)

The OTHER-SIDE routine works by looking for a "door exit" that matches the object you're trying to go through. So it works for, for instance, from "In Space" because the exit is defined as (SOUTH TO AT-MAIN-HATCH IF HATCH IS OPEN).

But it does not work from "At Main Hatch", because there the exit is defined as (NORTH PER HATCH-ENTER-F):

>LOOK
At Main Hatch
   To the "north," the main hatch of the flagship is open. A long corridor leads
"east."

>GO THROUGH HATCH
Did you have any particular direction in mind?

For it to work, I guess the hatch would have to handle the ENTER action by itself. As far as I can tell, only three doors are affected by this: EXAM-ROOM-DOOR, HATCH and PRIVATE-CABIN-DOOR.