diff --git a/src/lib/constants.ts b/src/lib/constants.ts index abb085ff39..50b28b0fac 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -260,7 +260,8 @@ export enum BitField { SelfGamblingLocked = 36, DisabledFarmingReminders = 37, DisableClueButtons = 38, - DisableAutoSlayButton = 39 + DisableAutoSlayButton = 39, + DisableHighPeakTimeWarning = 40 } interface BitFieldData { @@ -350,6 +351,11 @@ export const BitFieldData: Record = { name: 'Disable Auto Slay Button', protected: false, userConfigurable: true + }, + [BitField.DisableHighPeakTimeWarning]: { + name: 'Disable Wilderness High Peak Time Warning', + protected: false, + userConfigurable: true } } as const; diff --git a/src/mahoji/commands/config.ts b/src/mahoji/commands/config.ts index ac07d20f93..6c22feff83 100644 --- a/src/mahoji/commands/config.ts +++ b/src/mahoji/commands/config.ts @@ -127,6 +127,10 @@ const toggles: UserConfigToggle[] = [ { name: 'Disable Clue Buttons', bit: BitField.DisableClueButtons + }, + { + name: 'Disable wilderness high peak time warning', + bit: BitField.DisableHighPeakTimeWarning } ]; diff --git a/src/mahoji/lib/abstracted_commands/minionKill.ts b/src/mahoji/lib/abstracted_commands/minionKill.ts index c1f71fdebb..12b1068142 100644 --- a/src/mahoji/lib/abstracted_commands/minionKill.ts +++ b/src/mahoji/lib/abstracted_commands/minionKill.ts @@ -15,7 +15,7 @@ import { Bank, Monsters } from 'oldschooljs'; import { MonsterAttribute } from 'oldschooljs/dist/meta/monsterData'; import { itemID } from 'oldschooljs/dist/util'; -import { PeakTier, PvMMethod } from '../../../lib/constants'; +import { BitField, PeakTier, PvMMethod } from '../../../lib/constants'; import { Eatables } from '../../../lib/data/eatables'; import { getSimilarItems } from '../../../lib/data/similarItems'; import { checkUserCanUseDegradeableItem, degradeablePvmBoostItems, degradeItem } from '../../../lib/degradeableItems'; @@ -689,7 +689,7 @@ export async function minionKillCommand( break; } } - if (wildyPeak?.peakTier === PeakTier.High) { + if (wildyPeak?.peakTier === PeakTier.High && !user.bitfield.includes(BitField.DisableHighPeakTimeWarning)) { if (interaction) { await handleMahojiConfirmation( interaction,