-
Notifications
You must be signed in to change notification settings - Fork 563
[Rando] Fix Check Tracker Area Totals #3758
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
[Rando] Fix Check Tracker Area Totals #3758
Conversation
…onality setting invisible checks. Change `areaChecksTotal` to dynamic calculation based on tracker visibility, now that all checks are being added to `checksByArea`. Both are updated in realtime when either "Show all GS locations" or "Hide right side shop items" are toggled. Reformat all remaining unencapsulated if statements.
https://github.com/HarbourMasters/Shipwright/assets/774771/8b6a62a3-430b-466c-9e93-d3562f5b42e6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looking good, left a couple suggestions to avoid using >
/<
on enums (it wasn't clear what the logic was), and a couple questions about the cvar change checking per frame stuff
…to when the options are toggled instead of checking every frame. Removed redundant if...else. Clarified areaChecksGotten increment/decrement functionality based on current status and incoming status change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After changing to the flags tracking system for the check tracker, it would show incorrect totals for checks gotten because invisible checks were getting set and adding to the count for that. Also, when adding "Always show gold skulltulas" option, the total checks shown in an area was wrong because all checks were being added to
checksByArea
all the time instead of only those visible. This fixes both, and both update in real time when "Always show gold skulltulas" or "Hide right-side shop item checks" are toggled.Also reformats some of the code of
randomizer_check_tracker.cpp
to eliminate all remaining instances of unencapsulated if statements.soh_5ekteFl4Yh.mp4
Build Artifacts