Open eriktorbjorn opened 5 years ago
I just realized that there is also a PRE-FILL
routine:
<ROUTINE PRE-FILL ("AUX" TX)
<COND (<AND <NOT ,PRSI> <SET TX <GETPT ,HERE ,P?GLOBAL>>>
<COND (<ZMEMQB ,GLOBAL-WATER .TX <PTSIZE .TX>>
<SETG PRSI ,GLOBAL-WATER>
<RFALSE>)
(T
<TELL "There's nothing to fill it with." CR>
<RTRUE>)>)>
<COND (<NOT <EQUAL? ,PRSI ,GLOBAL-WATER>>
<PERFORM ,V?PUT ,PRSI ,PRSO>
<RTRUE>)>>
But it's not actually used, since it's not in any syntax definition. Which is good, since that one also refers to GLOBAL-WATER
.
This is what
V-FILL
looks like:So it seems to me that what it should print is "You can't do that." when there is water nearby.
The problem is that
GLOBAL-IN?
looks for local global objects, andGLOBAL-WATER
is a global object.So what it should look for is probably the
LAKE
object.The
LAKE
object is local global toWEST-LAWN
,EAST-LAWN
andNORTH-LAWN
. It should perhaps also be local global toBEHIND-SHED
, since going east from there tells you that you can't go into the lake.There are also a couple of other local global objects that should be a source of water. At the very least
SINK
, perhaps alsoSHOWER
.So something like this:
Of course, it's a very minor point since you still can't actually fill anything with water.