Skip to content

Commit 982bca8

Browse files
committed
Fix Looting bots detection
1 parent 97c65cc commit 982bca8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/LoadoutChanges/ProgressionChanges.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default function ProgressionChanges(
254254
![...tradersToExclude, ...tradersToInclude].includes(nickname)
255255
) {
256256
console.log(
257-
`\nAlgorithmicLevelProgression: Attempting to add items for custom trader > ${nickname}!\n`
257+
`[AlgorithmicLevelProgression]: Attempting to add items for custom trader > ${nickname}!`
258258
);
259259
}
260260

@@ -268,7 +268,7 @@ export default function ProgressionChanges(
268268
const item = items[_tpl];
269269
if (!item)
270270
return console.log(
271-
"AlgorithmicLevelProgression: Skipping custom item: ",
271+
"[AlgorithmicLevelProgression]: Skipping custom item: ",
272272
_tpl,
273273
" for trader: ",
274274
nickname
@@ -277,7 +277,7 @@ export default function ProgressionChanges(
277277
const parent = item._parent;
278278
if (!parent || !items[parent])
279279
return console.log(
280-
"AlgorithmicLevelProgression: Skipping custom item: ",
280+
"[AlgorithmicLevelProgression]: Skipping custom item: ",
281281
_tpl,
282282
" for trader: ",
283283
nickname
@@ -528,11 +528,12 @@ export default function ProgressionChanges(
528528
setWeightingAdjustments(items, botConfig, tradersMasterList, mods);
529529

530530
let lootingBotsDetected = false;
531+
531532
if (
532533
tables?.bots?.types?.bear?.generation?.items?.backpackLoot?.weights &&
533534
new Set(
534535
Object.values(
535-
tables.bots.types.pmcbear.generation.items.backpackLoot.weights
536+
tables?.bots?.types?.bear?.generation?.items?.backpackLoot.weights
536537
)
537538
).size === 1
538539
) {

0 commit comments

Comments
 (0)