the-infocom-files / deadline

Deadline
4 stars 3 forks source link

You can put objects into other people #31

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago
>GIVE BOOK TO DUNBAR
Ms. Dunbar refuses your offer.

>PUT BOOK IN DUNBAR
Done.

>SEARCH DUNBAR FOR BOOK
Ms. Dunbar resignedly allows you to perform the search.
Indeed, Ms. Dunbar has the mystery book.
eriktorbjorn commented 5 years ago

It may be because every (?) person in the game has OPENBIT. That was removed in The Witness. So that could be one way to fix it, but perhaps it's better to simply add a check to PRE-PUT. Something like this, perhaps?

<ROUTINE PRE-PUT ()
     <COND (<OR <IN? ,PRSO ,GLOBAL-OBJECTS>
            <NOT <FSET? ,PRSO ,TAKEBIT>>
            <FSET? ,PRSI ,PERSON>>
        <TELL "Nice try." CR>)>>