the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"TAKE BOOK" and "CLOSE BOOK" doesn't check if Jill is reading it in bed #63

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

JILL-BOOK-F has special cases for when Jill is reading it:

     <COND (<VERB? TAKE>
        <COND (<EQUAL? ,JILL-COUNTER 4 10>
               <TELL "Jill's in the middle of reading it!" CR>)
              (T
               <TELL
"You have no interest in those gothic novels." CR>)>)
           (<VERB? CLOSE>
        <COND (<EQUAL? ,JILL-COUNTER 4 10>
               <PERFORM ,V?TAKE ,JILL-BOOK>
               <RTRUE>)
              (T
               <TELL "It is!" CR>)>)

This is how JILL-COUNTER is documented in the source code:

<GLOBAL JILL-COUNTER -1> ;"used for 2041 and 2051:
              0 = sleeping (BedR)         7 = washing dishes (K)
              1 = dressing (BedR)         8 = painting (LR)
              2 = cleaning (BedR)         9 = cleaning (LR)
              3 = making a salad (K)     10 = reading (LR)
              4 = reading (LR)       11 = washing hair (Bath)
              5 = painting (LR)      12 = reading (BedR)
              6 = eating a salad (K)"

So it checks the two cases where she's reading in the Living Room (4 and 10), but it misses the case where she's reading in the Bedroom (12).

>LOOK
Bedroom
The room is almost filled by your bed, a bureau, and the baby's crib. A doorway
leads south to the living room, and the bathroom is to the east.
Jill is lying on the bed, reading a book.
It looks like the crib contains:
   a toy duck
   a baby

>TAKE BOOK
You have no interest in those gothic novels.