-
Notifications
You must be signed in to change notification settings - Fork 842
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
LTTP: fix some hashed string comparisons #2927
LTTP: fix some hashed string comparisons #2927
Conversation
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.
Code LGTM, but I don't know LttP logic enough to meaningfully test this.
IMO it's worth stating explicitly that this does change behavior, but in a way that hopefully fixes undiscovered bugs. In particular, option in stringset
always returns False, so some of this code is dead on main but brought back to life by this PR; so we want to ask the world maintainer how safe it is to revive this dead code and how well-tested these cases are. (I see their review's already been requested)
Hm logic = world.glitches_required[player] That option is a |
the unit tests were assigning a string instead of an option class to the option. |
What is this fixing or adding?
an option can't be compared to strings in a set due to hashing
How was this tested?
Unit tests and a few generations with debugging
If this makes graphical changes, please attach screenshots.