diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2025-02-11 01:29:32 -0600 |
|---|---|---|
| committer | Garrett Cox <garrettjcox@gmail.com> | 2025-02-11 01:29:32 -0600 |
| commit | 332171736e5b27fd9a80975fea5d6362be349366 (patch) | |
| tree | f36999da2c9af93f94c81d0c166ee8d0ea876217 /mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp | |
| parent | 2b7eb416e936ab9c1f29c2ab01a96a02d8dc2cbf (diff) | |
Implement toggles for a few more things like hints and cows
Diffstat (limited to 'mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp')
| -rw-r--r-- | mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp b/mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp index 8edfdd2a7..a775b64d4 100644 --- a/mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp +++ b/mm/2s2h/Rando/MiscBehavior/OnFileCreate.cpp @@ -176,6 +176,19 @@ void Rando::MiscBehavior::OnFileCreate(s16 fileNum) { continue; } + if (randoStaticCheck.randoCheckType == RCTYPE_COW && + RANDO_SAVE_OPTIONS[RO_SHUFFLE_COWS] == RO_GENERIC_NO) { + continue; + } + + if (randoStaticCheck.randoCheckType == RCTYPE_TINGLE_SHOP && + RANDO_SAVE_OPTIONS[RO_SHUFFLE_TINGLE_SHOPS] == RO_GENERIC_NO) { + continue; + } else { + int price = Ship_Random(0, 200); + RANDO_SAVE_CHECKS[randoCheckId].price = price; + } + if (randoStaticCheck.randoCheckType == RCTYPE_SHOP) { // We always want shuffle RC_CURIOSITY_SHOP_SPECIAL_ITEM & // RC_BOMB_SHOP_ITEM_04_OR_CURIOSITY_SHOP_ITEM |
