diff --git a/project/assets/configs/repair.json b/project/assets/configs/repair.json index af1fdd43..35dc1657 100644 --- a/project/assets/configs/repair.json +++ b/project/assets/configs/repair.json @@ -52,6 +52,72 @@ } } }, + "vest": { + "rarityWeight": { + "common": 5, + "rare": 1 + }, + "bonusTypeWeight": { + "DamageReduction": 1 + }, + "common": { + "DamageReduction": { + "valuesMinMax": { + "min": 0.9, + "max": 0.98 + }, + "activeDurabilityPercentMinMax": { + "min": 75, + "max": 90 + } + } + }, + "rare": { + "DamageReduction": { + "valuesMinMax": { + "min": 0.8, + "max": 0.9 + }, + "activeDurabilityPercentMinMax": { + "min": 75, + "max": 90 + } + } + } + }, + "headwear": { + "rarityWeight": { + "common": 5, + "rare": 1 + }, + "bonusTypeWeight": { + "DamageReduction": 1 + }, + "common": { + "DamageReduction": { + "valuesMinMax": { + "min": 0.9, + "max": 0.98 + }, + "activeDurabilityPercentMinMax": { + "min": 75, + "max": 90 + } + } + }, + "rare": { + "DamageReduction": { + "valuesMinMax": { + "min": 0.8, + "max": 0.9 + }, + "activeDurabilityPercentMinMax": { + "min": 75, + "max": 90 + } + } + } + }, "weapon": { "rarityWeight": { "common": 5, diff --git a/project/src/services/RepairService.ts b/project/src/services/RepairService.ts index dd1a8831..a5c9ddc8 100644 --- a/project/src/services/RepairService.ts +++ b/project/src/services/RepairService.ts @@ -439,7 +439,7 @@ export class RepairService if (this.shouldBuffItem(repairDetails, pmcData)) { - if (this.itemHelper.isOfBaseclasses(repairDetails.repairedItem._tpl, [BaseClasses.ARMOR, BaseClasses.VEST])) + if (this.itemHelper.isOfBaseclasses(repairDetails.repairedItem._tpl, [BaseClasses.ARMOR, BaseClasses.VEST, BaseClasses.HEADWEAR])) { const armorConfig = this.repairConfig.repairKit.armor; this.addBuff(armorConfig, repairDetails.repairedItem); @@ -538,7 +538,7 @@ export class RepairService */ protected getItemSkillType(itemTemplate: ITemplateItem): SkillTypes { - if (this.itemHelper.isOfBaseclass(itemTemplate._id, BaseClasses.ARMOR)) + if (this.itemHelper.isOfBaseclasses(itemTemplate._id, [BaseClasses.ARMOR, BaseClasses.VEST, BaseClasses.HEADWEAR])) { if (itemTemplate._props.ArmorType === "Light") {