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:
parent
4434b95621
commit
611b63a4cd
@ -193,7 +193,13 @@ export class RepairService
|
|||||||
const itemToRepairDetails = this.databaseServer.getTables().templates.items[itemToRepair._tpl];
|
const itemToRepairDetails = this.databaseServer.getTables().templates.items[itemToRepair._tpl];
|
||||||
const repairItemIsArmor = (!!itemToRepairDetails._props.ArmorMaterial);
|
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
|
// Find and use repair kit defined in body
|
||||||
for (const repairKit of repairKits)
|
for (const repairKit of repairKits)
|
||||||
|
Loading…
Reference in New Issue
Block a user