the-infocom-files / enchanter

Enchanter
8 stars 3 forks source link

Having the adventurer open the guarded door does not remove the monsters #49

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

If you use the KULCAD spell on the guarded door, this happens in DOOR-ILLUSION-F:

               <FSET ,DOOR-ILLUSION ,INVISIBLE>
               <FCLEAR ,DOOR-REALITY ,INVISIBLE>
               <FCLEAR ,DOOR-REALITY ,OPENBIT>
               <FCLEAR ,DOOR-REALITY ,LOCKEDBIT>
               <SETG DOOR-ILLUSION-GONE T>
               <REMOVE ,MONSTERS-1>
               <REMOVE ,MONSTERS-2>
               <REMOVE ,MONSTERS-3>

If the adventurer breaks the illusion for you, NO-ILLUSIONS does this:

     <FSET ,DOOR-ILLUSION ,INVISIBLE>
     <FCLEAR ,DOOR-REALITY ,INVISIBLE>
     <FCLEAR ,DOOR-REALITY ,LOCKEDBIT>
     <FSET ,DOOR-REALITY ,OPENBIT>
     <SETG DOOR-ILLUSION-GONE T>

The adventurer opens the door, which is fine, but MONSTERS-1, MONSTERS-2 and MONSTERS-3 remain in the room.

It doesn't make that much difference, since DOOR-ILLUSION-F won't do anything if DOOR-ILLUSION-GONE is true. But it does mean that you can still refer to the dragon, the gargoyle, the iron chains, etc. afterwards.

eriktorbjorn commented 4 years ago

Also, in both cases FLOATING-SIGN is left behind. It should probably be removed too.