the-infocom-files / infidel

Infidel
3 stars 3 forks source link

The stone doors can be both blocking the way and not present #51

Open eriktorbjorn opened 5 years ago

eriktorbjorn commented 5 years ago

The stone doors puzzle is a set of room arranged like this:

+-------------+                    +-------------+
| A-PRIME     |                    | B-PRIME     |
| NEPHTH-DOOR |                    | SELKIS-DOOR |
+-------------+                    +-------------+
               \                  /
                \                /
                 +--------------+
                 | LANDING-ZERO |
                 +--------------+
                /                \
               /                  \
+-------------+                    +-------------+
| D-PRIME     |                    | E-PRIME     |
| ISIS-DOOR   |                    | NEITH-DOOR  |
+-------------+                    +-------------+

When you enter LANDING-ZERO, all four doors are removed. See CIRCULAR-ROOM-FCN.

When you move into any of the other rooms, CLOSE-DEM-DOOAHS checks if there is enough counter-weight in the opposite direction, so that the door should remain gone ("risen to the ceiling"), or if it should be put back and closed. Both

But if you go in the other direction, towards the counterweight instead of away from it, the door remains closed (which is good), but it's also gone:

>LOOK
Southeast Hallway
You are midway down the Southeast Hallway. This corridor is undecorated and the
walls are polished to a smooth lustre. The hallway continues to the southeast
and the northwest.
The path before you remains open, the stone door having risen to the ceiling,
counterbalanced by the door in the opposite corridor.

>NW
Circular Room
You are in a strange, round room which sits in the center of four hallways.
These hallways lead off to the northeast, southeast, southwest and northwest
like the spokes of a wheel. Above your head is a long tunnel which stretches up
and out of sight.
Descending from above is the end of a long rope.
As you peer down the dimly-lit hallways, you notice that the door to the
northwest is closed, while the one in the opposite hallway is all the way open.
The other two are halfway open.
A large golden cluster sits on the floor.

>NW
Northwest Hallway
You are standing in the middle of the Northwest Hallway. The walls here are
smooth and undecorated, carved out of granite. The hallway continues to the
northwest and to the southeast.
There is a broken head here.
There is a large statue here.

>NW
There's no way to get through the stone door.

>OPEN DOOR
You can't see any door here!

I think the appropriate place to fix this would be in this case in CLOSE-DEM-DOOAHS:

              (<G? <WEIGHT ,HERE> 300>
               <RFALSE>)

I.e. instead of just not doing anything, also put back the appropriate door.