From a425b1bc4bfe5403b957132dbd678afe4b9f7a21 Mon Sep 17 00:00:00 2001 From: Valens Date: Mon, 29 Apr 2024 15:03:42 +0000 Subject: [PATCH] Fix weightingAdjustmentsBybotLevel (!315) Fixed linting/syntax of the weightingAdjustmentsByBotLevel function to properly end equipment and start clothing as part of IAdjustmentDetails. Additionally, added the "add" subfunctions to equipment for the last three levelRanges as they were missing. Co-authored-by: VforValens <8889280+VforValens@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/315 Co-authored-by: Valens Co-committed-by: Valens --- project/assets/configs/bot.json | 41 ++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/project/assets/configs/bot.json b/project/assets/configs/bot.json index f9c916dc..30009cd6 100644 --- a/project/assets/configs/bot.json +++ b/project/assets/configs/bot.json @@ -331,7 +331,7 @@ "bosssanitar": { "5efde6b4f5448336730dbd61": 1, "5eff09cd30a7dc22fd1ddfed": 1 - }, + }, "bosstagilla": {}, "bossknight": {}, "bosszryachiy": {}, @@ -399,11 +399,11 @@ "60098ad7c2240c0fe85c570a": 2 }, "arenafighterevent": { - "5734758f24597738025ee253": 1 - }, + "5734758f24597738025ee253": 1 + }, "arenafighter": { - "5734758f24597738025ee253": 1 - }, + "5734758f24597738025ee253": 1 + }, "crazyassaultevent": {}, "assaultgroup": {}, "gifter": {}, @@ -790,7 +790,7 @@ "lightIsActiveDayChancePercent": 35, "lightIsActiveNightChancePercent": 95, "laserIsActiveChancePercent": 95, - "forceStock": true, + "forceStock": true, "weaponModLimits": { "scopeLimit": 1, "lightLaserLimit": 1 @@ -1655,18 +1655,18 @@ "5bffdc370db834001d23eca8": 100, "54491bb74bdc2d09088b4567": 100 } - }, - "clothing": { - "add": {}, - "edit": { - "body": { - "5cc0858d14c02e000c6bea66": 20, - "5cde95d97d6c8b647a3769b0": 20 - }, - "feet": { - "5cc085bb14c02e000e67a5c5": 20, - "5cde95ef7d6c8b04713c4f2d": 20 - } + } + }, + "clothing": { + "add": {}, + "edit": { + "body": { + "5cc0858d14c02e000c6bea66": 20, + "5cde95d97d6c8b647a3769b0": 20 + }, + "feet": { + "5cc085bb14c02e000e67a5c5": 20, + "5cde95ef7d6c8b04713c4f2d": 20 } } } @@ -1775,6 +1775,7 @@ } }, "equipment": { + "add": {}, "edit": { "ArmorVest": { "5c0e5bab86f77461f55ed1f3": 135, @@ -1841,6 +1842,7 @@ "max": 50 }, "equipment": { + "add": {}, "edit": { "FirstPrimaryWeapon": { "5c501a4d2e221602b412b540": 2 @@ -1948,6 +1950,7 @@ } }, "equipment": { + "add": {}, "edit": { "FirstPrimaryWeapon": { "65290f395ae2ae97b80fdf2d": 8, @@ -2652,4 +2655,4 @@ } } } -} +} \ No newline at end of file