Skip to content

Shopsanity Affordable Logic Update#2617

Merged
briaguya0 merged 4 commits intoHarbourMasters:develop-khanfrom
Malkierian:shopsanity-affordable-update
Mar 13, 2023
Merged

Shopsanity Affordable Logic Update#2617
briaguya0 merged 4 commits intoHarbourMasters:develop-khanfrom
Malkierian:shopsanity-affordable-update

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

@briaguya0 briaguya0 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

@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.

@briaguya0 briaguya0 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.

4 participants