From 5df877b12c37c2bbd4e826c4bd812260011b6933 Mon Sep 17 00:00:00 2001 From: Steve Tu Date: Tue, 1 Feb 2022 15:04:33 -0800 Subject: [PATCH] Add another option for Arcarum adjustment in the Adjustments page --- src/context/BotStateContext.tsx | 6 ++++-- src/pages/Adjustments/index.tsx | 26 ++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/context/BotStateContext.tsx b/src/context/BotStateContext.tsx index 7b2dd659..a2992419 100644 --- a/src/context/BotStateContext.tsx +++ b/src/context/BotStateContext.tsx @@ -109,7 +109,8 @@ export interface Settings { adjustWaitingForReload: number adjustWaitingForAttack: number enableArcarumAdjustment: boolean - adjustArcarum: number + adjustArcarumAction: number + adjustArcarumStageEffect: number } } @@ -205,7 +206,8 @@ export const defaultSettings: Settings = { adjustWaitingForReload: 3, adjustWaitingForAttack: 100, enableArcarumAdjustment: false, - adjustArcarum: 3, + adjustArcarumAction: 3, + adjustArcarumStageEffect: 10, }, } diff --git a/src/pages/Adjustments/index.tsx b/src/pages/Adjustments/index.tsx index faf74caf..128db407 100644 --- a/src/pages/Adjustments/index.tsx +++ b/src/pages/Adjustments/index.tsx @@ -503,9 +503,9 @@ const Adjustments = () => { { - bsc.setSettings({ ...bsc.settings, adjustment: { ...bsc.settings.adjustment, adjustArcarum: Number(e.target.value) } }) + bsc.setSettings({ ...bsc.settings, adjustment: { ...bsc.settings.adjustment, adjustArcarumAction: Number(e.target.value) } }) }} variant="outlined" type="number" @@ -520,6 +520,28 @@ const Adjustments = () => { + + + + { + bsc.setSettings({ ...bsc.settings, adjustment: { ...bsc.settings.adjustment, adjustArcarumStageEffect: Number(e.target.value) } }) + }} + variant="outlined" + type="number" + inputProps={{ min: 1, max: 999 }} + InputProps={{ + endAdornment: tries, + }} + helperText="Set the default number of tries for checking if there is an active stage effect popup at the start of Combat Mode." + fullWidth + style={{ marginBottom: "16px" }} + /> + + + ) : null}