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

Shopsanity Affordable Logic Update #2617

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Mar 12, 2023

This changes the Affordable shopsanity price logic to select from an array of "affordable prices" (one per tier) based on the tier of wallet selected. Given {10, 105, 205, 505}, each progressive tier adds one of those to the selection.

Starter -> 100% 10 rupees
Adult -> Selection between [10, 105] (50% chance)
Giant -> Selection between [10, 105, 205] (33% chance)
Tycoon -> Selection between all four (25% chance)

Also updated the tooltip for the Affordable toggle to reflect this (should be obvious this is what it's doing now, instead of confusing between this and the way I had it before).

Build Artifacts

…05 depending on the selected wallet tier. Updated the tooltip to reflect.
@dcvz
Copy link
Contributor

dcvz commented Mar 12, 2023

Was this due to feedback on the current implementation?

@Malkierian
Copy link
Contributor Author

Yeah, apparently this was how many people were expecting it to be working, and Archez put the idea forward to make it a more even spread between the available tiers as well. Briaguya said that it was worth putting in khan because it was addressing an issue with what people were expecting.

Copy link
Contributor

@aMannus aMannus left a comment

Choose a reason for hiding this comment

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

I like this a lot better :)

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.

glad to see the behavior updated to match user expectations!

left a few comments with ways to clear up what's going on with the code to hopefully make it easier for people to parse in the future

soh/soh/Enhancements/randomizer/3drando/shops.cpp Outdated Show resolved Hide resolved
soh/soh/Enhancements/randomizer/3drando/shops.cpp Outdated Show resolved Hide resolved
soh/soh/Enhancements/randomizer/3drando/shops.cpp Outdated Show resolved Hide resolved
@Malkierian
Copy link
Contributor Author

Malkierian commented Mar 13, 2023

Pushed the other changes briaguya suggested ala comments and variable names. If you're OK with keeping the functionality mentioned in the last unresolved conversation, then it's still ready for merging.

@briaguya-ai briaguya-ai merged commit 264623f into HarbourMasters:develop-khan Mar 13, 2023
@Malkierian Malkierian deleted the shopsanity-affordable-update branch March 13, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants