From 28b0a55732b5e52f19f00e1cf5461cd0b56e3e42 Mon Sep 17 00:00:00 2001 From: DrakiaXYZ Date: Mon, 12 Feb 2024 09:21:48 +0000 Subject: [PATCH] Fix/add some trader services data for LK Services (!221) - Fix data type for TraderServiceModel - Add LK Service price/item data Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/221 Co-authored-by: DrakiaXYZ Co-committed-by: DrakiaXYZ --- .../638f541a29ffd1183d187f57/services.json | 21 ++++++++++++++++--- .../spt/services/ITraderServiceModel.ts | 5 +++-- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/project/assets/database/traders/638f541a29ffd1183d187f57/services.json b/project/assets/database/traders/638f541a29ffd1183d187f57/services.json index c44d595e..abcba4c5 100644 --- a/project/assets/database/traders/638f541a29ffd1183d187f57/services.json +++ b/project/assets/database/traders/638f541a29ffd1183d187f57/services.json @@ -1,11 +1,26 @@ [ { - "serviceType": "ZryachiyAid" + "serviceType": "ZryachiyAid", + "itemsToPay": { + "62a0a16d0b9d3c46de5b6e97": 3, + "5696686a4bdc2da3298b456a": 2000 + } }, { - "serviceType": "ExUsecLoyalty" + "serviceType": "ExUsecLoyalty", + "itemsToPay": { + "6389c8c5dbfd5e4b95197e6b": 1, + "569668774bdc2da2298b4568": 2500 + } }, { - "serviceType": "CultistsAid" + "serviceType": "CultistsAid", + "itemsToPay": { + "5c12613b86f7743bbe2c3f76": 3, + "5696686a4bdc2da3298b456a": 1000 + }, + "itemsToReceive": [ + "64d0b40fbe2eed70e254e2d4" + ] } ] \ No newline at end of file diff --git a/project/src/models/spt/services/ITraderServiceModel.ts b/project/src/models/spt/services/ITraderServiceModel.ts index 4ec95136..80a95e45 100644 --- a/project/src/models/spt/services/ITraderServiceModel.ts +++ b/project/src/models/spt/services/ITraderServiceModel.ts @@ -3,6 +3,7 @@ import { TraderServiceType } from "@spt-aki/models/enums/TraderServiceType"; export interface ITraderServiceModel { serviceType: TraderServiceType; - itemsToPay?: Record[]; - subServices?: Record[]; + itemsToPay?: {[key: string]: number}; + itemsToReceive?: string[]; + subServices?: {[key: string]: number}; }