the-infocom-files / deadline

Deadline
4 stars 3 forks source link

MEDICINE_BOTTLE-F says the bottle is closed even when it's not #22

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago
<ROUTINE MEDICINE-BOTTLE-F ()
     <COND (<VERB? COUNT>
        <TELL "It's hard to tell with the bottle closed." CR>)>>
>COUNT ALLERGONE
It's hard to tell with the bottle closed.

>OPEN ALLERGONE
Opening the bottle of Allergone reveals a bunch of Allergone tablets.

>COUNT ALLERGONE
Which allergone do you mean, the bottle of Allergone or the bunch of Allergone tablets?

>BOTTLE
It's hard to tell with the bottle closed.

There are a number of ways this could be made nicer, I think. The routine is used for both the Allergone and the Sneezo tablets, though, so it's not quite as straightforward as it may first seem.