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

core: persist hints even if previously found #4214

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

qwint
Copy link
Collaborator

@qwint qwint commented Nov 19, 2024

What is this fixing or adding?

adding already found hints to ctx.hints so create_as_hint=2 knows they were previously hinted and doesn't send the message in chat about them

How was this tested?

wasn't; vi test it for me please :)

If this makes graphical changes, please attach screenshots.

@github-actions github-actions bot added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Nov 19, 2024
@NewSoupVi
Copy link
Member

NewSoupVi commented Nov 19, 2024

Tested the following situations:

  1. Location is found -> client scouts it for the first time -> client scouts it for the second time
  2. Client scouts location for the first time -> Location is found -> client scouts it for the second time

The original reason for this change was that hint cost didn't behave correctly. This should not be an issue anymore because hint cost calculation was revamped and moved elsewhere. But, I verified it just to be sure.

  1. Player hints an already found check
  2. Player hints a not already found check
  3. Player hints an already found check that was previously scouted
  4. Player hints a not already found check that was previously scouted

All of these scenarios behaved as expected with the change.

@NewSoupVi NewSoupVi merged commit 48ea274 into ArchipelagoMW:main Nov 19, 2024
18 checks passed
@qwint qwint deleted the core_persist_hints branch November 19, 2024 20:16
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
* change to persist all hints to ctx.hints regardless of found status

* remove if not found entirely as it seems like it was added to not double charge hint points
ArchipelagoMW@9842399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. 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.

2 participants