fix: handle high spoofed mastery rank plus noDailyStandingLimits
All checks were successful
Build / build (18) (push) Successful in 44s
Build / build (22) (push) Successful in 1m8s
Build / build (20) (push) Successful in 1m2s
Build / build (18) (pull_request) Successful in 42s
Build / build (22) (pull_request) Successful in 1m5s
Build / build (20) (pull_request) Successful in 1m9s

In case the spoofed mastery rank is so high that 999,999 is *less* than the assumed maximum value for daily affiliation bins, we'll just use that so that the bar is always (at least) 100% full.
This commit is contained in:
Sainan 2025-03-15 18:21:25 +01:00
parent 2d6e096fde
commit 143e1f593c

View File

@ -246,8 +246,9 @@ export const getInventoryResponse = async (
}
if (config.noDailyStandingLimits) {
const spoofedDailyAffiliation = Math.max(999_999, 16000 + inventoryResponse.PlayerLevel * 500);
for (const key of allDailyAffiliationKeys) {
inventoryResponse[key] = 999_999;
inventoryResponse[key] = spoofedDailyAffiliation;
}
}