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

Fix incorrect usage of main stat display value for optimization #1745

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

nguyentvan7
Copy link
Collaborator

@nguyentvan7 nguyentvan7 commented Mar 16, 2024

Describe your changes

Change opt and up-opt to use the raw mainstat value, rather than the display value (which rounded EM and caused minor calculation errors.

This was harder to spot because we still recalculate and display the values to the user using the correctly un-rounded EM. We were just optimizing with the wrong value. So in this case, this caused the 2 builds to sort incorrectly, revealing the issue.

TC opt doesn't look like it calls this function

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@nguyentvan7 nguyentvan7 added the fix ASAP Needs to be fixed as soon as possible label Mar 16, 2024
@nguyentvan7 nguyentvan7 requested a review from frzyc March 16, 2024 02:44
Copy link
Contributor

github-actions bot commented Mar 16, 2024

[frontend] [Sat Mar 16 02:48:19 UTC 2024] - Deployed 49de2c7 to https://genshin-optimizer-prs.github.io/pr/1745/frontend (Takes 3-5 minutes after this completes to be available)

[Sat Mar 16 07:22:49 UTC 2024] - Deleted deployment

@nguyentvan7 nguyentvan7 merged commit e65615b into master Mar 16, 2024
6 checks passed
@nguyentvan7 nguyentvan7 deleted the van/go/optFix branch March 16, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix ASAP Needs to be fixed as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Top optimization result is shown as second result instead
2 participants