trinity icon indicating copy to clipboard operation
trinity copied to clipboard

"PUT object IN BOX" does not check if the box is open at Bottom of Scaffold

Open eriktorbjorn opened this issue 5 years ago • 0 comments

>PUT COIN IN BOX
The small coin would probably fall right out.

This is handled by MBOX-F:

	 <COND (<THIS-PRSI?>
		<COND (<VERB? PUT THROW>
		       <TELL CTHEO " would probably fall right out." CR>
		       <RTRUE>)>
		<RFALSE>)

Compare this to how BOX-F handles it:

	 <COND (<THIS-PRSI?>
		<COND (<VERB? PUT>
		       <COND (<NOT <IS? ,PRSI ,OPENED>>
			      <ITS-CLOSED ,PRSI>
			      <RTRUE>)
			     (<BAG-IN-BOX?>
			      <RTRUE>)>
		       <RFALSE>)
		      (<AND <VERB? PUT-ON>
			    <BAG-IN-BOX?>>
		       <RTRUE>)>
		<RFALSE>)

It's a bit more complicated because you actualy can put things inside the box. My point is, it should still check if MBOX is open and use <ITS-CLOSED ,PRSI> if it's not.

eriktorbjorn avatar Sep 16 '20 10:09 eriktorbjorn