Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,16 @@ BBQOption::BBQOption(OCR::LanguageOCROption* language_option)
"<b>Number of Retries:</b><br>Reattempt a quest this many times if it fails.",
LockMode::UNLOCK_WHILE_RUNNING, 1, 0, 5
)
, OUT_OF_RETRIES(
"<b>Out of Retries:</b><br>When a quest fails all its retries, do the selected option.",
{
{OutOfRetries::Skip, "skip", "Skip Quest - Not attempted again while it stays on the panel"},
{OutOfRetries::Reroll, "reroll", "Reroll Quest - Costs BP"},
{OutOfRetries::Stop, "stop", "Stop Program"},
},
LockMode::UNLOCK_WHILE_RUNNING,
OutOfRetries::Skip
)
, FIX_TIME_WHEN_DONE(
"<b>Fix Time when Done:</b><br>Fix the time after the program finishes.",
LockMode::UNLOCK_WHILE_RUNNING, false
Expand All @@ -212,6 +222,7 @@ BBQOption::BBQOption(OCR::LanguageOCROption* language_option)
PA_ADD_OPTION(BATTLE_AI);
PA_ADD_OPTION(CATCH_ON_WIN);
PA_ADD_OPTION(NUM_RETRIES);
PA_ADD_OPTION(OUT_OF_RETRIES);
PA_ADD_OPTION(FIX_TIME_WHEN_DONE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class BBQOption : public GroupOption{
KeepGoing,
};

enum class OutOfRetries{
Skip,
Reroll,
Stop,
};

OCR::LanguageOCROption& LANGUAGE;

SimpleIntegerOption<uint64_t> NUM_QUESTS;
Expand All @@ -109,6 +115,7 @@ class BBQOption : public GroupOption{
TeraFarmerCatchOnWin CATCH_ON_WIN;

SimpleIntegerOption<uint8_t> NUM_RETRIES;
EnumDropdownOption<OutOfRetries> OUT_OF_RETRIES;

BooleanCheckBoxOption FIX_TIME_WHEN_DONE;

Expand Down
Loading