Skip to content

Commit

Permalink
Add another option for Arcarum adjustment in the Adjustments page
Browse files Browse the repository at this point in the history
  • Loading branch information
steve1316 committed Feb 1, 2022
1 parent 24bc805 commit 5df877b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/context/BotStateContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export interface Settings {
adjustWaitingForReload: number
adjustWaitingForAttack: number
enableArcarumAdjustment: boolean
adjustArcarum: number
adjustArcarumAction: number
adjustArcarumStageEffect: number
}
}

Expand Down Expand Up @@ -205,7 +206,8 @@ export const defaultSettings: Settings = {
adjustWaitingForReload: 3,
adjustWaitingForAttack: 100,
enableArcarumAdjustment: false,
adjustArcarum: 3,
adjustArcarumAction: 3,
adjustArcarumStageEffect: 10,
},
}

Expand Down
26 changes: 24 additions & 2 deletions src/pages/Adjustments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,9 @@ const Adjustments = () => {
<Grid item xs={6}>
<TextField
label="Determining Which Action To Take"
value={bsc.settings.adjustment.adjustArcarum}
value={bsc.settings.adjustment.adjustArcarumAction}
onChange={(e) => {
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"
Expand All @@ -520,6 +520,28 @@ const Adjustments = () => {
</Grid>
<Grid item xs={6} />
</Grid>

<Grid container spacing={2} direction="row" justifyContent="center" alignItems="center">
<Grid item xs={6}>
<TextField
label="Checking for Stage Effect during Combat"
value={bsc.settings.adjustment.adjustArcarumStageEffect}
onChange={(e) => {
bsc.setSettings({ ...bsc.settings, adjustment: { ...bsc.settings.adjustment, adjustArcarumStageEffect: Number(e.target.value) } })
}}
variant="outlined"
type="number"
inputProps={{ min: 1, max: 999 }}
InputProps={{
endAdornment: <InputAdornment position="end">tries</InputAdornment>,
}}
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" }}
/>
</Grid>
<Grid item xs={6} />
</Grid>
</div>
) : null}
</div>
Expand Down

0 comments on commit 5df877b

Please sign in to comment.