Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weirdness with opening a thing ... #33

Closed
skx opened this issue Aug 11, 2022 · 0 comments · Fixed by #36
Closed

Weirdness with opening a thing ... #33

skx opened this issue Aug 11, 2022 · 0 comments · Fixed by #36
Labels
bug Something isn't working spoiler This issue "spoils" the game.

Comments

@skx
Copy link
Owner

skx commented Aug 11, 2022

The following sequence of actions shouldn't work

  • down
  • down
  • open trapdoor
  • look

Output is:

>open trapdoor
The trapdoor opens, showing a murky set of steps leading downwards into shadow.

>look
You are in the ground floor of the lighthouse.

The ground floor seems very crowded, with most of the room
taken up by a coat-rack, boots, and similar things.

You see:
     A small rug.

Actually going down works too - we shouldn't be able to open the trapdoor if it isn't visible. I guess this is related to using item-state (introduced in ba68969) rather than having two objects.

@skx skx added bug Something isn't working spoiler This issue "spoils" the game. labels Aug 11, 2022
skx added a commit that referenced this issue Aug 11, 2022
We have added a logical "invisible" state to the trapdoor.  All of
our objects are already allowed to be invisible, but they tend to
be things that can't be interacted with, or fake-invisible so that
you can access them if you know about them.

The trapdoor must be really invisible though, so it can only be
opened/closed once discovered.

Add the third state, and use it appropriately.  This closes #33.
@skx skx closed this as completed in #36 Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spoiler This issue "spoils" the game.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant