diff --git a/project/assets/database/locales/server/en.json b/project/assets/database/locales/server/en.json index e544aef7..e0308855 100644 --- a/project/assets/database/locales/server/en.json +++ b/project/assets/database/locales/server/en.json @@ -572,7 +572,7 @@ "ragfair-trader_missing_base_file": "Unable to check refresh status as trader: %s lacks a base file", "ragfair-unable_to_adjust_stack_count_assort_not_found": "Trader: {{traderId}} flea offer: {{offerId}} could not have its stack count adjusted to match traders assort value (assort not found)", "ragfair-unable_to_find_item_in_inventory": "Unable to find item with id: {{id}} in inventory", - "ragfair-unable_to_find_item_price_for_item_in_flea_handbook": "Unable to find live-flea or handbook price for %s, defaulting to 1, if this is a modded item contact the mod author", + "ragfair-unable_to_find_item_price_for_item_in_flea_handbook": "Unable to find live-flea or handbook price for: {{tpl}} {{itemName}}, defaulting to 1, if this is a modded item contact the mod author", "ragfair-unable_to_find_locale_by_key": "Unable to find EFT locale with key: %s", "ragfair-unable_to_find_offer_to_remove": "Unable to find offer with id: %s to remove", "ragfair-unable_to_find_preset_with_id": "Unable to find preset with id: %s, using existing price of existing weapon base", diff --git a/project/src/models/spt/config/IBotConfig.ts b/project/src/models/spt/config/IBotConfig.ts index 7780e685..8a969c7e 100644 --- a/project/src/models/spt/config/IBotConfig.ts +++ b/project/src/models/spt/config/IBotConfig.ts @@ -43,7 +43,7 @@ export interface IBotConfig extends IBaseConfig currencyStackSize: Record>> /** Tpls for low profile gas blocks */ lowProfileGasBlockTpls: string[] - /** What bottypes should be excluded from having loot generated on them (backpack/pocket/vest) */ + /** What bottypes should be excluded from having loot generated on them (backpack/pocket/vest) does not disable food/drink/special/ */ disableLootOnBotTypes: string[] } diff --git a/project/src/services/RagfairPriceService.ts b/project/src/services/RagfairPriceService.ts index b42b48c6..7135ba8e 100644 --- a/project/src/services/RagfairPriceService.ts +++ b/project/src/services/RagfairPriceService.ts @@ -93,8 +93,10 @@ export class RagfairPriceService implements OnLoad let itemPrice = this.getDynamicPriceForItem(tplId) || this.getStaticPriceForItem(tplId); if (itemPrice === undefined) { + const itemFromDb = this.itemHelper.getItem(tplId); + const itemName = itemFromDb[0] ? itemFromDb[1]?._name : ""; this.logger.warning( - this.localisationService.getText("ragfair-unable_to_find_item_price_for_item_in_flea_handbook", tplId), + this.localisationService.getText("ragfair-unable_to_find_item_price_for_item_in_flea_handbook", { tpl: tplId, name: itemName }), ); }