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

The Witness: Make item links work properly with the hint system #3110

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

NewSoupVi
Copy link
Member

@NewSoupVi NewSoupVi commented Apr 7, 2024

Right now, the hints system in The Witness doesn't really work when a Witness item ends up on an item_link location. It will just say something goofy like "Bunker Laser can be found at Item Link: Bunker Laser"

With this change, it'll actually find the real location of where the item linked item ended up.

This fixes some client issues with displaying the hints correctly as well, so it's kind of also a bugfix.


I don't know if this is the correct way to get the "real location" of an item linked item, but I couldn't find a way to break it.

Tested: I tried a bunch of things I could think of and made sure they correctly hinted the items and acted right in game. But I'm not an item links expert so there might be something I overlooked. At the very least it should be "safe" because I put in an Exception for StopIteration on the find_item.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Apr 7, 2024
@NewSoupVi NewSoupVi added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. is: enhancement Issues requesting new features or pull requests implementing new features. labels Apr 7, 2024
@Exempt-Medic Exempt-Medic added the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label Apr 11, 2024
@NewSoupVi NewSoupVi removed the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label Apr 11, 2024
@Berserker66 Berserker66 merged commit fbfe82f into ArchipelagoMW:main Apr 18, 2024
15 checks passed
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants