the-infocom-files / leathergoddesses

Leather Goddesses of Phobos
4 stars 3 forks source link

Dropping your only light source in the catacombs doesn't tell you that the room goes dark #25

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

If you turn off the flashlight, and it's your only light source, the game will tell you if the room goes dark:

>TURN OFF FLASHLIGHT
Okay, the flashlight is now off.
   It is now too dark to see.

But if you drop your only light source in the catacombs, you get no such message:

>DROP FLASHLIGHT
With a splash, the flashlight is lost forever.

>LOOK
It's too dark to see a thing.

Turning off the flashlight is handled by V-OFF:

        <COND (<FSET? ,PRSO ,ONBIT>
               <FCLEAR ,PRSO ,ONBIT>
               <TELL "Okay," T ,PRSO " is now off." CR>
               <NOW-DARK?>)
              (T
               <TELL "It isn't on!" CR>)>)

Dropping objects in the catacombs is handled by SPECIAL-DROP (called from V-DROP and V-THROW):

     <COND (<IN-CATACOMBS>
        <REMOVE ,PRSO>
        <TELL "With a splash," T ,PRSO " is lost forever." CR>)

So it should presumably call <NOW-DARK?> here too.