Open eriktorbjorn opened 4 years ago
Though if you start messing with TOUCHBIT
that could mess up if you get yourself killed and then return to the scene.
Currently the key and fluff are restored to their initial state in the Zaphod case of JIGS-UP
:
(<EQUAL? ,IDENTITY-FLAG ,ZAPHOD>
<SETG BOAT-DOCKED <>>
<SETG BOAT-COUNTER 0>
<SETG CRASH-COUNTER 0>
<SETG DAIS-COUNTER 0>
<MOVE ,GUARDS ,LOCAL-GLOBALS>
<MOVE ,BLASTER ,LOCAL-GLOBALS>
<MOVE ,RIFLES ,LOCAL-GLOBALS>
<FCLEAR ,SPEEDBOAT ,TOUCHBIT>
<FSET ,RIFLES ,NDESCBIT>
<DISABLE <INT I-GUARDS>>
<DISABLE <INT I-SPEEDBOAT>>
<COND (<NOT <FSET? ,SPEEDBOAT ,REVISITBIT>>
<MOVE ,TOOLBOX ,SPEEDBOAT>
<MOVE ,CUSHION-FLUFF ,LOCAL-GLOBALS>
<MOVE ,KEY ,LOCAL-GLOBALS>)>
<ROB ,PROTAGONIST ,LOCAL-GLOBALS>)
So whatever mechanism we use to flag that the key has already been found, this is probably where it should be reset.
That's because
PILOT-SEAT-F
checks if the key is inLOCAL-GLOBALS
to determine if it's under the seat:And
WATER-PSEUDO
moves things toLOCAL-GLOBALS
when you put things in the water:Perhaps it would be better to use the key's
TOUCHBIT
as the indicator instead? (I don't think it gets set at the moment, but that's easily fixed.)