-
Notifications
You must be signed in to change notification settings - Fork 722
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
LADX: Converted to new options API (+other small refactors) #3542
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.
Looks good, two small things
patches.aesthetics.removeLowHPBeep(rom) | ||
if 0 <= int(settings.linkspalette): | ||
patches.aesthetics.forceLinksPalette(rom, int(settings.linkspalette)) | ||
if 0 <= int(world.ladxr_settings.linkspalette): |
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.
I believe this is another unneeded cast
if 0 <= int(world.ladxr_settings.linkspalette): | |
if 0 <= world.ladxr_settings.linkspalette: |
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.
This one is a string, so the cast actually is needed.
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.
Aside from two really minor things, these changes all LGTM. Asked a few questions about some of them and got clarifications, merged into main
, did 500 random generations and saw that no warnings were printed for deprecated options, per_slot_randoms
or anything else. Couldn't find any other obscure/hidden uses of deprecated option getters either. The playthroughs for the generated worlds looked fine as well
Co-authored-by: Exempt-Medic <[email protected]>
…agoMW#3542) * Refactored various things * Renamed hidden variable in dungeon item shuffle block * Fixed LADXRSettings initialization * Rename ladxr_options -> ladxr_settings * Remove unnecessary int cast * Update worlds/ladx/LADXR/generator.py Co-authored-by: Exempt-Medic <[email protected]> --------- Co-authored-by: Exempt-Medic <[email protected]>
…agoMW#3542) * Refactored various things * Renamed hidden variable in dungeon item shuffle block * Fixed LADXRSettings initialization * Rename ladxr_options -> ladxr_settings * Remove unnecessary int cast * Update worlds/ladx/LADXR/generator.py Co-authored-by: Exempt-Medic <[email protected]> --------- Co-authored-by: Exempt-Medic <[email protected]>
…agoMW#3542) * Refactored various things * Renamed hidden variable in dungeon item shuffle block * Fixed LADXRSettings initialization * Rename ladxr_options -> ladxr_settings * Remove unnecessary int cast * Update worlds/ladx/LADXR/generator.py Co-authored-by: Exempt-Medic <[email protected]> --------- Co-authored-by: Exempt-Medic <[email protected]>
What is this fixing or adding?
This PR contains a handful of refactors for LADX:
self.multiworld.random
orper_slot_randoms
in favor of the world random field.self.multiworld
, such as the player's name.How was this tested?
Ran 100 generations with random options. pytest continues to pass.
If this makes graphical changes, please attach screenshots.