the-infocom-files / zork1

Zork I: The Great Underground Empire
11 stars 3 forks source link

You can throw just about anything off the chasm pseudo-object #54

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago
>THROW HANDS OFF CHASM
The pair of hands drops out of sight into the chasm.

This can be tested from East of Chasm (south of the Cellar), and is handled by this code in CHASM-PSEUDO:

           (<AND <VERB? PUT THROW-OFF> <EQUAL? ,PRSI ,PSEUDO-OBJECT>>
        <TELL
"The " D ,PRSO " drops out of sight into the chasm." CR>
        <REMOVE-CAREFULLY ,PRSO>)>>

It should probably check the return value from IDROP to see if the object can be let go off. Either here or in a hypothetical PRE-THROW-OFF routine.