0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Improved localization text for ragfair-unable_to_find_item_price_for_item_in_flea_handbook

This commit is contained in:
Dev 2024-05-27 10:26:11 +01:00
parent 5dc4b7695e
commit 40bc26dfd0
3 changed files with 5 additions and 3 deletions

View File

@ -572,7 +572,7 @@
"ragfair-trader_missing_base_file": "Unable to check refresh status as trader: %s lacks a base file", "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_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_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_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_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", "ragfair-unable_to_find_preset_with_id": "Unable to find preset with id: %s, using existing price of existing weapon base",

View File

@ -43,7 +43,7 @@ export interface IBotConfig extends IBaseConfig
currencyStackSize: Record<string, Record<string, Record<string, number>>> currencyStackSize: Record<string, Record<string, Record<string, number>>>
/** Tpls for low profile gas blocks */ /** Tpls for low profile gas blocks */
lowProfileGasBlockTpls: string[] 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[] disableLootOnBotTypes: string[]
} }

View File

@ -93,8 +93,10 @@ export class RagfairPriceService implements OnLoad
let itemPrice = this.getDynamicPriceForItem(tplId) || this.getStaticPriceForItem(tplId); let itemPrice = this.getDynamicPriceForItem(tplId) || this.getStaticPriceForItem(tplId);
if (itemPrice === undefined) if (itemPrice === undefined)
{ {
const itemFromDb = this.itemHelper.getItem(tplId);
const itemName = itemFromDb[0] ? itemFromDb[1]?._name : "";
this.logger.warning( 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 }),
); );
} }