diff --git a/TypeScript/10ScopesAndTypes/types/helpers/QuestHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/QuestHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/10ScopesAndTypes/types/services/PaymentService.d.ts b/TypeScript/10ScopesAndTypes/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/10ScopesAndTypes/types/services/PaymentService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/11BundleLoadingSample/types/helpers/QuestHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/QuestHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/11BundleLoadingSample/types/services/PaymentService.d.ts b/TypeScript/11BundleLoadingSample/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/11BundleLoadingSample/types/services/PaymentService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/12ClassExtensionOverride/types/helpers/QuestHelper.d.ts b/TypeScript/12ClassExtensionOverride/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/12ClassExtensionOverride/types/helpers/QuestHelper.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/12ClassExtensionOverride/types/helpers/TraderHelper.d.ts b/TypeScript/12ClassExtensionOverride/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/12ClassExtensionOverride/types/helpers/TraderHelper.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/12ClassExtensionOverride/types/services/PaymentService.d.ts b/TypeScript/12ClassExtensionOverride/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/12ClassExtensionOverride/types/services/PaymentService.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/13AddTrader/types/helpers/QuestHelper.d.ts b/TypeScript/13AddTrader/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/13AddTrader/types/helpers/QuestHelper.d.ts +++ b/TypeScript/13AddTrader/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/13AddTrader/types/helpers/TraderHelper.d.ts b/TypeScript/13AddTrader/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/13AddTrader/types/helpers/TraderHelper.d.ts +++ b/TypeScript/13AddTrader/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/13AddTrader/types/services/PaymentService.d.ts b/TypeScript/13AddTrader/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/13AddTrader/types/services/PaymentService.d.ts +++ b/TypeScript/13AddTrader/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/14AfterDBLoadHook/types/helpers/QuestHelper.d.ts b/TypeScript/14AfterDBLoadHook/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/14AfterDBLoadHook/types/helpers/QuestHelper.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/14AfterDBLoadHook/types/helpers/TraderHelper.d.ts b/TypeScript/14AfterDBLoadHook/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/14AfterDBLoadHook/types/helpers/TraderHelper.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/14AfterDBLoadHook/types/services/PaymentService.d.ts b/TypeScript/14AfterDBLoadHook/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/14AfterDBLoadHook/types/services/PaymentService.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/15HttpListenerExample/types/helpers/QuestHelper.d.ts b/TypeScript/15HttpListenerExample/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/15HttpListenerExample/types/helpers/QuestHelper.d.ts +++ b/TypeScript/15HttpListenerExample/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/15HttpListenerExample/types/helpers/TraderHelper.d.ts b/TypeScript/15HttpListenerExample/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/15HttpListenerExample/types/helpers/TraderHelper.d.ts +++ b/TypeScript/15HttpListenerExample/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/15HttpListenerExample/types/services/PaymentService.d.ts b/TypeScript/15HttpListenerExample/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/15HttpListenerExample/types/services/PaymentService.d.ts +++ b/TypeScript/15HttpListenerExample/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/16ImporterUtil/types/helpers/QuestHelper.d.ts b/TypeScript/16ImporterUtil/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/16ImporterUtil/types/helpers/QuestHelper.d.ts +++ b/TypeScript/16ImporterUtil/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/16ImporterUtil/types/helpers/TraderHelper.d.ts b/TypeScript/16ImporterUtil/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/16ImporterUtil/types/helpers/TraderHelper.d.ts +++ b/TypeScript/16ImporterUtil/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/16ImporterUtil/types/services/PaymentService.d.ts b/TypeScript/16ImporterUtil/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/16ImporterUtil/types/services/PaymentService.d.ts +++ b/TypeScript/16ImporterUtil/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/17AsyncImporterWithDependency1/types/helpers/QuestHelper.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/helpers/QuestHelper.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/17AsyncImporterWithDependency1/types/helpers/TraderHelper.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/helpers/TraderHelper.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/17AsyncImporterWithDependency1/types/services/PaymentService.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/services/PaymentService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/17AsyncImporterWithDependency2/types/helpers/QuestHelper.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/helpers/QuestHelper.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/17AsyncImporterWithDependency2/types/helpers/TraderHelper.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/helpers/TraderHelper.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/17AsyncImporterWithDependency2/types/services/PaymentService.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/services/PaymentService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/18CustomItemService/types/helpers/QuestHelper.d.ts b/TypeScript/18CustomItemService/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/18CustomItemService/types/helpers/QuestHelper.d.ts +++ b/TypeScript/18CustomItemService/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/18CustomItemService/types/helpers/TraderHelper.d.ts b/TypeScript/18CustomItemService/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/18CustomItemService/types/helpers/TraderHelper.d.ts +++ b/TypeScript/18CustomItemService/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/18CustomItemService/types/services/PaymentService.d.ts b/TypeScript/18CustomItemService/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/18CustomItemService/types/services/PaymentService.d.ts +++ b/TypeScript/18CustomItemService/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/1LogToConsole/types/helpers/QuestHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/1LogToConsole/types/helpers/QuestHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/1LogToConsole/types/services/PaymentService.d.ts b/TypeScript/1LogToConsole/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/1LogToConsole/types/services/PaymentService.d.ts +++ b/TypeScript/1LogToConsole/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/2EditDatabase/types/helpers/QuestHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/2EditDatabase/types/helpers/QuestHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/2EditDatabase/types/services/PaymentService.d.ts b/TypeScript/2EditDatabase/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/2EditDatabase/types/services/PaymentService.d.ts +++ b/TypeScript/2EditDatabase/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/3GetSptConfigFile/types/helpers/QuestHelper.d.ts b/TypeScript/3GetSptConfigFile/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/3GetSptConfigFile/types/helpers/QuestHelper.d.ts +++ b/TypeScript/3GetSptConfigFile/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/3GetSptConfigFile/types/helpers/TraderHelper.d.ts b/TypeScript/3GetSptConfigFile/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/3GetSptConfigFile/types/helpers/TraderHelper.d.ts +++ b/TypeScript/3GetSptConfigFile/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/3GetSptConfigFile/types/services/PaymentService.d.ts b/TypeScript/3GetSptConfigFile/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/3GetSptConfigFile/types/services/PaymentService.d.ts +++ b/TypeScript/3GetSptConfigFile/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/QuestHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/QuestHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/4UseACustomConfigFile/types/services/PaymentService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/PaymentService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/5ReplaceMethod/types/helpers/QuestHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/QuestHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/5ReplaceMethod/types/services/PaymentService.d.ts b/TypeScript/5ReplaceMethod/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/5ReplaceMethod/types/services/PaymentService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/QuestHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/QuestHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/6ReferenceAnotherClass/types/services/PaymentService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/PaymentService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/7OnLoadHook/types/helpers/QuestHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/7OnLoadHook/types/helpers/QuestHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/7OnLoadHook/types/services/PaymentService.d.ts b/TypeScript/7OnLoadHook/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/7OnLoadHook/types/services/PaymentService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/8OnUpdateHook/types/helpers/QuestHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/QuestHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/8OnUpdateHook/types/services/PaymentService.d.ts b/TypeScript/8OnUpdateHook/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/8OnUpdateHook/types/services/PaymentService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData diff --git a/TypeScript/9RouterHooks/types/helpers/QuestHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/QuestHelper.d.ts index 5c749d3..babdf1d 100644 --- a/TypeScript/9RouterHooks/types/helpers/QuestHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/QuestHelper.d.ts @@ -229,11 +229,11 @@ export declare class QuestHelper { */ protected findAndAddHideoutProductionIdToProfile(pmcData: IPmcData, craftUnlockReward: Reward, questDetails: IQuest, sessionID: string, response: IItemEventRouterResponse): void; /** - * Get players intel center bonus from profile + * Get players money reward bonus from profile * @param pmcData player profile * @returns bonus as a percent */ - protected getIntelCenterRewardBonus(pmcData: IPmcData): number; + protected getQuestMoneyRewardBonus(pmcData: IPmcData): number; /** * Find quest with 'findItem' condition that needs the item tpl be handed in * @param itemTpl item tpl to look for diff --git a/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts index 8cdfb76..7eb4edf 100644 --- a/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts @@ -1,4 +1,5 @@ import { IPmcData } from "../models/eft/common/IPmcData"; +import { Item } from "../models/eft/common/tables/IItem"; import { ProfileTraderTemplate } from "../models/eft/common/tables/IProfileTemplate"; import { ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; import { Traders } from "../models/enums/Traders"; @@ -35,7 +36,19 @@ export declare class TraderHelper { protected highestTraderBuyPriceItems: Record; constructor(logger: ILogger, databaseServer: DatabaseServer, saveServer: SaveServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer); getTrader(traderID: string, sessionID: string): ITraderBase; + /** + * Get all assort data for a particular trader + * @param traderId Trader to get assorts for + * @returns ITraderAssort + */ getTraderAssortsByTraderId(traderId: string): ITraderAssort; + /** + * Retrieve the Item from a traders assort data by its id + * @param traderId Trader to get assorts for + * @param assortId Id of assort to find + * @returns Item object + */ + getTraderAssortItemByAssortId(traderId: string, assortId: string): Item; /** * Reset a profiles trader data back to its initial state as seen by a level 1 player * Does NOT take into account different profile levels diff --git a/TypeScript/9RouterHooks/types/services/PaymentService.d.ts b/TypeScript/9RouterHooks/types/services/PaymentService.d.ts index fb5f92c..d9614b1 100644 --- a/TypeScript/9RouterHooks/types/services/PaymentService.d.ts +++ b/TypeScript/9RouterHooks/types/services/PaymentService.d.ts @@ -28,9 +28,16 @@ export declare class PaymentService { * @param {IPmcData} pmcData Player profile * @param {IProcessBuyTradeRequestData} request * @param {string} sessionID - * @returns Object + * @returns IItemEventRouterResponse */ payMoney(pmcData: IPmcData, request: IProcessBuyTradeRequestData, sessionID: string, output: IItemEventRouterResponse): IItemEventRouterResponse; + /** + * Get the item price of a specific traders assort + * @param traderAssortId Id of assort to look up + * @param traderId Id of trader with assort + * @returns Handbook rouble price of item + */ + protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; /** * Receive money back after selling * @param {IPmcData} pmcData