the-infocom-files / cutthroats

Cutthroats
3 stars 3 forks source link

The iron bar isn't always hidden when it's moved to the Middle Deck #23

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

The iron bar is supposed to be hidden when dropping it in the Middle Deck, as can be seen from IRON-BAR-F:

           (<VERB? TAKE>
        <COND (<ITAKE>
               <COND (<EQUAL? ,HERE ,WRECK-5>
                  <FCLEAR ,IRON-BAR ,NDESCBIT>
                      <TELL
"You take one of the " D ,IRON-BAR "s." CR>)
                 (T <TELL "Taken." CR>)>)>
        <RTRUE>)
           (<VERB? DROP>
        <COND (<AND <V-DROP>
                <EQUAL? ,HERE ,WRECK-5>>
               <FSET ,IRON-BAR ,NDESCBIT>)>
        <RTRUE>)>>

In it does work:

>LOOK
Middle Deck
This area is full of barnacle-encrusted iron bars, probably pikes used by the
sailors for fending off boarding parties. There is a plaque on one wall. Exits
are fore and aft.

>TAKE IRON BAR
You take one of the iron bars.

>DROP IRON BAR
Dropped.

>LOOK
Middle Deck
This area is full of barnacle-encrusted iron bars, probably pikes used by the
sailors for fending off boarding parties. There is a plaque on one wall. Exits
are fore and aft.

But that's not the only way to move the iron bar into the room:

>TAKE IRON BAR
You take one of the iron bars.

>THROW IRON BAR
Thrown.

>LOOK
Middle Deck
This area is full of barnacle-encrusted iron bars, probably pikes used by the
sailors for fending off boarding parties. There is a plaque on one wall. Exits
are fore and aft.
There is an iron bar here.

So I guess it would have to handle throwing the bar as well. (In which case it probably needs to check that you're not throwing something else at the iron bar...) Are there other ways?