the-infocom-files / deadline

Deadline
4 stars 3 forks source link

Asking George about the safe doesn't work if you're in the hidden closet #56

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago
>LOOK
Hidden Closet
This is a secret room situated between the library and the master bedroom. The
room is bare and somewhat dusty, as if it were not often used. An unmarked
switchplate surrounds two buttons, one blue and one red. A formidable safe is
embedded in the south wall. The heavy safe door is wide open.
The library can be seen through a door to the west.
George is here.
George is holding:
  A new will

>ASK GEORGE ABOUT SAFE
"I haven't a clue."

I don't think he's a good enough liar to pull that off!

It's handled by this part of GEORGE-F:

              (<EQUAL? ,PRSI ,GLOBAL-SAFE>
               <COND (,NEW-WILL-SEEN
                  <TELL
"\"Let's not go into it, ok? You caught me looking for the will. Well, what of
it? I didn't kill Dad, if that's what you're thinking. Leave me alone!\"" CR>)
                 (,SAFE-SEEN
                  <TELL
"\"You mean my father's safe? Yeah, if he brings important papers home he puts
them in there. He keeps most important stuff at the office at the bank. You
really startled me in there. I thought I might be able to get it open. Dad
always acted like it was a big secret, something out of a spy story. Anyway,
it turns out I don't remember the combination. It was a long time ago.\"" CR>)
                 (,GEORGE-SEQUENCE
                  <TELL
"George turns toward you with rage in his eyes. \"I don't know anything about
any damn safe! Now leave me alone or I'll have you kicked out of here!\" He
turns away." CR>)
                 (T
                  <TELL
"George looks briefly toward the ceiling, as if recalling something. \"Oh, I'm
sorry. A safe? No, I don't know about any safe...except at the office, that
is. I think there's one there.\"" CR>)>)

The problem is that it only checks for <EQUAL? ,PRSI ,GLOBAL-SAFE>. It should check for <EQUAL? ,PRSI ,SAFE ,GLOBAL-SAFE> instead, the same way it checks for e.g. <EQUAL? ,PRSI ,PRS-ROBNER ,GLOBAL-MRS-ROBNER> for other questions.