the-infocom-files / witness

The Witness
3 stars 4 forks source link

"PHONG, GIVE GUN TO ME" gives you the keys #44

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>INVENTORY
You are empty-handed.

>PHONG, GIVE GUN TO ME
"Here, you may as well take them. I don't see how Mr. Linder can object now."

>INVENTORY
You are carrying:
  a set of house keys

That seems to be because of this piece of PHONG-F:

       (<==? ,WINNER ,PHONG>
    <COND (<AND <VERB? FIND>
            <DOBJ? PHONG-KEYS>>
           <SETG WINNER ,PLAYER>
           <PERFORM ,V?ASK-ABOUT ,PHONG ,PRSO>
           <RTRUE>)
          (<VERB? FIND THANKS> <RFALSE>)
          (<VERB? SLAP>
           <TELL "\"No, I must be careful about that.\"" CR>)
          (<OR <AND <VERB? GIVE>
               <DOBJ? PHONG-KEYS GENERIC-KEY GENERIC-GUN OUTSIDE-GUN>>
           <AND <VERB? SGIVE>
              <IOBJ? PHONG-KEYS GENERIC-KEY GENERIC-GUN OUTSIDE-GUN>>>
           <TAKE-PHONG-KEYS>)

I'm not sure why it checks for not just the keys, but also the guns. A leftover from some earlier plot idea?