the-infocom-files / witness

The Witness
3 stars 4 forks source link

Frotz warnings if I release Monica after handcuffing her (and if you drop the handcuffs afterwards, you can't take them again) #49

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
>UNTIE MONICA
Monica rubs her wrists as you take the pair of handcuffs.Warning: @set_attr
called with object 0 (PC = 12776) (will ignore further occurrences)
Warning: @clear_attr called with object 0 (PC = 12779) (will ignore further
occurrences)
 She refuses to look at you.

That's because RELEASE-MONICA is buggy:

<ROUTINE RELEASE-MONICA ()
    <SETG MONICA-TIED-TO <>>
    <SETG MONICA-TIED-WITH <>>
    <FSET ,MONICA-TIED-WITH ,TAKEBIT>
    <FCLEAR ,MONICA-TIED-WITH ,NDESCBIT>>

It should, of course, manipulate the attributes before clearing the variables it's using. And, sure enough:

>DROP HANDCUFFS
Okeh, the pair of handcuffs is now on the floor.

>GET HANDCUFFS
You can't take the pair of handcuffs.