the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

Perelman's reaction to you messing with Interface Mode doesn't quite work as intended? #74

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

I-INTERFACE-CHANGE gets called if you mess with the settings in Interface Mode. It contains this special case, which apparently is supposed to catch if you disturbed Perelman in the middle of the night:

        <COND (<OR <G? ,TIME 420>
               <L? ,TIME 1400>
               <VISIBLE? ,PERELMAN>
               <QUEUED? ,I-VIEW>
               <QUEUED? ,I-FIRST-SIMULATION-RESULT>
               <QUEUED? ,I-RECORDINGS-VIEWED>
               <QUEUED? ,I-MESSAGE-E>>
               T)
              (T
               <TELL
"Not only was it a dumb thing to do, but you got me woken up
in the middle of the night. ">)>

But that doesn't quite work, because the time will always be either greater than 420 (after 7:00 am) or less than 1400 (before 11:20 pm). I'm guessing it should be:

        <COND (<OR <AND <G? ,TIME 420>
                <L? ,TIME 1400>>
               <VISIBLE? ,PERELMAN>
               <QUEUED? ,I-VIEW>
               <QUEUED? ,I-FIRST-SIMULATION-RESULT>
               <QUEUED? ,I-RECORDINGS-VIEWED>
               <QUEUED? ,I-MESSAGE-E>>
               T)
              (T
               <TELL
"Not only was it a dumb thing to do, but you got me woken up
in the middle of the night. ">)>

But I haven't tested it.