Update types
This commit is contained in:
parent
c3d5fd7228
commit
2c10931ddc
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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<string, number>;
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user