diff --git a/project/assets/configs/ragfair.json b/project/assets/configs/ragfair.json index 7018ae99..14573404 100644 --- a/project/assets/configs/ragfair.json +++ b/project/assets/configs/ragfair.json @@ -88,6 +88,11 @@ "max": 0.96 } }, + "ignoreQualityPriceVarianceBlacklist": [ + "59e3577886f774176a362503", + "5d02797c86f774203f38e30a", + "5ab8e79e86f7742d8b372e78" + ], "showDefaultPresetsOnly": true, "endTimeSeconds": { "min": 360, diff --git a/project/src/models/spt/config/IRagfairConfig.ts b/project/src/models/spt/config/IRagfairConfig.ts index 24f713cb..b98a883c 100644 --- a/project/src/models/spt/config/IRagfairConfig.ts +++ b/project/src/models/spt/config/IRagfairConfig.ts @@ -55,6 +55,8 @@ export interface IDynamic { priceRanges: IPriceRanges; /** Should default presets to listed only or should non-standard presets found in globals.json be listed too */ showDefaultPresetsOnly: boolean; + /** Tpls that should not use the variable price system when their quality is < 100% (lower dura/uses = lower price) */ + ignoreQualityPriceVarianceBlacklist: string[]; endTimeSeconds: MinMax; /** Settings to control the durability range of item items listed on flea */ condition: Condition; diff --git a/project/src/services/RagfairPriceService.ts b/project/src/services/RagfairPriceService.ts index c2f465db..10266e65 100644 --- a/project/src/services/RagfairPriceService.ts +++ b/project/src/services/RagfairPriceService.ts @@ -278,8 +278,8 @@ export class RagfairPriceService implements OnLoad { price *= multiplier; } - // The quality of the item affects the price. - if (item) { + // The quality of the item affects the price + not on the ignore list + if (item && !this.ragfairConfig.dynamic.ignoreQualityPriceVarianceBlacklist.includes(itemTemplateId)) { const qualityModifier = this.itemHelper.getItemQualityModifier(item); price *= qualityModifier; }