summaryrefslogtreecommitdiff
path: root/mm/2s2h/DeveloperTools/SaveEditor.cpp
diff options
context:
space:
mode:
authormckinlee <mckinlee@ymail.com>2026-03-19 21:43:04 -0400
committerGitHub <noreply@github.com>2026-03-19 21:43:04 -0400
commit6eda20817dbccefd0ec85ec6e0671af950066092 (patch)
tree4f9ff98ac58df79900d36f8cd22c50f2edc1da73 /mm/2s2h/DeveloperTools/SaveEditor.cpp
parentec9e755bb425700484f0b25182a35c79e6723968 (diff)
[Rando] Tycoon's Wallet (#1597)
* big boy wallet * cleaner 4 digit support * feedback * #1605 explains this change --------- Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com>
Diffstat (limited to 'mm/2s2h/DeveloperTools/SaveEditor.cpp')
-rw-r--r--mm/2s2h/DeveloperTools/SaveEditor.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp
index 48ec78098..a29fa5d56 100644
--- a/mm/2s2h/DeveloperTools/SaveEditor.cpp
+++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp
@@ -59,7 +59,7 @@ constexpr u8 REG_PAGES_MAX = REG_PAGES;
constexpr u8 REG_GROUPS_MAX = REG_GROUPS - 1;
const char* MAGIC_LEVEL_NAMES[3] = { "No Magic", "Single Magic", "Double Magic" };
constexpr int8_t MAGIC_LEVEL_MAX = 2;
-const char* WALLET_LEVEL_NAMES[3] = { "Child Wallet", "Adult Wallet", "Giant Wallet" };
+const char* WALLET_LEVEL_NAMES[4] = { "Child Wallet", "Adult Wallet", "Giant Wallet", "Tycoon Wallet" };
constexpr u8 WALLET_LEVEL_MAX = 2;
ImVec4 colorTint;
const char* songTooltip;
@@ -477,8 +477,11 @@ void DrawGeneralTab() {
// Card 3: Currency
UIWidgets::BeginCard("currencyCard");
+ u8 walletLevelMax = (IS_RANDO && RANDO_SAVE_OPTIONS[RO_SHUFFLE_TYCOON_WALLET] == RO_GENERIC_YES)
+ ? WALLET_LEVEL_MAX + 1
+ : WALLET_LEVEL_MAX;
if (UIWidgets::Button("Max Rupees", { .size = UIWidgets::Sizes::Inline, .color = UIWidgets::Colors::Green })) {
- Inventory_ChangeUpgrade(UPG_WALLET, 2);
+ Inventory_ChangeUpgrade(UPG_WALLET, walletLevelMax);
gSaveContext.save.saveInfo.playerData.rupees = CUR_CAPACITY(UPG_WALLET);
}
ImGui::SameLine();
@@ -489,7 +492,7 @@ void DrawGeneralTab() {
}
UIWidgets::PushStyleSlider(UIWidgets::Colors::Green);
u8 currentWalletLevel = CUR_UPG_VALUE(UPG_WALLET);
- if (ImGui::SliderScalar("##walletLevelSlider", ImGuiDataType_U8, &currentWalletLevel, &U8_ZERO, &WALLET_LEVEL_MAX,
+ if (ImGui::SliderScalar("##walletLevelSlider", ImGuiDataType_U8, &currentWalletLevel, &U8_ZERO, &walletLevelMax,
WALLET_LEVEL_NAMES[currentWalletLevel])) {
Inventory_ChangeUpgrade(UPG_WALLET, currentWalletLevel);
gSaveContext.save.saveInfo.playerData.rupees =