the-infocom-files / cutthroats

Cutthroats
3 stars 3 forks source link

You can put objects under the airtight door #28

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>LOOK
Middle Deck
This cabin was once a passenger compartment, although the fragile partitions
within have collapsed. The room is filled with air and a glance tells you why:
the closed door to aft kept the air and water pressures equalized, stopping the
flow of water up through the hole in the deck.

>PUT GLOB UNDER DOOR
Done.

>OPEN DOOR
The door is now open.
Water rushes in through the open door and the hole in the deck, filling the room
to above your head, forcing the air out.

>SOUTH
Middle Deck
This former dining room has some tables upturned and scattered about, a door
forward, a hole through the floor, and a narrow opening abaft.
There is a glob of putty here.

So you can put objects under AIRTIGHT-DOOR, and have them end up on the other side, even though the door is... well, airtight.

That's because V-PUT-UNDER allows that for any object that has DOORBIT, as long as the object you try to put under it has a size smaller than 5, and AIRTIGHT-DOOR-F does not check for it.

eriktorbjorn commented 4 years ago

Completely untested, but perhaps add something like this to AIRTIGHT-DOOR-F:

(<VERB? PUT-UNDER>
 <COND (<FSET? ,PRSI ,OPENBIT>
        <TELL-WHY-BOTHER>)
       (T <TELL-NO-NO>)>)

This should keep the responses consistent with V-PUT-UNDER.