Skip to content

Commit 8bddbb7

Browse files
committed
Rewrite backpack weighting
1 parent 9c5cf3d commit 8bddbb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/LoadoutChanges/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,10 @@ export const getBackPackInternalGridValue = ({
399399
});
400400
// if (total > 20) total += 20;
401401

402-
total = Math.round((total * 10) / Weight);
402+
total = Math.round(total - Weight) * 5;
403+
if (total < 0) total = 1;
404+
// console.log(total, _name, Weight);
405+
403406
if (["6034d103ca006d2dca39b3f0", "6038d614d10cbf667352dd44"].includes(_id)) {
404407
total = Math.round(total * 0.7);
405408
}

0 commit comments

Comments
 (0)