diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index b862e4e8..b3963a86 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -186,6 +186,16 @@ export class FenceService else { this.logger.warning(`adjustItemPriceByModifier() - no action taken for item: ${item._tpl}`); + + return; + } + + // Adjust price based on durability + if (item.upd?.Repairable) + { + const itemQualityModifier = this.itemHelper.getItemQualityModifier(item); + assort.barter_scheme[item._id][0][0].count *= itemQualityModifier; + this.logger.warning(`Reduced item ${item._tpl} price to : ${assort.barter_scheme[item._id][0][0].count}`); } }