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

Breaking an item should unpair it from exits. #94

Open
seisatsu opened this issue Jul 15, 2020 · 0 comments
Open

Breaking an item should unpair it from exits. #94

seisatsu opened this issue Jul 15, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@seisatsu
Copy link
Owner

If an exit has a paired key, breaking that key item will not unpair it from the exit. The problem is that items don't have a record of the exit they're paired to. This will have to be changed, in order to prevent having to search through all exits in the database when an item is broken. That will also require removing the item's pairing record when an exit is broken.

This is not very high priority, because nothing will happen if an exit has a nonexistent key paired to it. We could even have the key get lazily unpaired the next time someone looks at or uses the exit and its key item is found to not exist.

@seisatsu seisatsu added the bug Something isn't working label Jul 15, 2020
@seisatsu seisatsu changed the title Breaking an item does not unpair it from exits. Breaking an item should unpair it from exits. Jul 15, 2020
@seisatsu seisatsu added enhancement New feature or request and removed bug Something isn't working labels Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant