the-infocom-files / leathergoddesses

Leather Goddesses of Phobos
4 stars 3 forks source link

"WRAP BABY IN SHEET" doesn't check if the sheet has been turned into a shee #51

Open eriktorbjorn opened 3 years ago

eriktorbjorn commented 3 years ago
>EXAMINE SHEE
It looks just like a shee, whatever that is.
   The baby continues to wail at the top of its lungs.

>WRAP BABY IN SHEE
The sheet provides little warmth.
   The baby continues to wail at the top of its lungs.

Compare this to if the blanket has been turned into a blanke:

>EXAMINE BLANKE
It looks just like a blanke, whatever that is.
   The baby continues to wail at the top of its lungs.

>WRAP BABY IN BLANKE
Why bother?
   The baby continues to wail at the top of its lungs.

That's because BABY-F doesn't check if the sheet has UNTEEDBIT:

           (<OR <AND <VERB? PUT>
             <PRSI? ,SHEET>>
            <AND <VERB? PUT-ON WRAP>
             <PRSO? ,SHEET>>>
        <COND (<OR <IN? ,BLANKET ,BABY>
               <FSET? ,SHEET ,MUNGBIT>
               <FSET? ,SHEET ,PLURALBIT>>
               <WASTES>)
              (T
               <TELL "The sheet provides little warmth." CR>)>)