the-infocom-files / witness

The Witness
3 stars 4 forks source link

Text could be formatted better if entering Monica's bedroom early #15

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>EAST

(Aren't you getting tired of seeing "(... is listening.)" and "What next?" and
"You are now in the ...."? From here on, the prompt will be much shorter.)
(Monica's bedroom)
On one side is a modern-style bed, with piles of well-thumbed detective stories
stacked on the table beside it. Opposite the bed is a long dressing table that
seems to serve also as desk and workbench. In the corner sits a small table for
a portable phonograph and records, and a book case with more books and pulps.
Movie posters cover the walls. A handsome door with cedar veneer leads north,
and a door and window face outside.
Linder follows you into Monica's bedroom.

There usually isn't a blank line after a typed command like that. But now there is because of the "Aren't you tired ..." message. What's happening here is that, for some strange reason, MONICA-ROOM-F triggers I-PROMPT-2 like this:

<ROUTINE MONICA-ROOM-F ("OPTIONAL" (RARG <>))
    <COND (<==? .RARG ,M-ENTER> <I-PROMPT-2>)
          (<==? .RARG ,M-LOOK>
           <TELL
"On one side is a modern-style bed, with piles of well-thumbed detective
stories stacked on the table beside it. Opposite the bed is a long
dressing table that seems to serve also as desk and workbench. In the
corner sits a small table for a portable phonograph and records, and a
book case with more books and pulps. Movie posters cover the walls. A
handsome door with cedar veneer leads north, and a door and window face
outside." CR>)>>

I don't understand why, because I-PROMPT-2 will be called by 8:10 anyway, and the earliest I've been able to reach Monica's bedroom is 8:07. But if it's going to, it would probably look nicer if the message appeared after the room description, not before.

eriktorbjorn commented 4 years ago

The same thing also happens in Mr. Linder's bedroom:

<ROUTINE LINDER-ROOM-F ("OPTIONAL" (ARG <>))
    <COND (<==? .ARG ,M-ENTER>
           <I-PROMPT-2>)
          (<==? .ARG ,M-LOOK> ;<VERB? LOOK>
           <TELL
"The bedroom is elegant but not tidy. A four-poster bed, chair and
dresser, made of teak and mahogany, look hand-crafted. There are doors
on the west and south walls, and a door and window to the east look
outside. Clothes and newspapers are scattered about. It seems that
Linder misse"
<COND (<FSET? ,CORPSE ,INVISIBLE> "s") (T "d")>
" the woman's touch." CR>)>>