Quickfix skip trials setting (#3800)

* quickfix skip trials setting

* Change to set trial count to 0 when skipping
This commit is contained in:
Pepper0ni 2024-01-05 20:19:23 +00:00 committed by GitHub
parent 7e2a13e7d8
commit 4d2ca29940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1853,12 +1853,15 @@ void Settings::FinalizeSettings(const std::set<RandomizerCheck>& excludedLocatio
ctx->GetDungeon(GANONS_CASTLE)->SetKeyRing();
}
}
auto trials = ctx->GetTrials()->GetTrialList();
Shuffle(trials);
for (const auto trial : trials) {
trial->SetAsSkipped();
}
if (mOptions[RSK_GANONS_TRIALS].Is(RO_GANONS_TRIALS_RANDOM_NUMBER)) {
if(mOptions[RSK_GANONS_TRIALS].Is(RO_GANONS_TRIALS_SKIP)){
mOptions[RSK_TRIAL_COUNT].SetSelectedIndex(0);
} else if(mOptions[RSK_GANONS_TRIALS].Is(RO_GANONS_TRIALS_RANDOM_NUMBER)) {
mOptions[RSK_TRIAL_COUNT].SetSelectedIndex(Random(0, static_cast<int>(mOptions[RSK_TRIAL_COUNT].GetOptionCount())));
}
for (uint8_t i = 0; i < mOptions[RSK_TRIAL_COUNT].Value<uint8_t>(); i++) {