the-infocom-files / enchanter

Enchanter
8 stars 3 forks source link

Should "KNOCK ON GATE" work like "KNOCK ON DOOR"? #32

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

V-KNOCK has a special case for doors:

<ROUTINE V-KNOCK
     ()
     <COND (<WORD-TYPE ,PRSO ,W?DOOR>
        <TELL "I don't think that anybody's home." CR>)
           (ELSE <TELL "Why knock on " A ,PRSO "?" CR>)>>

I think what it means is that if PRSO has "DOOR" as one of its synonyms, it will print "I don't think anybody's home." I have tested this, and it seems to work.

But if you try to knock on, say, the gate to the castle, it just says "Why knock on an iron gate?"

Should it check for W?GATE as well? That should then cover IRON-GATE, RUSTY-GATE and NORTH-GATE-OBJ.