the-infocom-files / cutthroats

Cutthroats
3 stars 3 forks source link

You can turn the metal detector on/off when it already is #26

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>EXAMINE SWITCH
The switch is now in the "on" position.
The small machine is clicking slowly.

>TURN ON SWITCH
The switch is now in the "on" position.
The small machine is clicking slowly.

>TURN OFF SWITCH
The switch is now in the "off" position.

>TURN OFF SWITCH
The switch is now in the "off" position.

Which is odd, because the game has been generally very strict about this sort of thing so far. There's even a routine for printing "It's already ..." messages, TELL-ALREADY, that's used frequently.

It's probably METAL-DETECTOR-F that needs to check for this:

           (<VERB? LAMP-ON>
        <SETG DETECTOR-ON T>
        <TELL-SWITCH "on">
        <RTRUE>)
           (<VERB? LAMP-OFF>
        <SETG DETECTOR-ON <>>
        <TELL-SWITCH "off">
        <RTRUE>)