trinity icon indicating copy to clipboard operation
trinity copied to clipboard

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

Open eriktorbjorn opened this issue 4 years ago • 0 comments

	       (<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.

eriktorbjorn avatar Oct 02 '20 08:10 eriktorbjorn