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

[Rando] Fix Check Tracker Area Totals #3758

Merged

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Dec 28, 2023

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

…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.
@Malkierian
Copy link
Contributor Author

Malkierian commented Dec 28, 2023

Copy link
Contributor

@briaguya-ai briaguya-ai left a 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.
Copy link
Contributor

@briaguya-ai briaguya-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@briaguya-ai briaguya-ai merged commit fa8a0e2 into HarbourMasters:develop-macready Dec 31, 2023
8 checks passed
@Malkierian Malkierian deleted the fix-area-check-totals branch January 2, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants