summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2023-02-24 02:21:13 -0700
committerGitHub <noreply@github.com>2023-02-24 04:21:13 -0500
commit29daec879bab0df1c027768c5c76955c70b6905d (patch)
treecc182ec8871d3ee07bc3ac89728edccd72c84c50 /soh/src/code
parent23d2e4a2ccb15a81f60e99984072a778ca6b78b6 (diff)
Shopsanity price range selection (#2517)
* Adds price range select box for shopsanity when shopsanity is 1 or more items. Default option is the original functionality, now under "Random" select option. Other options include Affordable, which makes each item 10 rupees, and one option for each level of wallet available with shopsanity, where each wallet's max capacity is the upper limit on the price randomization. These still go in 5 rupee increments, like Random. Also keeps track of and saves/loads settings appropriately on game start. * Changed "Random" default shopsanity price selection to "Balanced" to be more properly descriptive. Refactored GetRandomShopPrice to try to keep Balanced as the default, with a sane fallback price of 150 should the weighted randomizer somehow fail. * Missed one change from Random to Balanced. * Changed wallet range to minimum of 5, and removed the multiple of 5 requirement (full rando within range). * Modified the system to add a checkbox for affordability which then adds a price cap that is just above the max value of the previous wallet tier. Effectively this keeps the wallet lock in place, but prevents anything from getting more expensive than 5 past the previous tier. * Fixed hover help text and tooltip formatting. * Changed wallet ranges to generate multiples of 5. May need weighted generation after playtesting.
Diffstat (limited to 'soh/src/code')
0 files changed, 0 insertions, 0 deletions