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)
This commit is contained in:
Dev 2024-02-19 16:58:07 +00:00
parent 5917fbce38
commit 472ab0eabd
2 changed files with 7 additions and 5 deletions

View File

@ -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,

View File

@ -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;