mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-16 23:30:15 -05:00
Quickfix skip trials setting (#3800)
* quickfix skip trials setting * Change to set trial count to 0 when skipping
This commit is contained in:
parent
7e2a13e7d8
commit
4d2ca29940
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user