diff --git a/project/src/services/RagfairPriceService.ts b/project/src/services/RagfairPriceService.ts index b94b6fab..84d70297 100644 --- a/project/src/services/RagfairPriceService.ts +++ b/project/src/services/RagfairPriceService.ts @@ -285,7 +285,16 @@ export class RagfairPriceService implements OnLoad if (items.length === 1) { const rootItemDb = this.itemHelper.getItem(rootItem._tpl)[1]; - const unreasonableItemPriceChange = this.ragfairConfig.dynamic.unreasonableModPrices[rootItemDb._parent]; + let unreasonableItemPriceChange: IUnreasonableModPrices; + for (const key of Object.keys(this.ragfairConfig.dynamic.unreasonableModPrices)) + { + if (this.itemHelper.isOfBaseclass(rootItemDb._id, key)) + { + unreasonableItemPriceChange = this.ragfairConfig.dynamic.unreasonableModPrices[key]; + + break; + } + } if (unreasonableItemPriceChange?.enabled) { price = this.adjustUnreasonablePrice(