the-infocom-files/zork1

You can put objects through the grate from below

Opened this issue · 0 comments

>PUT GARLIC IN GRATE
The clove of garlic goes through the grating into the darkness below.

This only makes sense if you do it from above, but you also get the message if you do it from the Grating Room below. That's because the grate is a local global object and, in this case, GRATE-FUNCTION doesn't check where you are:

	       (<AND <VERB? PUT> <EQUAL? ,PRSI ,GRATE>>
		<COND (<G? <GETP ,PRSO ,P?SIZE> 20>
		       <TELL "It won't fit through the grating." CR>)
		      (T
		       <MOVE ,PRSO ,GRATING-ROOM>
		       <TELL
"The " D ,PRSO " goes through the grating into the darkness below." CR>)>)>>