From df4e58f6dac17929de92c0fffda78d5531ff8961 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 16 Apr 2025 00:38:09 +0200 Subject: [PATCH] don't subtract from DailyFocus when noDailyFocusLimit is enabled --- src/services/inventoryService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 48657e88..fe7d0032 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1348,7 +1348,9 @@ export const addFocusXpIncreases = (inventory: TInventoryDatabaseDocument, focus inventory.FocusXP.AP_POWER += focusXpPlus[FocusType.AP_POWER]; inventory.FocusXP.AP_WARD += focusXpPlus[FocusType.AP_WARD]; - inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0); + if (!config.noDailyFocusLimit) { + inventory.DailyFocus -= focusXpPlus.reduce((a, b) => a + b, 0); + } }; export const addLoreFragmentScans = (inventory: TInventoryDatabaseDocument, arr: ILoreFragmentScan[]): void => {