the-infocom-files / trinity

Trinity
24 stars 5 forks source link

When handling the LOOSEN action in PRAM-P, it checks the size of the wrong object #116

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago
           (<AND <VERB? LOOSEN>
             <T? ,PRSI>
             <NOT <EQUAL? ,P-PRSA-WORD ,W?LOOSEN ,W?HOOK ,W?PRY>>>
        <COND (<G? <GETP ,PRSO ,P?SIZE> 2>
               <TELL CTHEO " rolls a few feet, then stops." CR>
               <RTRUE>)>
        <NOT-LIKELY ,PRSI "would move the pram very far">
        <RTRUE>)

PRSO is the pram, which doesn't have a SIZE property, and the default value is 0. Before changing this to PRSI:

>JIGGLE PRAM WITH COIN
It isn't likely that the seven-sided coin would move the pram very far.

>JIGGLE PRAM WITH BALL
It isn't likely that the seven-sided coin would move the pram very far.

After changing it:

>JIGGLE PRAM WITH COIN
It isn't likely that the seven-sided coin would move the pram very far.

>JIGGLE PRAM WITH BALL
The perambulator rolls a few feet, then stops.