Feature: UseapplyRandomizeDurabilityLoss config property in repairItemByKit() (!72)

Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/72
This commit is contained in:
chomp 2023-03-17 09:12:47 +00:00
parent 4434b95621
commit 611b63a4cd

View File

@ -193,7 +193,13 @@ export class RepairService
const itemToRepairDetails = this.databaseServer.getTables().templates.items[itemToRepair._tpl];
const repairItemIsArmor = (!!itemToRepairDetails._props.ArmorMaterial);
this.repairHelper.updateItemDurability(itemToRepair, itemToRepairDetails, repairItemIsArmor, repairKits[0].count / this.getKitDivisor(itemToRepairDetails, repairItemIsArmor, pmcData), true, 1);
this.repairHelper.updateItemDurability(
itemToRepair,
itemToRepairDetails,
repairItemIsArmor,
repairKits[0].count / this.getKitDivisor(itemToRepairDetails, repairItemIsArmor, pmcData),
this.repairConfig.applyRandomizeDurabilityLoss,
1);
// Find and use repair kit defined in body
for (const repairKit of repairKits)