From 472ab0eabd2dc139fbbf10e39a7988e91df47221 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 19 Feb 2024 16:58:07 +0000 Subject: [PATCH] Add keys to fence Reduce key listing cap to 15k lower key price the less uses it has Increase current durability cap of armor to 50% from 1% Reduce jewlery cap to 40k from 50k (removes gp coins and golden necklace) --- project/assets/configs/trader.json | 10 ++++++---- project/src/services/FenceService.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/project/assets/configs/trader.json b/project/assets/configs/trader.json index 71980e53..64831068 100644 --- a/project/assets/configs/trader.json +++ b/project/assets/configs/trader.json @@ -81,7 +81,7 @@ "55802f4a4bdc2ddb688b4569": 3, "644120aa86ffbe10ee032b6f": 3, - "5c99f98d86f7745c314214b3": 0, + "5c99f98d86f7745c314214b3": 2, "5447b5cf4bdc2d65278b4567": 4, "55818a104bdc2db9688b4569": 1, @@ -136,7 +136,7 @@ "chancePlateExistsInArmorPercent": 50, "armorMaxDurabilityPercentMinMax": { "current": { - "min": 1, + "min": 50, "max": 100 }, "max": { @@ -183,7 +183,7 @@ "5485a8684bdc2da71d8b4567": 230, "5795f317245977243854e041": 30000, "5448ecbe4bdc2d60728b4568": 40000, - "57864a3d24597754843f8721": 50000, + "57864a3d24597754843f8721": 40000, "5448e53e4bdc2d60728b4567": 90000, "5a341c4686f77469e155819e": 24000, "57864a66245977548f04a81f": 71000, @@ -223,7 +223,9 @@ "5b3f15d486f77432d0509248": 5000, "5448f3ac4bdc2dce718b4569": 42000, "5448f3a14bdc2d27728b4569": 20000, - "543be5cb4bdc2deb348b4568": 15000 + "543be5cb4bdc2deb348b4568": 15000, + + "5c99f98d86f7745c314214b3": 15000 }, "presetSlotsToRemoveChancePercent": { "mod_scope": 70, diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index 840ebea6..550f2503 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -688,7 +688,7 @@ export class FenceService } // Adjust price based on durability - if (itemRoot.upd?.Repairable) + if (itemRoot.upd?.Repairable || this.itemHelper.isOfBaseclass(itemRoot._tpl, BaseClasses.KEY_MECHANICAL)) { const itemQualityModifier = this.itemHelper.getItemQualityModifier(itemRoot); const basePrice = barterSchemes[itemRoot._id][0][0].count;