the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

Misleading response to "REACH INTO FRIDGE" #51

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>OPEN FRIDGE
Opening the refrigerator reveals a vegetable salad, a ham sandwich, a turkey
sandwich, a can of soda, and a bottle of baby formula.

>REACH INTO FRIDGE
It's empty.

This is because of this case in V-REACH-IN:

           (<OR <NOT <SET OBJ <FIRST? ,PRSO>>>
            <FSET? .OBJ ,INVISIBLE>
            <NOT <FSET? .OBJ ,TAKEBIT>>>
        <TELL "It's empty." CR>)

The salad does not have TAKEBIT (you can't pick it up, because it's Jill's). If you wait until she removes the salad from the fridge, it works as expected:

>WAIT 60 MINUTES
Time passes...

Jill walks in and gets a vegetable salad from the refrigerator. She sits at the
dinette set and begins slowly munching on the salad.

>OPEN FRIDGE
Opening the refrigerator reveals a ham sandwich, a turkey sandwich, a can of
soda, and a bottle of baby formula.

>REACH INTO FRIDGE
You reach into the refrigerator and feel something.

I'm not sure what the best fix for this is.