Update types for 350 in mod example 1
This commit is contained in:
parent
f56c0e1c5c
commit
66a26021b7
@ -1,8 +1,11 @@
|
|||||||
|
import { HideoutController } from "../controllers/HideoutController";
|
||||||
|
import { RagfairController } from "../controllers/RagfairController";
|
||||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
import { IGlobals } from "../models/eft/common/IGlobals";
|
import { IGlobals } from "../models/eft/common/IGlobals";
|
||||||
import { ICustomizationItem } from "../models/eft/common/tables/ICustomizationItem";
|
import { ICustomizationItem } from "../models/eft/common/tables/ICustomizationItem";
|
||||||
import { IHandbookBase } from "../models/eft/common/tables/IHandbookBase";
|
import { IHandbookBase } from "../models/eft/common/tables/IHandbookBase";
|
||||||
import { IQuest } from "../models/eft/common/tables/IQuest";
|
import { IQuest } from "../models/eft/common/tables/IQuest";
|
||||||
|
import { IGetItemPricesResponse } from "../models/eft/game/IGetItemPricesResponse";
|
||||||
import { IHideoutArea } from "../models/eft/hideout/IHideoutArea";
|
import { IHideoutArea } from "../models/eft/hideout/IHideoutArea";
|
||||||
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
||||||
import { IHideoutScavCase } from "../models/eft/hideout/IHideoutScavCase";
|
import { IHideoutScavCase } from "../models/eft/hideout/IHideoutScavCase";
|
||||||
@ -17,7 +20,9 @@ import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
|||||||
export declare class DataCallbacks {
|
export declare class DataCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
protected ragfairController: RagfairController;
|
||||||
|
protected hideoutController: HideoutController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer, ragfairController: RagfairController, hideoutController: HideoutController);
|
||||||
/**
|
/**
|
||||||
* Handles client/settings
|
* Handles client/settings
|
||||||
* @returns ISettingsBase
|
* @returns ISettingsBase
|
||||||
@ -56,4 +61,9 @@ export declare class DataCallbacks {
|
|||||||
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, string>>;
|
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, string>>;
|
||||||
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
/**
|
||||||
|
* Handle client/hideout/qte/list
|
||||||
|
*/
|
||||||
|
getQteList(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetItemPricesResponse>;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealReques
|
|||||||
import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData";
|
import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IWorkoutData } from "../models/eft/health/IWorkoutData";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class HealthCallbacks {
|
export declare class HealthCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
@ -21,6 +22,14 @@ export declare class HealthCallbacks {
|
|||||||
* @returns empty response, no data sent back to client
|
* @returns empty response, no data sent back to client
|
||||||
*/
|
*/
|
||||||
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Custom aki server request found in modules/QTEPatch.cs
|
||||||
|
* @param url
|
||||||
|
* @param info HealthListener.Instance.CurrentHealth class
|
||||||
|
* @param sessionID session id
|
||||||
|
* @returns empty response, no data sent back to client
|
||||||
|
*/
|
||||||
|
handleWorkoutEffects(url: string, info: IWorkoutData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
/**
|
/**
|
||||||
* Handle Eat
|
* Handle Eat
|
||||||
* @returns IItemEventRouterResponse
|
* @returns IItemEventRouterResponse
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import { HideoutController } from "../controllers/HideoutController";
|
import { HideoutController } from "../controllers/HideoutController";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IHandleQTEEventRequestData } from "../models/eft/hideout/IHandleQTEEventRequestData";
|
||||||
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
||||||
|
import { IHideoutImproveAreaRequestData } from "../models/eft/hideout/IHideoutImproveAreaRequestData";
|
||||||
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
||||||
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
||||||
import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData";
|
import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData";
|
||||||
@ -10,6 +12,7 @@ import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideou
|
|||||||
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||||
import { IHideoutUpgradeCompleteRequestData } from "../models/eft/hideout/IHideoutUpgradeCompleteRequestData";
|
import { IHideoutUpgradeCompleteRequestData } from "../models/eft/hideout/IHideoutUpgradeCompleteRequestData";
|
||||||
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
||||||
|
import { IRecordShootingRangePoints } from "../models/eft/hideout/IRecordShootingRangePoints";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
@ -53,44 +56,36 @@ export declare class HideoutCallbacks extends OnUpdate {
|
|||||||
takeItemsFromAreaSlots(pmcData: IPmcData, body: IHideoutTakeItemOutRequestData, sessionID: string): IItemEventRouterResponse;
|
takeItemsFromAreaSlots(pmcData: IPmcData, body: IHideoutTakeItemOutRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Handle HideoutToggleArea
|
* Handle HideoutToggleArea
|
||||||
* @param pmcData
|
|
||||||
* @param body
|
|
||||||
* @param sessionID
|
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
toggleArea(pmcData: IPmcData, body: IHideoutToggleAreaRequestData, sessionID: string): IItemEventRouterResponse;
|
toggleArea(pmcData: IPmcData, body: IHideoutToggleAreaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Handle HideoutSingleProductionStart
|
* Handle HideoutSingleProductionStart
|
||||||
* @param pmcData
|
|
||||||
* @param body
|
|
||||||
* @param sessionID
|
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
singleProductionStart(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
singleProductionStart(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Handle HideoutScavCaseProductionStart
|
* Handle HideoutScavCaseProductionStart
|
||||||
* @param pmcData
|
|
||||||
* @param body
|
|
||||||
* @param sessionID
|
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
scavCaseProductionStart(pmcData: IPmcData, body: IHideoutScavCaseStartRequestData, sessionID: string): IItemEventRouterResponse;
|
scavCaseProductionStart(pmcData: IPmcData, body: IHideoutScavCaseStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Handle HideoutContinuousProductionStart
|
* Handle HideoutContinuousProductionStart
|
||||||
* @param pmcData
|
|
||||||
* @param body
|
|
||||||
* @param sessionID
|
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
continuousProductionStart(pmcData: IPmcData, body: IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
continuousProductionStart(pmcData: IPmcData, body: IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Handle HideoutTakeProduction
|
* Handle HideoutTakeProduction
|
||||||
* @param pmcData
|
|
||||||
* @param body
|
|
||||||
* @param sessionID
|
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
takeProduction(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
takeProduction(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutQuickTimeEvent
|
||||||
|
*/
|
||||||
|
handleQTEEvent(pmcData: IPmcData, request: IHandleQTEEventRequestData, sessionId: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/items/moving - RecordShootingRangePoints
|
||||||
|
*/
|
||||||
|
recordShootingRangePoints(pmcData: IPmcData, request: IRecordShootingRangePoints, sessionId: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/items/moving - RecordShootingRangePoints
|
||||||
|
*/
|
||||||
|
improveArea(pmcData: IPmcData, request: IHideoutImproveAreaRequestData, sessionId: string): IItemEventRouterResponse;
|
||||||
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
}
|
}
|
||||||
|
@ -7,10 +7,10 @@ import { ICreateGroupRequestData } from "../models/eft/match/ICreateGroupRequest
|
|||||||
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
||||||
import { IGetGroupStatusRequestData } from "../models/eft/match/IGetGroupStatusRequestData";
|
import { IGetGroupStatusRequestData } from "../models/eft/match/IGetGroupStatusRequestData";
|
||||||
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
||||||
|
import { IGetRaidConfigurationRequestData } from "../models/eft/match/IGetRaidConfigurationRequestData";
|
||||||
import { IJoinMatchRequestData } from "../models/eft/match/IJoinMatchRequestData";
|
import { IJoinMatchRequestData } from "../models/eft/match/IJoinMatchRequestData";
|
||||||
import { IJoinMatchResult } from "../models/eft/match/IJoinMatchResult";
|
import { IJoinMatchResult } from "../models/eft/match/IJoinMatchResult";
|
||||||
import { IPutMetricsRequestData } from "../models/eft/match/IPutMetricsRequestData";
|
import { IPutMetricsRequestData } from "../models/eft/match/IPutMetricsRequestData";
|
||||||
import { IStartOfflineRaidRequestData } from "../models/eft/match/IStartOffineRaidRequestData";
|
|
||||||
import { IUpdatePingRequestData } from "../models/eft/match/IUpdatePingRequestData";
|
import { IUpdatePingRequestData } from "../models/eft/match/IUpdatePingRequestData";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
@ -41,6 +41,6 @@ export declare class MatchCallbacks {
|
|||||||
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<any>;
|
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData<any>;
|
createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
startOfflineRaid(url: string, info: IStartOfflineRaidRequestData, sessionID: string): INullResponseData;
|
|
||||||
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||||
|
getRaidConfiguration(url: string, info: IGetRaidConfigurationRequestData, sessionID: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,14 @@ export declare class RagfairCallbacks extends OnLoadOnUpdate {
|
|||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
search(url: string, info: ISearchRequestData, sessionID: string): IGetBodyResponseData<IGetOffersResult>;
|
search(url: string, info: ISearchRequestData, sessionID: string): IGetBodyResponseData<IGetOffersResult>;
|
||||||
getMarketPrice(url: string, info: IGetMarketPriceRequestData, sessionID: string): IGetBodyResponseData<IGetItemPriceResult>;
|
getMarketPrice(url: string, info: IGetMarketPriceRequestData, sessionID: string): IGetBodyResponseData<IGetItemPriceResult>;
|
||||||
getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, number>>;
|
|
||||||
addOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
addOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
removeOffer(pmcData: IPmcData, info: IRemoveOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
removeOffer(pmcData: IPmcData, info: IRemoveOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
extendOffer(pmcData: IPmcData, info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
extendOffer(pmcData: IPmcData, info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle /client/items/prices
|
||||||
|
* Called when clicking an item to list on flea
|
||||||
|
*/
|
||||||
|
getFleaPrices(url: string, request: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, number>>;
|
||||||
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
sendReport(url: string, info: ISendRagfairReportRequestData, sessionID: string): INullResponseData;
|
sendReport(url: string, info: ISendRagfairReportRequestData, sessionID: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ export declare enum ContextVariableType {
|
|||||||
/** Logged in users session id */
|
/** Logged in users session id */
|
||||||
SESSION_ID = 0,
|
SESSION_ID = 0,
|
||||||
/** Currently acive raid information */
|
/** Currently acive raid information */
|
||||||
MATCH_INFO = 1,
|
RAID_CONFIGURATION = 1,
|
||||||
/** Timestamp when client first connected */
|
/** Timestamp when client first connected */
|
||||||
CLIENT_START_TIMESTAMP = 2,
|
CLIENT_START_TIMESTAMP = 2,
|
||||||
/** When player is loading into map and loot is requested */
|
/** When player is loading into map and loot is requested */
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { ApplicationContext } from "../context/ApplicationContext";
|
import { ApplicationContext } from "../context/ApplicationContext";
|
||||||
|
import { HideoutHelper } from "../helpers/HideoutHelper";
|
||||||
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
import { PreAkiModLoader } from "../loaders/PreAkiModLoader";
|
import { PreAkiModLoader } from "../loaders/PreAkiModLoader";
|
||||||
@ -16,11 +17,14 @@ import { DatabaseServer } from "../servers/DatabaseServer";
|
|||||||
import { LocalisationService } from "../services/LocalisationService";
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
import { ProfileFixerService } from "../services/ProfileFixerService";
|
import { ProfileFixerService } from "../services/ProfileFixerService";
|
||||||
import { SeasonalEventService } from "../services/SeasonalEventService";
|
import { SeasonalEventService } from "../services/SeasonalEventService";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
export declare class GameController {
|
export declare class GameController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
protected preAkiModLoader: PreAkiModLoader;
|
protected preAkiModLoader: PreAkiModLoader;
|
||||||
protected httpServerHelper: HttpServerHelper;
|
protected httpServerHelper: HttpServerHelper;
|
||||||
|
protected hideoutHelper: HideoutHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected profileFixerService: ProfileFixerService;
|
protected profileFixerService: ProfileFixerService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
@ -29,7 +33,7 @@ export declare class GameController {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, preAkiModLoader: PreAkiModLoader, httpServerHelper: HttpServerHelper, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, localisationService: LocalisationService, seasonalEventService: SeasonalEventService, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, timeUtil: TimeUtil, preAkiModLoader: PreAkiModLoader, httpServerHelper: HttpServerHelper, hideoutHelper: HideoutHelper, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, localisationService: LocalisationService, seasonalEventService: SeasonalEventService, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void;
|
gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void;
|
||||||
/**
|
/**
|
||||||
* Get a list of installed mods and save their details to the profile being used
|
* Get a list of installed mods and save their details to the profile being used
|
||||||
|
@ -2,6 +2,7 @@ import { HealthHelper } from "../helpers/HealthHelper";
|
|||||||
import { InventoryHelper } from "../helpers/InventoryHelper";
|
import { InventoryHelper } from "../helpers/InventoryHelper";
|
||||||
import { ItemHelper } from "../helpers/ItemHelper";
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IWorkoutData } from "../models/eft/health/IWorkoutData";
|
||||||
import { IHealthTreatmentRequestData } from "../models/eft/health/IHealthTreatmentRequestData";
|
import { IHealthTreatmentRequestData } from "../models/eft/health/IHealthTreatmentRequestData";
|
||||||
import { IOffraidEatRequestData } from "../models/eft/health/IOffraidEatRequestData";
|
import { IOffraidEatRequestData } from "../models/eft/health/IOffraidEatRequestData";
|
||||||
import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealRequestData";
|
import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealRequestData";
|
||||||
@ -45,6 +46,13 @@ export declare class HealthController {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
healthTreatment(pmcData: IPmcData, healthTreatmentRequest: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
healthTreatment(pmcData: IPmcData, healthTreatmentRequest: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* applies skills from hideout workout.
|
||||||
|
* @param pmcData Player profile
|
||||||
|
* @param info Request data
|
||||||
|
* @param sessionID
|
||||||
|
*/
|
||||||
|
applyWorkoutChanges(pmcData: IPmcData, info: IWorkoutData, sessionId: string): void;
|
||||||
/**
|
/**
|
||||||
* iterate over treatment request diff and find effects to remove from player limbs
|
* iterate over treatment request diff and find effects to remove from player limbs
|
||||||
* @param sessionId
|
* @param sessionId
|
||||||
|
@ -7,7 +7,9 @@ import { ProfileHelper } from "../helpers/ProfileHelper";
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { HideoutArea, Product } from "../models/eft/common/tables/IBotBase";
|
import { HideoutArea, Product } from "../models/eft/common/tables/IBotBase";
|
||||||
import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData";
|
import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData";
|
||||||
|
import { IHandleQTEEventRequestData } from "../models/eft/hideout/IHandleQTEEventRequestData";
|
||||||
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
||||||
|
import { IHideoutImproveAreaRequestData } from "../models/eft/hideout/IHideoutImproveAreaRequestData";
|
||||||
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
||||||
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
||||||
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
||||||
@ -16,6 +18,8 @@ import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTa
|
|||||||
import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData";
|
import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||||
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||||
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
||||||
|
import { IQteData } from "../models/eft/hideout/IQteData";
|
||||||
|
import { IRecordShootingRangePoints } from "../models/eft/hideout/IRecordShootingRangePoints";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
@ -102,5 +106,35 @@ export declare class HideoutController {
|
|||||||
*/
|
*/
|
||||||
protected handleScavCase(sessionID: string, pmcData: IPmcData, body: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse;
|
protected handleScavCase(sessionID: string, pmcData: IPmcData, body: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse;
|
||||||
registerProduction(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData | IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
registerProduction(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData | IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Get quick time event list for hideout
|
||||||
|
* // TODO - implement this
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @returns IQteData array
|
||||||
|
*/
|
||||||
|
getQteList(sessionId: string): IQteData[];
|
||||||
|
/**
|
||||||
|
* Handle HideoutQuickTimeEvent on client/game/profile/items/moving
|
||||||
|
* Called after completing workout at gym
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param pmcData Profile to adjust
|
||||||
|
* @param request QTE result object
|
||||||
|
*/
|
||||||
|
handleQTEEventOutcome(sessionId: string, pmcData: IPmcData, request: IHandleQTEEventRequestData): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Record a high score from the shooting range into a player profiles overallcounters
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param pmcData Profile to update
|
||||||
|
* @param request shooting range score request
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
|
recordShootingRangePoints(sessionId: string, pmcData: IPmcData, request: IRecordShootingRangePoints): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/items/moving - HideoutImproveArea
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param pmcData profile to improve area in
|
||||||
|
* @param request improve area request data
|
||||||
|
*/
|
||||||
|
improveArea(sessionId: string, pmcData: IPmcData, request: IHideoutImproveAreaRequestData): IItemEventRouterResponse;
|
||||||
update(): void;
|
update(): void;
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,9 @@ import { ICreateGroupRequestData } from "../models/eft/match/ICreateGroupRequest
|
|||||||
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
||||||
import { IGetGroupStatusRequestData } from "../models/eft/match/IGetGroupStatusRequestData";
|
import { IGetGroupStatusRequestData } from "../models/eft/match/IGetGroupStatusRequestData";
|
||||||
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
||||||
|
import { IGetRaidConfigurationRequestData } from "../models/eft/match/IGetRaidConfigurationRequestData";
|
||||||
import { IJoinMatchRequestData } from "../models/eft/match/IJoinMatchRequestData";
|
import { IJoinMatchRequestData } from "../models/eft/match/IJoinMatchRequestData";
|
||||||
import { IJoinMatchResult } from "../models/eft/match/IJoinMatchResult";
|
import { IJoinMatchResult } from "../models/eft/match/IJoinMatchResult";
|
||||||
import { IStartOfflineRaidRequestData } from "../models/eft/match/IStartOffineRaidRequestData";
|
|
||||||
import { BotDifficulty } from "../models/enums/BotDifficulty";
|
|
||||||
import { IBotConfig } from "../models/spt/config/IBotConfig";
|
import { IBotConfig } from "../models/spt/config/IBotConfig";
|
||||||
import { IInRaidConfig } from "../models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "../models/spt/config/IInRaidConfig";
|
||||||
import { IMatchConfig } from "../models/spt/config/IMatchConfig";
|
import { IMatchConfig } from "../models/spt/config/IMatchConfig";
|
||||||
@ -46,12 +45,17 @@ export declare class MatchController {
|
|||||||
joinMatch(info: IJoinMatchRequestData, sessionID: string): IJoinMatchResult[];
|
joinMatch(info: IJoinMatchRequestData, sessionID: string): IJoinMatchResult[];
|
||||||
protected getMatch(location: string): any;
|
protected getMatch(location: string): any;
|
||||||
getGroupStatus(info: IGetGroupStatusRequestData): any;
|
getGroupStatus(info: IGetGroupStatusRequestData): any;
|
||||||
startOfflineRaid(info: IStartOfflineRaidRequestData, sessionID: string): void;
|
/**
|
||||||
|
* Handle /client/raid/configuration
|
||||||
|
* @param request
|
||||||
|
* @param sessionID
|
||||||
|
*/
|
||||||
|
startOfflineRaid(request: IGetRaidConfigurationRequestData, sessionID: string): void;
|
||||||
/**
|
/**
|
||||||
* Convert a difficulty value from pre-raid screen to a bot difficulty
|
* Convert a difficulty value from pre-raid screen to a bot difficulty
|
||||||
* @param botDifficulty dropdown difficulty
|
* @param botDifficulty dropdown difficulty value
|
||||||
* @returns bot difficulty
|
* @returns bot difficulty
|
||||||
*/
|
*/
|
||||||
protected convertDifficultyDropdownIntoBotDifficulty(botDifficulty: BotDifficulty): string;
|
protected convertDifficultyDropdownIntoBotDifficulty(botDifficulty: string): string;
|
||||||
endOfflineRaid(info: IEndOfflineRaidRequestData, sessionID: string): void;
|
endOfflineRaid(info: IEndOfflineRaidRequestData, sessionID: string): void;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { PlayerScavGenerator } from "../generators/PlayerScavGenerator";
|
import { PlayerScavGenerator } from "../generators/PlayerScavGenerator";
|
||||||
import { ItemHelper } from "../helpers/ItemHelper";
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
import { ProfileHelper } from "../helpers/ProfileHelper";
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { QuestHelper } from "../helpers/QuestHelper";
|
||||||
import { TraderHelper } from "../helpers/TraderHelper";
|
import { TraderHelper } from "../helpers/TraderHelper";
|
||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||||
@ -24,8 +25,9 @@ export declare class ProfileController {
|
|||||||
protected profileFixerService: ProfileFixerService;
|
protected profileFixerService: ProfileFixerService;
|
||||||
protected playerScavGenerator: PlayerScavGenerator;
|
protected playerScavGenerator: PlayerScavGenerator;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
|
protected questHelper: QuestHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileFixerService: ProfileFixerService, playerScavGenerator: PlayerScavGenerator, traderHelper: TraderHelper, profileHelper: ProfileHelper);
|
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileFixerService: ProfileFixerService, playerScavGenerator: PlayerScavGenerator, traderHelper: TraderHelper, questHelper: QuestHelper, profileHelper: ProfileHelper);
|
||||||
getMiniProfiles(): IMiniProfile[];
|
getMiniProfiles(): IMiniProfile[];
|
||||||
getMiniProfile(sessionID: string): any;
|
getMiniProfile(sessionID: string): any;
|
||||||
getCompleteProfile(sessionID: string): IPmcData[];
|
getCompleteProfile(sessionID: string): IPmcData[];
|
||||||
|
@ -115,6 +115,7 @@ export declare class RagfairController {
|
|||||||
addPlayerOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
addPlayerOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
createPlayerOffer(profile: IAkiProfile, requirements: Requirement[], items: Item[], sellInOnePiece: boolean, amountToSend: number): IRagfairOffer;
|
createPlayerOffer(profile: IAkiProfile, requirements: Requirement[], items: Item[], sellInOnePiece: boolean, amountToSend: number): IRagfairOffer;
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
getStaticPrices(): Record<string, number>;
|
||||||
removeOffer(offerId: string, sessionID: string): IItemEventRouterResponse;
|
removeOffer(offerId: string, sessionID: string): IItemEventRouterResponse;
|
||||||
extendOffer(info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
extendOffer(info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
}
|
}
|
||||||
|
@ -89,9 +89,10 @@ export declare class BotWeaponGenerator {
|
|||||||
/**
|
/**
|
||||||
* Checks if all required slots are occupied on a weapon and all it's mods
|
* Checks if all required slots are occupied on a weapon and all it's mods
|
||||||
* @param weaponItemArray Weapon + mods
|
* @param weaponItemArray Weapon + mods
|
||||||
|
* @param botRole role of bot weapon is for
|
||||||
* @returns true if valid
|
* @returns true if valid
|
||||||
*/
|
*/
|
||||||
protected isWeaponValid(weaponItemArray: Item[]): boolean;
|
protected isWeaponValid(weaponItemArray: Item[], botRole: string): boolean;
|
||||||
/**
|
/**
|
||||||
* Generates extra magazines or bullets (if magazine is internal) and adds them to TacticalVest and Pockets.
|
* Generates extra magazines or bullets (if magazine is internal) and adds them to TacticalVest and Pockets.
|
||||||
* Additionally, adds extra bullets to SecuredContainer
|
* Additionally, adds extra bullets to SecuredContainer
|
||||||
|
@ -34,7 +34,7 @@ export declare class HealthHelper {
|
|||||||
/**
|
/**
|
||||||
* Save effects to profile
|
* Save effects to profile
|
||||||
* Works by removing all effects and adding them back from profile
|
* Works by removing all effects and adding them back from profile
|
||||||
* Remoces empty 'Effects' objects if found
|
* Removes empty 'Effects' objects if found
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
* @param addEffects Should effects be added back to profile
|
* @param addEffects Should effects be added back to profile
|
||||||
@ -46,7 +46,8 @@ export declare class HealthHelper {
|
|||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
* @param effectBodyPart body part to edit
|
* @param effectBodyPart body part to edit
|
||||||
* @param effectType Effect to add to body part
|
* @param effectType Effect to add to body part
|
||||||
|
* @param duration How long the effect has left in seconds (-1 by default, no duration).
|
||||||
*/
|
*/
|
||||||
protected addEffect(pmcData: IPmcData, effectBodyPart: string, effectType: Effect): void;
|
protected addEffect(pmcData: IPmcData, effectBodyPart: string, effectType: Effect, duration?: number): void;
|
||||||
protected isEmpty(map: any): boolean;
|
protected isEmpty(map: any): boolean;
|
||||||
}
|
}
|
||||||
|
@ -120,4 +120,14 @@ export declare class HideoutHelper {
|
|||||||
protected getHideoutManagementConsumptionBonus(pmcData: IPmcData): number;
|
protected getHideoutManagementConsumptionBonus(pmcData: IPmcData): number;
|
||||||
isProduction(productive: Productive): productive is Production;
|
isProduction(productive: Productive): productive is Production;
|
||||||
getBTC(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
getBTC(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Upgrade hideout wall from starting level to interactable level if enough time has passed
|
||||||
|
* @param pmcProfile Profile to upgrade wall in
|
||||||
|
*/
|
||||||
|
unlockHideoutWallInProfile(pmcProfile: IPmcData): void;
|
||||||
|
/**
|
||||||
|
* Iterate over hideout improvements not completed and check if they need to be adjusted
|
||||||
|
* @param pmcProfile Profile to adjust
|
||||||
|
*/
|
||||||
|
setHideoutImprovementsToCompleted(pmcProfile: IPmcData): void;
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,11 @@ export declare class InRaidHelper {
|
|||||||
* @returns Reset profile object
|
* @returns Reset profile object
|
||||||
*/
|
*/
|
||||||
updateProfileBaseStats(profileData: IPmcData, saveProgressRequest: ISaveProgressRequestData, sessionID: string): IPmcData;
|
updateProfileBaseStats(profileData: IPmcData, saveProgressRequest: ISaveProgressRequestData, sessionID: string): IPmcData;
|
||||||
|
/**
|
||||||
|
* Take body part effects from client profile and apply to server profile
|
||||||
|
* @param saveProgressRequest post-raid request
|
||||||
|
* @param profileData player profile on server
|
||||||
|
*/
|
||||||
protected transferPostRaidLimbEffectsToProfile(saveProgressRequest: ISaveProgressRequestData, profileData: IPmcData): void;
|
protected transferPostRaidLimbEffectsToProfile(saveProgressRequest: ISaveProgressRequestData, profileData: IPmcData): void;
|
||||||
/**
|
/**
|
||||||
* Some maps have one-time-use keys (e.g. Labs
|
* Some maps have one-time-use keys (e.g. Labs
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { Item } from "../models/eft/common/tables/IItem";
|
import { Item } from "../models/eft/common/tables/IItem";
|
||||||
import { IAddItemRequestData } from "../models/eft/inventory/IAddItemRequestData";
|
import { AddItem, IAddItemRequestData } from "../models/eft/inventory/IAddItemRequestData";
|
||||||
|
import { IAddItemTempObject } from "../models/eft/inventory/IAddItemTempObject";
|
||||||
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
||||||
import { IInventoryMoveRequestData } from "../models/eft/inventory/IInventoryMoveRequestData";
|
import { IInventoryMoveRequestData } from "../models/eft/inventory/IInventoryMoveRequestData";
|
||||||
import { IInventorySplitRequestData } from "../models/eft/inventory/IInventorySplitRequestData";
|
import { IInventorySplitRequestData } from "../models/eft/inventory/IInventorySplitRequestData";
|
||||||
@ -46,15 +47,41 @@ export declare class InventoryHelper {
|
|||||||
/**
|
/**
|
||||||
* BUG: Passing the same item multiple times with a count of 1 will cause multiples of that item to be added (e.g. x3 separate objects of tar cola with count of 1 = 9 tarcolas being added to inventory)
|
* BUG: Passing the same item multiple times with a count of 1 will cause multiples of that item to be added (e.g. x3 separate objects of tar cola with count of 1 = 9 tarcolas being added to inventory)
|
||||||
* @param pmcData Profile to add items to
|
* @param pmcData Profile to add items to
|
||||||
* @param body request data to add items
|
* @param request request data to add items
|
||||||
* @param output response to send back to client
|
* @param output response to send back to client
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
* @param callback
|
* @param callback Code to execute later (function)
|
||||||
* @param foundInRaid Will results added to inventory be set as found in raid
|
* @param foundInRaid Will results added to inventory be set as found in raid
|
||||||
* @param addUpd Additional upd propertys for items being added to inventory
|
* @param addUpd Additional upd propertys for items being added to inventory
|
||||||
* @returns IItemEventRouterResponse
|
* @returns IItemEventRouterResponse
|
||||||
*/
|
*/
|
||||||
addItem(pmcData: IPmcData, body: IAddItemRequestData, output: IItemEventRouterResponse, sessionID: string, callback: any, foundInRaid?: boolean, addUpd?: any): IItemEventRouterResponse;
|
addItem(pmcData: IPmcData, request: IAddItemRequestData, output: IItemEventRouterResponse, sessionID: string, callback: {
|
||||||
|
(): void;
|
||||||
|
}, foundInRaid?: boolean, addUpd?: any): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Add ammo to ammo boxes
|
||||||
|
* @param itemToAdd Item to check is ammo box
|
||||||
|
* @param toDo
|
||||||
|
* @param output IItemEventRouterResponse object
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param pmcData Profile to add ammobox to
|
||||||
|
*/
|
||||||
|
protected hydrateAmmoBoxWithAmmo(pmcData: IPmcData, itemToAdd: IAddItemTempObject, toDo: string[][], sessionID: string, output: IItemEventRouterResponse): void;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param assortItems Items to add to inventory
|
||||||
|
* @param requestItem Details of purchased item to add to inventory
|
||||||
|
* @param result Array split stacks are added to
|
||||||
|
*/
|
||||||
|
protected splitStackIntoSmallerStacks(assortItems: Item[], requestItem: AddItem, result: IAddItemTempObject[]): void;
|
||||||
|
/**
|
||||||
|
* Remove item from player inventory
|
||||||
|
* @param pmcData Profile to remove item from
|
||||||
|
* @param itemId Items id to remove
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param output Existing IItemEventRouterResponse object to append data to, creates new one by default if not supplied
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
removeItem(pmcData: IPmcData, itemId: string, sessionID: string, output?: IItemEventRouterResponse): IItemEventRouterResponse;
|
removeItem(pmcData: IPmcData, itemId: string, sessionID: string, output?: IItemEventRouterResponse): IItemEventRouterResponse;
|
||||||
removeItemByCount(pmcData: IPmcData, itemId: string, count: number, sessionID: string, output?: IItemEventRouterResponse): IItemEventRouterResponse;
|
removeItemByCount(pmcData: IPmcData, itemId: string, count: number, sessionID: string, output?: IItemEventRouterResponse): IItemEventRouterResponse;
|
||||||
getItemSize(itemTpl: string, itemID: string, inventoryItem: Item[]): Record<number, number>;
|
getItemSize(itemTpl: string, itemID: string, inventoryItem: Item[]): Record<number, number>;
|
||||||
|
@ -194,4 +194,10 @@ export declare class QuestHelper {
|
|||||||
* @returns 'FindItem' condition id
|
* @returns 'FindItem' condition id
|
||||||
*/
|
*/
|
||||||
getFindItemIdForQuestHandIn(itemTpl: string): string;
|
getFindItemIdForQuestHandIn(itemTpl: string): string;
|
||||||
|
/**
|
||||||
|
* Add All quests to a profile with the provided statuses
|
||||||
|
* @param pmcProfile profile to update
|
||||||
|
* @param statuses statuses quests should have
|
||||||
|
*/
|
||||||
|
addAllQuestsToProfile(pmcProfile: IPmcData, statuses: QuestStatus[]): void;
|
||||||
}
|
}
|
||||||
|
@ -38,11 +38,11 @@ export declare class TradeHelper {
|
|||||||
/**
|
/**
|
||||||
* Sell item to trader
|
* Sell item to trader
|
||||||
* @param pmcData Profile to update
|
* @param pmcData Profile to update
|
||||||
* @param body
|
* @param sellRequest request data
|
||||||
* @param sessionID
|
* @param sessionID Session id
|
||||||
* @returns
|
* @returns IItemEventRouterResponse
|
||||||
*/
|
*/
|
||||||
sellItem(pmcData: IPmcData, body: IProcessSellTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
sellItem(pmcData: IPmcData, sellRequest: IProcessSellTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Increment the assorts buy count by number of items purchased
|
* Increment the assorts buy count by number of items purchased
|
||||||
* Show error on screen if player attepts to buy more than what the buy max allows
|
* Show error on screen if player attepts to buy more than what the buy max allows
|
||||||
|
@ -29,6 +29,8 @@ export interface Config {
|
|||||||
GlobalLootChanceModifier: number;
|
GlobalLootChanceModifier: number;
|
||||||
TimeBeforeDeploy: number;
|
TimeBeforeDeploy: number;
|
||||||
TimeBeforeDeployLocal: number;
|
TimeBeforeDeployLocal: number;
|
||||||
|
TradingSetting: number;
|
||||||
|
TradingSettings: ITradingSettings;
|
||||||
LoadTimeSpeedProgress: number;
|
LoadTimeSpeedProgress: number;
|
||||||
BaseLoadTime: number;
|
BaseLoadTime: number;
|
||||||
BaseUnloadTime: number;
|
BaseUnloadTime: number;
|
||||||
@ -36,6 +38,7 @@ export interface Config {
|
|||||||
Customization: Customization;
|
Customization: Customization;
|
||||||
UncheckOnShot: boolean;
|
UncheckOnShot: boolean;
|
||||||
BotsEnabled: boolean;
|
BotsEnabled: boolean;
|
||||||
|
BufferZone: IBufferZone;
|
||||||
ArmorMaterials: ArmorMaterials;
|
ArmorMaterials: ArmorMaterials;
|
||||||
LegsOverdamage: number;
|
LegsOverdamage: number;
|
||||||
HandsOverdamage: number;
|
HandsOverdamage: number;
|
||||||
@ -55,7 +58,6 @@ export interface Config {
|
|||||||
StaminaRestoration: StaminaRestoration;
|
StaminaRestoration: StaminaRestoration;
|
||||||
StaminaDrain: StaminaDrain;
|
StaminaDrain: StaminaDrain;
|
||||||
RequirementReferences: RequirementReferences;
|
RequirementReferences: RequirementReferences;
|
||||||
RepairKitSettings: RepairKitSettings;
|
|
||||||
RestrictionsInRaid: RestrictionsInRaid[];
|
RestrictionsInRaid: RestrictionsInRaid[];
|
||||||
SkillMinEffectiveness: number;
|
SkillMinEffectiveness: number;
|
||||||
SkillFatiguePerPoint: number;
|
SkillFatiguePerPoint: number;
|
||||||
@ -83,6 +85,19 @@ export interface Config {
|
|||||||
Inertia: Inertia;
|
Inertia: Inertia;
|
||||||
Ballistic: Ballistic;
|
Ballistic: Ballistic;
|
||||||
}
|
}
|
||||||
|
export interface IBufferZone {
|
||||||
|
CustomerAccessTime: number;
|
||||||
|
CustomerCriticalTimeStart: number;
|
||||||
|
CustomerKickNotifTime: number;
|
||||||
|
}
|
||||||
|
export interface ITradingSettings {
|
||||||
|
BuyoutRestrictions: IBuyoutRestrictions;
|
||||||
|
}
|
||||||
|
export interface IBuyoutRestrictions {
|
||||||
|
MinDurability: number;
|
||||||
|
MinFoodDrinkResource: number;
|
||||||
|
MinMedsResource: number;
|
||||||
|
}
|
||||||
export interface Content {
|
export interface Content {
|
||||||
ip: string;
|
ip: string;
|
||||||
port: number;
|
port: number;
|
||||||
@ -321,6 +336,8 @@ export interface Effects {
|
|||||||
Pain: Pain;
|
Pain: Pain;
|
||||||
PainKiller: PainKiller;
|
PainKiller: PainKiller;
|
||||||
SandingScreen: SandingScreen;
|
SandingScreen: SandingScreen;
|
||||||
|
MildMusclePain: IMusclePainEffect;
|
||||||
|
SevereMusclePain: IMusclePainEffect;
|
||||||
Stimulator: Stimulator;
|
Stimulator: Stimulator;
|
||||||
Tremor: Tremor;
|
Tremor: Tremor;
|
||||||
ChronicStaminaFatigue: ChronicStaminaFatigue;
|
ChronicStaminaFatigue: ChronicStaminaFatigue;
|
||||||
@ -457,6 +474,12 @@ export interface PainKiller {
|
|||||||
export interface SandingScreen {
|
export interface SandingScreen {
|
||||||
Dummy: number;
|
Dummy: number;
|
||||||
}
|
}
|
||||||
|
export interface IMusclePainEffect {
|
||||||
|
GymEffectivity: number;
|
||||||
|
OfflineDurationMax: number;
|
||||||
|
OfflineDurationMin: number;
|
||||||
|
TraumaChance: number;
|
||||||
|
}
|
||||||
export interface Stimulator {
|
export interface Stimulator {
|
||||||
BuffLoopTime: number;
|
BuffLoopTime: number;
|
||||||
Buffs: Buffs;
|
Buffs: Buffs;
|
||||||
@ -803,7 +826,7 @@ export interface SkillsSettings {
|
|||||||
HMG: any[];
|
HMG: any[];
|
||||||
Launcher: any[];
|
Launcher: any[];
|
||||||
AttachedLauncher: any[];
|
AttachedLauncher: any[];
|
||||||
Melee: any[];
|
Melee: IMeleeSkill;
|
||||||
DMR: WeaponSkills;
|
DMR: WeaponSkills;
|
||||||
BearAssaultoperations: any[];
|
BearAssaultoperations: any[];
|
||||||
BearAuthority: any[];
|
BearAuthority: any[];
|
||||||
@ -847,10 +870,25 @@ export interface SkillsSettings {
|
|||||||
BotSound: any[];
|
BotSound: any[];
|
||||||
TroubleShooting: TroubleShooting;
|
TroubleShooting: TroubleShooting;
|
||||||
}
|
}
|
||||||
|
export interface IMeleeSkill {
|
||||||
|
BuffSettings: IBuffSettings;
|
||||||
|
}
|
||||||
export interface ArmorSkills {
|
export interface ArmorSkills {
|
||||||
|
BuffMaxCount: number;
|
||||||
|
BuffSettings: IBuffSettings;
|
||||||
|
Counters: IArmorCounters;
|
||||||
|
MoveSpeedPenaltyReductionHVestsReducePerLevel: number;
|
||||||
|
RicochetChanceHVestsCurrentDurabilityThreshold: number;
|
||||||
|
RicochetChanceHVestsEliteLevel: number;
|
||||||
|
RicochetChanceHVestsMaxDurabilityThreshold: number;
|
||||||
|
MeleeDamageLVestsReducePerLevel: number;
|
||||||
|
MoveSpeedPenaltyReductionLVestsReducePerLevel: number;
|
||||||
WearAmountRepairLVestsReducePerLevel: number;
|
WearAmountRepairLVestsReducePerLevel: number;
|
||||||
WearChanceRepairLVestsReduceEliteLevel: number;
|
WearChanceRepairLVestsReduceEliteLevel: number;
|
||||||
}
|
}
|
||||||
|
export interface IArmorCounters {
|
||||||
|
armorDurability: ISkillCounter;
|
||||||
|
}
|
||||||
export interface HideoutManagement {
|
export interface HideoutManagement {
|
||||||
SkillPointsPerAreaUpgrade: number;
|
SkillPointsPerAreaUpgrade: number;
|
||||||
SkillPointsPerCraft: number;
|
SkillPointsPerCraft: number;
|
||||||
@ -907,6 +945,7 @@ export interface Endurance {
|
|||||||
MovementAction: number;
|
MovementAction: number;
|
||||||
SprintAction: number;
|
SprintAction: number;
|
||||||
GainPerFatigueStack: number;
|
GainPerFatigueStack: number;
|
||||||
|
QTELevelMultipliers: Record<string, Record<string, number>>;
|
||||||
}
|
}
|
||||||
export interface Strength {
|
export interface Strength {
|
||||||
SprintActionMin: number;
|
SprintActionMin: number;
|
||||||
@ -915,9 +954,14 @@ export interface Strength {
|
|||||||
MovementActionMax: number;
|
MovementActionMax: number;
|
||||||
PushUpMin: number;
|
PushUpMin: number;
|
||||||
PushUpMax: number;
|
PushUpMax: number;
|
||||||
|
QTELevelMultipliers: IQTELevelMultiplier[];
|
||||||
FistfightAction: number;
|
FistfightAction: number;
|
||||||
ThrowAction: number;
|
ThrowAction: number;
|
||||||
}
|
}
|
||||||
|
export interface IQTELevelMultiplier {
|
||||||
|
Level: number;
|
||||||
|
Multiplier: number;
|
||||||
|
}
|
||||||
export interface Vitality {
|
export interface Vitality {
|
||||||
DamageTakenAction: number;
|
DamageTakenAction: number;
|
||||||
HealthNegativeEffect: number;
|
HealthNegativeEffect: number;
|
||||||
@ -950,22 +994,42 @@ export interface Search {
|
|||||||
FindAction: number;
|
FindAction: number;
|
||||||
}
|
}
|
||||||
export interface WeaponTreatment {
|
export interface WeaponTreatment {
|
||||||
|
BuffMaxCount: number;
|
||||||
|
BuffSettings: IBuffSettings;
|
||||||
|
Counters: IWeaponTreatmentCounters;
|
||||||
DurLossReducePerLevel: number;
|
DurLossReducePerLevel: number;
|
||||||
SkillPointsPerRepair: number;
|
SkillPointsPerRepair: number;
|
||||||
Filter: any[];
|
Filter: any[];
|
||||||
WearAmountRepairGunsReducePerLevel: number;
|
WearAmountRepairGunsReducePerLevel: number;
|
||||||
WearChanceRepairGunsReduceEliteLevel: number;
|
WearChanceRepairGunsReduceEliteLevel: number;
|
||||||
}
|
}
|
||||||
|
export interface IWeaponTreatmentCounters {
|
||||||
|
firearmsDurability: ISkillCounter;
|
||||||
|
}
|
||||||
|
export interface IBuffSettings {
|
||||||
|
CommonBuffChanceLevelBonus: number;
|
||||||
|
CommonBuffMinChanceValue: number;
|
||||||
|
CurrentDurabilityLossToRemoveBuff?: number;
|
||||||
|
MaxDurabilityLossToRemoveBuff?: number;
|
||||||
|
RareBuffChanceCoff: number;
|
||||||
|
ReceivedDurabilityMaxPercent: number;
|
||||||
|
}
|
||||||
export interface MagDrills {
|
export interface MagDrills {
|
||||||
RaidLoadedAmmoAction: number;
|
RaidLoadedAmmoAction: number;
|
||||||
RaidUnloadedAmmoAction: number;
|
RaidUnloadedAmmoAction: number;
|
||||||
MagazineCheckAction: number;
|
MagazineCheckAction: number;
|
||||||
}
|
}
|
||||||
export interface Perception {
|
export interface Perception {
|
||||||
|
DependentSkillRatios: ISkillRatio[];
|
||||||
OnlineAction: number;
|
OnlineAction: number;
|
||||||
UniqueLoot: number;
|
UniqueLoot: number;
|
||||||
}
|
}
|
||||||
|
export interface ISkillRatio {
|
||||||
|
Ratio: number;
|
||||||
|
SkillId: string;
|
||||||
|
}
|
||||||
export interface Intellect {
|
export interface Intellect {
|
||||||
|
Counters: IIntellectCounters;
|
||||||
ExamineAction: number;
|
ExamineAction: number;
|
||||||
SkillProgress: number;
|
SkillProgress: number;
|
||||||
RepairAction: number;
|
RepairAction: number;
|
||||||
@ -973,16 +1037,52 @@ export interface Intellect {
|
|||||||
WearChanceReduceEliteLevel: number;
|
WearChanceReduceEliteLevel: number;
|
||||||
RepairPointsCostReduction: number;
|
RepairPointsCostReduction: number;
|
||||||
}
|
}
|
||||||
|
export interface IIntellectCounters {
|
||||||
|
armorDurability: ISkillCounter;
|
||||||
|
firearmsDurability: ISkillCounter;
|
||||||
|
meleeWeaponDurability: ISkillCounter;
|
||||||
|
}
|
||||||
|
export interface ISkillCounter {
|
||||||
|
divisor: number;
|
||||||
|
points: number;
|
||||||
|
}
|
||||||
export interface Attention {
|
export interface Attention {
|
||||||
|
DependentSkillRatios: ISkillRatio[];
|
||||||
ExamineWithInstruction: number;
|
ExamineWithInstruction: number;
|
||||||
FindActionFalse: number;
|
FindActionFalse: number;
|
||||||
FindActionTrue: number;
|
FindActionTrue: number;
|
||||||
}
|
}
|
||||||
export interface Charisma {
|
export interface Charisma {
|
||||||
|
BonusSettings: IBonusSettings;
|
||||||
|
Counters: ICharismaSkillCounters;
|
||||||
SkillProgressInt: number;
|
SkillProgressInt: number;
|
||||||
SkillProgressAtn: number;
|
SkillProgressAtn: number;
|
||||||
SkillProgressPer: number;
|
SkillProgressPer: number;
|
||||||
}
|
}
|
||||||
|
export interface ICharismaSkillCounters {
|
||||||
|
insuranceCost: ISkillCounter;
|
||||||
|
repairCost: ISkillCounter;
|
||||||
|
repeatableQuestCompleteCount: ISkillCounter;
|
||||||
|
restoredHealthCost: ISkillCounter;
|
||||||
|
scavCaseCost: ISkillCounter;
|
||||||
|
}
|
||||||
|
export interface IBonusSettings {
|
||||||
|
EliteBonusSettings: IEliteBonusSettings;
|
||||||
|
LevelBonusSettings: ILevelBonusSettings;
|
||||||
|
}
|
||||||
|
export interface IEliteBonusSettings {
|
||||||
|
FenceStandingLossDiscount: number;
|
||||||
|
RepeatableQuestExtraCount: number;
|
||||||
|
ScavCaseDiscount: number;
|
||||||
|
}
|
||||||
|
export interface ILevelBonusSettings {
|
||||||
|
HealthRestoreDiscount: number;
|
||||||
|
HealthRestoreTraderDiscount: number;
|
||||||
|
InsuranceDiscount: number;
|
||||||
|
InsuranceTraderDiscount: number;
|
||||||
|
PaidExitDiscount: number;
|
||||||
|
RepeatableQuestChangeDiscount: number;
|
||||||
|
}
|
||||||
export interface Memory {
|
export interface Memory {
|
||||||
AnySkillUp: number;
|
AnySkillUp: number;
|
||||||
SkillProgress: number;
|
SkillProgress: number;
|
||||||
@ -1145,11 +1245,30 @@ export interface xyz {
|
|||||||
export interface Ballistic {
|
export interface Ballistic {
|
||||||
GlobalDamageDegradationCoefficient: number;
|
GlobalDamageDegradationCoefficient: number;
|
||||||
}
|
}
|
||||||
export interface RepairKitSettings {
|
export interface RepairSettings {
|
||||||
|
ItemEnhancementSettings: IItemEnhancementSettings;
|
||||||
|
MinimumLevelToApplyBuff: number;
|
||||||
|
RepairStrategies: IRepairStrategies;
|
||||||
armorClassDivisor: number;
|
armorClassDivisor: number;
|
||||||
durabilityPointCostArmor: number;
|
durabilityPointCostArmor: number;
|
||||||
durabilityPointCostGuns: number;
|
durabilityPointCostGuns: number;
|
||||||
}
|
}
|
||||||
|
export interface IItemEnhancementSettings {
|
||||||
|
DamageReduction: IPriceModifier;
|
||||||
|
MalfunctionProtections: IPriceModifier;
|
||||||
|
WeaponSpread: IPriceModifier;
|
||||||
|
}
|
||||||
|
export interface IPriceModifier {
|
||||||
|
PriceModifier: number;
|
||||||
|
}
|
||||||
|
export interface IRepairStrategies {
|
||||||
|
Armor: IRepairStrategy;
|
||||||
|
Firearms: IRepairStrategy;
|
||||||
|
}
|
||||||
|
export interface IRepairStrategy {
|
||||||
|
BuffTypes: string[];
|
||||||
|
Filter: string[];
|
||||||
|
}
|
||||||
export interface BotPreset {
|
export interface BotPreset {
|
||||||
UseThis: boolean;
|
UseThis: boolean;
|
||||||
Role: string;
|
Role: string;
|
||||||
|
@ -118,6 +118,7 @@ export interface BossLocationSpawn {
|
|||||||
TriggerName: string;
|
TriggerName: string;
|
||||||
Delay?: number;
|
Delay?: number;
|
||||||
Supports?: BossSupport[];
|
Supports?: BossSupport[];
|
||||||
|
sptId?: string;
|
||||||
}
|
}
|
||||||
export interface BossSupport {
|
export interface BossSupport {
|
||||||
BossEscortAmount: string;
|
BossEscortAmount: string;
|
||||||
@ -202,6 +203,7 @@ export interface Wave {
|
|||||||
slots_min: number;
|
slots_min: number;
|
||||||
time_max: number;
|
time_max: number;
|
||||||
time_min: number;
|
time_min: number;
|
||||||
|
sptId?: string;
|
||||||
}
|
}
|
||||||
export declare enum WildSpawnType {
|
export declare enum WildSpawnType {
|
||||||
ASSAULT = "assault",
|
ASSAULT = "assault",
|
||||||
|
@ -21,6 +21,7 @@ export interface IBotBase {
|
|||||||
Hideout: Hideout;
|
Hideout: Hideout;
|
||||||
Quests: Quest[];
|
Quests: Quest[];
|
||||||
TradersInfo: Record<string, TraderInfo>;
|
TradersInfo: Record<string, TraderInfo>;
|
||||||
|
UnlockedInfo: IUnlockedInfo;
|
||||||
RagfairInfo: RagfairInfo;
|
RagfairInfo: RagfairInfo;
|
||||||
RepeatableQuests: IPmcDataRepeatableQuest[];
|
RepeatableQuests: IPmcDataRepeatableQuest[];
|
||||||
Bonuses: Bonus[];
|
Bonuses: Bonus[];
|
||||||
@ -31,6 +32,9 @@ export interface IBotBase {
|
|||||||
/** SPT specific property used during bot generation in raid */
|
/** SPT specific property used during bot generation in raid */
|
||||||
sptIsPmc?: boolean;
|
sptIsPmc?: boolean;
|
||||||
}
|
}
|
||||||
|
export interface IUnlockedInfo {
|
||||||
|
unlockedProductionRecipe: string[];
|
||||||
|
}
|
||||||
export interface Info {
|
export interface Info {
|
||||||
EntryPoint: string;
|
EntryPoint: string;
|
||||||
Nickname: string;
|
Nickname: string;
|
||||||
@ -265,6 +269,11 @@ export interface InsuredItem {
|
|||||||
export interface Hideout {
|
export interface Hideout {
|
||||||
Production: Record<string, Productive>;
|
Production: Record<string, Productive>;
|
||||||
Areas: HideoutArea[];
|
Areas: HideoutArea[];
|
||||||
|
Improvements: Record<string, IHideoutImprovement>;
|
||||||
|
}
|
||||||
|
export interface IHideoutImprovement {
|
||||||
|
completed: boolean;
|
||||||
|
improveCompleteTimestamp: number;
|
||||||
}
|
}
|
||||||
export interface Productive {
|
export interface Productive {
|
||||||
Products: Product[];
|
Products: Product[];
|
||||||
@ -327,10 +336,12 @@ export interface Quest {
|
|||||||
statusTimers?: Record<string, number>;
|
statusTimers?: Record<string, number>;
|
||||||
/** SPT specific property */
|
/** SPT specific property */
|
||||||
completedConditions?: string[];
|
completedConditions?: string[];
|
||||||
|
availableAfter?: number;
|
||||||
}
|
}
|
||||||
export interface TraderInfo {
|
export interface TraderInfo {
|
||||||
loyaltyLevel: number;
|
loyaltyLevel: number;
|
||||||
salesSum: number;
|
salesSum: number;
|
||||||
|
disabled: boolean;
|
||||||
standing: number;
|
standing: number;
|
||||||
nextResupply: number;
|
nextResupply: number;
|
||||||
unlocked: boolean;
|
unlocked: boolean;
|
||||||
|
@ -98,7 +98,8 @@ export interface Location {
|
|||||||
y: number;
|
y: number;
|
||||||
r: string | number;
|
r: string | number;
|
||||||
isSearched?: boolean;
|
isSearched?: boolean;
|
||||||
rotation?: string;
|
/** SPT property? */
|
||||||
|
rotation?: string | boolean;
|
||||||
}
|
}
|
||||||
export interface SideEffect {
|
export interface SideEffect {
|
||||||
Value: number;
|
Value: number;
|
||||||
|
@ -19,6 +19,7 @@ export interface TemplateSide {
|
|||||||
}
|
}
|
||||||
export interface ProfileTraderTemplate {
|
export interface ProfileTraderTemplate {
|
||||||
initialLoyaltyLevel: number;
|
initialLoyaltyLevel: number;
|
||||||
|
setQuestsAvailableForStart?: boolean;
|
||||||
initialStanding: number;
|
initialStanding: number;
|
||||||
initialSalesSum: number;
|
initialSalesSum: number;
|
||||||
jaegerUnlocked: boolean;
|
jaegerUnlocked: boolean;
|
||||||
|
@ -15,6 +15,7 @@ export interface IQuest {
|
|||||||
image: string;
|
image: string;
|
||||||
type: string;
|
type: string;
|
||||||
isKey: boolean;
|
isKey: boolean;
|
||||||
|
questStatus: any;
|
||||||
restartable: boolean;
|
restartable: boolean;
|
||||||
instantComplete: boolean;
|
instantComplete: boolean;
|
||||||
secretQuest: boolean;
|
secretQuest: boolean;
|
||||||
@ -43,6 +44,7 @@ export interface AvailableForProps {
|
|||||||
id: string;
|
id: string;
|
||||||
index: number;
|
index: number;
|
||||||
parentId: string;
|
parentId: string;
|
||||||
|
isEncoded: boolean;
|
||||||
dynamicLocale: boolean;
|
dynamicLocale: boolean;
|
||||||
value?: number;
|
value?: number;
|
||||||
compareMethod?: string;
|
compareMethod?: string;
|
||||||
|
@ -29,8 +29,11 @@ export interface Props {
|
|||||||
IsUnsaleable?: boolean;
|
IsUnsaleable?: boolean;
|
||||||
IsUnbuyable?: boolean;
|
IsUnbuyable?: boolean;
|
||||||
IsUngivable?: boolean;
|
IsUngivable?: boolean;
|
||||||
|
IsUnremovable?: boolean;
|
||||||
IsLockedafterEquip?: boolean;
|
IsLockedafterEquip?: boolean;
|
||||||
|
IsSpecialSlotOnly?: boolean;
|
||||||
QuestItem?: boolean;
|
QuestItem?: boolean;
|
||||||
|
QuestStashMaxCount?: number;
|
||||||
LootExperience?: number;
|
LootExperience?: number;
|
||||||
ExamineExperience?: number;
|
ExamineExperience?: number;
|
||||||
HideEntrails?: boolean;
|
HideEntrails?: boolean;
|
||||||
@ -161,6 +164,7 @@ export interface Props {
|
|||||||
weaponErgonomicPenalty?: number;
|
weaponErgonomicPenalty?: number;
|
||||||
BluntThroughput?: number;
|
BluntThroughput?: number;
|
||||||
ArmorMaterial?: string;
|
ArmorMaterial?: string;
|
||||||
|
ArmorType?: string;
|
||||||
weapClass?: string;
|
weapClass?: string;
|
||||||
weapUseType?: string;
|
weapUseType?: string;
|
||||||
ammoCaliber?: string;
|
ammoCaliber?: string;
|
||||||
@ -365,6 +369,8 @@ export interface Props {
|
|||||||
CanBeHiddenDuringThrow?: boolean;
|
CanBeHiddenDuringThrow?: boolean;
|
||||||
MinTimeToContactExplode?: number;
|
MinTimeToContactExplode?: number;
|
||||||
ExplosionEffectType?: string;
|
ExplosionEffectType?: string;
|
||||||
|
LinkedWeapon?: string;
|
||||||
|
UseAmmoWithoutShell?: boolean;
|
||||||
}
|
}
|
||||||
export interface IHealthEffect {
|
export interface IHealthEffect {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -9,6 +9,7 @@ export interface ITrader {
|
|||||||
export interface ITraderBase {
|
export interface ITraderBase {
|
||||||
refreshTraderRagfairOffers: boolean;
|
refreshTraderRagfairOffers: boolean;
|
||||||
_id: string;
|
_id: string;
|
||||||
|
availableInRaid: boolean;
|
||||||
avatar: string;
|
avatar: string;
|
||||||
balance_dol: number;
|
balance_dol: number;
|
||||||
balance_eur: number;
|
balance_eur: number;
|
||||||
@ -20,6 +21,8 @@ export interface ITraderBase {
|
|||||||
discount_end: number;
|
discount_end: number;
|
||||||
gridHeight: number;
|
gridHeight: number;
|
||||||
insurance: Insurance;
|
insurance: Insurance;
|
||||||
|
items_buy: IItemBuyData;
|
||||||
|
items_buy_prohibited: IItemBuyData;
|
||||||
location: string;
|
location: string;
|
||||||
loyaltyLevels: LoyaltyLevel[];
|
loyaltyLevels: LoyaltyLevel[];
|
||||||
medic: boolean;
|
medic: boolean;
|
||||||
@ -31,6 +34,10 @@ export interface ITraderBase {
|
|||||||
surname: string;
|
surname: string;
|
||||||
unlockedByDefault: boolean;
|
unlockedByDefault: boolean;
|
||||||
}
|
}
|
||||||
|
export interface IItemBuyData {
|
||||||
|
category: string[];
|
||||||
|
id_list: string[];
|
||||||
|
}
|
||||||
export interface Insurance {
|
export interface Insurance {
|
||||||
availability: boolean;
|
availability: boolean;
|
||||||
excluded_category: string[];
|
excluded_category: string[];
|
||||||
|
5
TypeScript/1LogToConsole/types/models/eft/game/IGetItemPricesResponse.d.ts
vendored
Normal file
5
TypeScript/1LogToConsole/types/models/eft/game/IGetItemPricesResponse.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export interface IGetItemPricesResponse {
|
||||||
|
supplyNextTime: number;
|
||||||
|
prices: Record<string, number>;
|
||||||
|
currencyCourses: Record<string, number>;
|
||||||
|
}
|
@ -1,5 +1,7 @@
|
|||||||
export declare enum Effect {
|
export declare enum Effect {
|
||||||
FRACTURE = "Fracture",
|
FRACTURE = "Fracture",
|
||||||
LIGHT_BLEEDING = "LightBleeding",
|
LIGHT_BLEEDING = "LightBleeding",
|
||||||
HEAVY_BLEEDING = "HeavyBleeding"
|
HEAVY_BLEEDING = "HeavyBleeding",
|
||||||
|
MILD_MUSCLE_PAIN = "MildMusclePain",
|
||||||
|
SEVERE_MUSCLE_PAIN = "SevereMusclePain"
|
||||||
}
|
}
|
||||||
|
4
TypeScript/1LogToConsole/types/models/eft/health/IWorkoutData.d.ts
vendored
Normal file
4
TypeScript/1LogToConsole/types/models/eft/health/IWorkoutData.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IWorkoutData extends Record<string, any> {
|
||||||
|
skills: any;
|
||||||
|
effects: any;
|
||||||
|
}
|
8
TypeScript/1LogToConsole/types/models/eft/hideout/IHandleQTEEventRequestData.d.ts
vendored
Normal file
8
TypeScript/1LogToConsole/types/models/eft/hideout/IHandleQTEEventRequestData.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export interface IHandleQTEEventRequestData {
|
||||||
|
Action: string;
|
||||||
|
/** true if QTE was successful, otherwise false */
|
||||||
|
results: boolean[];
|
||||||
|
/** Id of the QTE object used from db/hideout/qte.json */
|
||||||
|
id: string;
|
||||||
|
timestamp: number;
|
||||||
|
}
|
@ -3,23 +3,55 @@ export interface IHideoutArea {
|
|||||||
type: number;
|
type: number;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
needsFuel: boolean;
|
needsFuel: boolean;
|
||||||
|
requirements: IAreaRequirement[];
|
||||||
takeFromSlotLocked: boolean;
|
takeFromSlotLocked: boolean;
|
||||||
craftGivesExp: boolean;
|
craftGivesExp: boolean;
|
||||||
|
displayLevel: boolean;
|
||||||
|
enableAreaRequirements: boolean;
|
||||||
stages: Record<string, Stage>;
|
stages: Record<string, Stage>;
|
||||||
}
|
}
|
||||||
|
export interface IAreaRequirement {
|
||||||
|
areaType: number;
|
||||||
|
requiredlevel: number;
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
export interface Stage {
|
export interface Stage {
|
||||||
requirements: Requirement[];
|
autoUpgrade: boolean;
|
||||||
bonuses: StageBonus[];
|
bonuses: StageBonus[];
|
||||||
slots: number;
|
|
||||||
constructionTime: number;
|
constructionTime: number;
|
||||||
description: string;
|
description: string;
|
||||||
|
displayInterface: boolean;
|
||||||
|
improvements: IStageImprovement[];
|
||||||
|
requirements: IStageRequirement[];
|
||||||
|
slots: number;
|
||||||
}
|
}
|
||||||
export interface Requirement {
|
export interface IStageImprovement {
|
||||||
|
id: string;
|
||||||
|
bonuses: IStageImprovementBonus[];
|
||||||
|
improvementTime: number;
|
||||||
|
requirements: IStageImprovementRequirement[];
|
||||||
|
}
|
||||||
|
export interface IStageImprovementBonus {
|
||||||
|
passive: boolean;
|
||||||
|
production: boolean;
|
||||||
|
type: string;
|
||||||
|
value: number;
|
||||||
|
visible: boolean;
|
||||||
|
}
|
||||||
|
export interface IStageImprovementRequirement {
|
||||||
|
count: number;
|
||||||
|
isEncoded: boolean;
|
||||||
|
isFunctional: boolean;
|
||||||
|
templateId: string;
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
|
export interface IStageRequirement {
|
||||||
areaType?: number;
|
areaType?: number;
|
||||||
requiredLevel?: number;
|
requiredLevel?: number;
|
||||||
type: string;
|
type: string;
|
||||||
templateId?: string;
|
templateId?: string;
|
||||||
count?: number;
|
count?: number;
|
||||||
|
isEncoded: false;
|
||||||
isFunctional?: boolean;
|
isFunctional?: boolean;
|
||||||
traderId?: string;
|
traderId?: string;
|
||||||
loyaltyLevel?: number;
|
loyaltyLevel?: number;
|
||||||
|
13
TypeScript/1LogToConsole/types/models/eft/hideout/IHideoutImproveAreaRequestData.d.ts
vendored
Normal file
13
TypeScript/1LogToConsole/types/models/eft/hideout/IHideoutImproveAreaRequestData.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
export interface IHideoutImproveAreaRequestData {
|
||||||
|
Action: "HideoutImproveArea";
|
||||||
|
/** Hideout area id from areas.json */
|
||||||
|
id: string;
|
||||||
|
areaType: number;
|
||||||
|
items: HideoutItem[];
|
||||||
|
timestamp: number;
|
||||||
|
}
|
||||||
|
export interface HideoutItem {
|
||||||
|
/** Hideout inventory id that was used by improvement action */
|
||||||
|
id: string;
|
||||||
|
count: number;
|
||||||
|
}
|
@ -3,8 +3,10 @@ export interface IHideoutProduction {
|
|||||||
areaType: number;
|
areaType: number;
|
||||||
requirements: Requirement[];
|
requirements: Requirement[];
|
||||||
productionTime: number;
|
productionTime: number;
|
||||||
boosters?: any;
|
|
||||||
endProduct: string;
|
endProduct: string;
|
||||||
|
isEncoded: boolean;
|
||||||
|
locked: boolean;
|
||||||
|
needFuelForAllProductionTime: boolean;
|
||||||
continuous: boolean;
|
continuous: boolean;
|
||||||
count: number;
|
count: number;
|
||||||
productionLimitCount: number;
|
productionLimitCount: number;
|
||||||
@ -12,6 +14,7 @@ export interface IHideoutProduction {
|
|||||||
export interface Requirement {
|
export interface Requirement {
|
||||||
templateId?: string;
|
templateId?: string;
|
||||||
count?: number;
|
count?: number;
|
||||||
|
isEncoded?: boolean;
|
||||||
isFunctional?: boolean;
|
isFunctional?: boolean;
|
||||||
type: string;
|
type: string;
|
||||||
areaType?: number;
|
areaType?: number;
|
||||||
|
38
TypeScript/1LogToConsole/types/models/eft/hideout/IQteData.d.ts
vendored
Normal file
38
TypeScript/1LogToConsole/types/models/eft/hideout/IQteData.d.ts
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
export interface IQteData {
|
||||||
|
Id: string;
|
||||||
|
Type: string;
|
||||||
|
Area: string;
|
||||||
|
AreaLevel: number;
|
||||||
|
QuickTimeEvents: IQuickTimeEvent[];
|
||||||
|
Requirements: IQteRequirement[];
|
||||||
|
Results: Record<string, IQteResult>;
|
||||||
|
}
|
||||||
|
export interface IQuickTimeEvent {
|
||||||
|
Type: string;
|
||||||
|
Position: number;
|
||||||
|
StartDelay: number;
|
||||||
|
EndDelay: number;
|
||||||
|
Speed: number;
|
||||||
|
SuccessRange: string;
|
||||||
|
Key: string;
|
||||||
|
}
|
||||||
|
export interface IQteRequirement {
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
|
export interface IQteResult {
|
||||||
|
Energy: number;
|
||||||
|
Hydration: number;
|
||||||
|
RewardsRange: IQteEffect[];
|
||||||
|
}
|
||||||
|
export interface IQteEffect {
|
||||||
|
Type: string;
|
||||||
|
SkillId: string;
|
||||||
|
levelMultipliers: ISkillLevelMultiplier[];
|
||||||
|
Time: number;
|
||||||
|
Weight: number;
|
||||||
|
Result: string;
|
||||||
|
}
|
||||||
|
export interface ISkillLevelMultiplier {
|
||||||
|
level: number;
|
||||||
|
multiplier: number;
|
||||||
|
}
|
4
TypeScript/1LogToConsole/types/models/eft/hideout/IRecordShootingRangePoints.d.ts
vendored
Normal file
4
TypeScript/1LogToConsole/types/models/eft/hideout/IRecordShootingRangePoints.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IRecordShootingRangePoints {
|
||||||
|
Action: "RecordShootingRangePoints";
|
||||||
|
points: number;
|
||||||
|
}
|
7
TypeScript/1LogToConsole/types/models/eft/inventory/IAddItemTempObject.d.ts
vendored
Normal file
7
TypeScript/1LogToConsole/types/models/eft/inventory/IAddItemTempObject.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { Item, Location } from "../common/tables/IItem";
|
||||||
|
export interface IAddItemTempObject {
|
||||||
|
itemRef: Item;
|
||||||
|
count: number;
|
||||||
|
isPreset: boolean;
|
||||||
|
location?: Location;
|
||||||
|
}
|
@ -22,6 +22,8 @@ export interface ProfileChange {
|
|||||||
builds: BuildChange[];
|
builds: BuildChange[];
|
||||||
items: ItemChanges;
|
items: ItemChanges;
|
||||||
production: Record<string, Production>;
|
production: Record<string, Production>;
|
||||||
|
/** Hideout area improvement id */
|
||||||
|
improvements: Record<string, Improvement>;
|
||||||
skills: Skills;
|
skills: Skills;
|
||||||
traderRelations: Record<string, TraderRelations>;
|
traderRelations: Record<string, TraderRelations>;
|
||||||
repeatableQuests?: IPmcDataRepeatableQuest[];
|
repeatableQuests?: IPmcDataRepeatableQuest[];
|
||||||
@ -45,6 +47,10 @@ export interface Production {
|
|||||||
RecipeId: string;
|
RecipeId: string;
|
||||||
Products: Product[];
|
Products: Product[];
|
||||||
}
|
}
|
||||||
|
export interface Improvement {
|
||||||
|
completed: boolean;
|
||||||
|
improveCompleteTimestamp: number;
|
||||||
|
}
|
||||||
export interface Product {
|
export interface Product {
|
||||||
_id: string;
|
_id: string;
|
||||||
_tpl?: string;
|
_tpl?: string;
|
||||||
|
30
TypeScript/1LogToConsole/types/models/eft/match/IGetRaidConfigurationRequestData.d.ts
vendored
Normal file
30
TypeScript/1LogToConsole/types/models/eft/match/IGetRaidConfigurationRequestData.d.ts
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
export interface IGetRaidConfigurationRequestData {
|
||||||
|
timeVariant: string;
|
||||||
|
raidMode: string;
|
||||||
|
metabolismDisabled: boolean;
|
||||||
|
playersSpawnPlace: string;
|
||||||
|
timeAndWeatherSettings: TimeAndWeatherSettings;
|
||||||
|
botSettings: BotSettings;
|
||||||
|
wavesSettings: WavesSettings;
|
||||||
|
location: string;
|
||||||
|
}
|
||||||
|
export interface TimeAndWeatherSettings {
|
||||||
|
isRandomTime: boolean;
|
||||||
|
isRandomWeather: boolean;
|
||||||
|
cloudinessType: string;
|
||||||
|
rainType: string;
|
||||||
|
windType: string;
|
||||||
|
fogType: string;
|
||||||
|
timeFlowType: string;
|
||||||
|
hourOfDay: number;
|
||||||
|
}
|
||||||
|
export interface BotSettings {
|
||||||
|
isScavWars: boolean;
|
||||||
|
botAmount: string;
|
||||||
|
}
|
||||||
|
export interface WavesSettings {
|
||||||
|
botAmount: string;
|
||||||
|
botDifficulty: string;
|
||||||
|
isBosses: boolean;
|
||||||
|
isTaggedAndCursed: boolean;
|
||||||
|
}
|
@ -1,30 +0,0 @@
|
|||||||
import { BotAmount } from "../../enums/BotAmount";
|
|
||||||
import { BotDifficulty } from "../../enums/BotDifficulty";
|
|
||||||
export interface IStartOfflineRaidRequestData {
|
|
||||||
locationName: string;
|
|
||||||
/** Current time, not in-game time */
|
|
||||||
startTime: number;
|
|
||||||
/** CURR = am, past = pm */
|
|
||||||
dateTime: "CURR" | "PAST";
|
|
||||||
gameSettings: GameSettings;
|
|
||||||
}
|
|
||||||
export interface GameSettings {
|
|
||||||
timeAndWeatherSettings: TimeAndWeatherSettings;
|
|
||||||
botsSettings: BotsSettings;
|
|
||||||
wavesSettings: WavesSettings;
|
|
||||||
}
|
|
||||||
export interface TimeAndWeatherSettings {
|
|
||||||
isRandomTime: boolean;
|
|
||||||
isRandomWeather: boolean;
|
|
||||||
}
|
|
||||||
export interface BotsSettings {
|
|
||||||
isEnabled: boolean;
|
|
||||||
isScavWars: boolean;
|
|
||||||
botAmount: BotAmount;
|
|
||||||
}
|
|
||||||
export interface WavesSettings {
|
|
||||||
botDifficulty: BotDifficulty;
|
|
||||||
isBosses: boolean;
|
|
||||||
isTaggedAndCursed: boolean;
|
|
||||||
wavesBotAmount: BotAmount;
|
|
||||||
}
|
|
@ -3,6 +3,7 @@ export interface IProcessSellTradeRequestData extends IProcessBaseTradeRequestDa
|
|||||||
Action: "sell_to_trader";
|
Action: "sell_to_trader";
|
||||||
type: string;
|
type: string;
|
||||||
tid: string;
|
tid: string;
|
||||||
|
price: number;
|
||||||
items: Item[];
|
items: Item[];
|
||||||
}
|
}
|
||||||
export interface Item {
|
export interface Item {
|
||||||
|
@ -8,5 +8,6 @@ export declare enum ELocationName {
|
|||||||
LIGHTHOUSE = "Lighthouse",
|
LIGHTHOUSE = "Lighthouse",
|
||||||
LABORATORY = "laboratory",
|
LABORATORY = "laboratory",
|
||||||
RESERVE = "RezervBase",
|
RESERVE = "RezervBase",
|
||||||
|
STREETS = "TarkovStreets",
|
||||||
ANY = "any"
|
ANY = "any"
|
||||||
}
|
}
|
||||||
|
@ -21,5 +21,7 @@ export declare enum HideoutAreas {
|
|||||||
SOLAR_POWER = 18,
|
SOLAR_POWER = 18,
|
||||||
BOOZE_GENERATOR = 19,
|
BOOZE_GENERATOR = 19,
|
||||||
BITCOIN_FARM = 20,
|
BITCOIN_FARM = 20,
|
||||||
CHRISTMAS_TREE = 21
|
CHRISTMAS_TREE = 21,
|
||||||
|
EMERGENCY_WALL = 22,
|
||||||
|
GYM = 23
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,7 @@ export declare enum HideoutEventActions {
|
|||||||
HIDEOUT_SINGLE_PRODUCTION_START = "HideoutSingleProductionStart",
|
HIDEOUT_SINGLE_PRODUCTION_START = "HideoutSingleProductionStart",
|
||||||
HIDEOUT_SCAV_CASE_PRODUCTION_START = "HideoutScavCaseProductionStart",
|
HIDEOUT_SCAV_CASE_PRODUCTION_START = "HideoutScavCaseProductionStart",
|
||||||
HIDEOUT_CONTINUOUS_PRODUCTION_START = "HideoutContinuousProductionStart",
|
HIDEOUT_CONTINUOUS_PRODUCTION_START = "HideoutContinuousProductionStart",
|
||||||
HIDEOUT_TAKE_PRODUCTION = "HideoutTakeProduction"
|
HIDEOUT_TAKE_PRODUCTION = "HideoutTakeProduction",
|
||||||
|
HIDEOUT_RECORD_SHOOTING_RANGE_POINTS = "RecordShootingRangePoints",
|
||||||
|
HIDEOUT_IMPROVE_AREA = "HideoutImproveArea"
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,6 @@ export declare enum ItemEventActions {
|
|||||||
CREATE_MAP_MARKER = "CreateMapMarker",
|
CREATE_MAP_MARKER = "CreateMapMarker",
|
||||||
DELETE_MAP_MARKER = "DeleteMapMarker",
|
DELETE_MAP_MARKER = "DeleteMapMarker",
|
||||||
EDIT_MAP_MARKER = "EditMapMarker",
|
EDIT_MAP_MARKER = "EditMapMarker",
|
||||||
OPEN_RANDOM_LOOT_CONTAINER = "OpenRandomLootContainer"
|
OPEN_RANDOM_LOOT_CONTAINER = "OpenRandomLootContainer",
|
||||||
|
HIDEOUT_QTE_EVENT = "HideoutQuickTimeEvent"
|
||||||
}
|
}
|
||||||
|
@ -6,5 +6,6 @@ export declare enum Traders {
|
|||||||
PEACEKEEPER = "5935c25fb3acc3127c3d8cd9",
|
PEACEKEEPER = "5935c25fb3acc3127c3d8cd9",
|
||||||
MECHANIC = "5a7c2eca46aef81a7ca2145d",
|
MECHANIC = "5a7c2eca46aef81a7ca2145d",
|
||||||
RAGMAN = "5ac3b934156ae10c4430e83c",
|
RAGMAN = "5ac3b934156ae10c4430e83c",
|
||||||
JAEGER = "5c0647fdd443bc2504c2d371"
|
JAEGER = "5c0647fdd443bc2504c2d371",
|
||||||
|
LIGHTHOUSEKEEPER = "638f541a29ffd1183d187f57"
|
||||||
}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
import { IStartOfflineRaidRequestData } from "../../eft/match/IStartOffineRaidRequestData";
|
|
||||||
import { IEndOfflineRaidRequestData } from "../../eft/match/IEndOfflineRaidRequestData";
|
|
||||||
import { INullResponseData } from "../../eft/httpResponse/INullResponseData";
|
|
||||||
import { IGetBodyResponseData } from "../../eft/httpResponse/IGetBodyResponseData";
|
|
||||||
import { IPmcData } from "../../eft/common/IPmcData";
|
|
||||||
export interface IMatchCallbacks {
|
|
||||||
updatePing(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
exitMatch(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
exitToMenu(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
startGroupSearch(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
stopGroupSearch(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
sendGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
acceptGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
cancelGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
putMetrics(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
getProfile(url: string, info: any, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
|
||||||
serverAvailable(url: string, info: any, sessionID: string): IGetBodyResponseData<any> | IGetBodyResponseData<true>;
|
|
||||||
joinMatch(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
|
||||||
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
|
||||||
getGroupStatus(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
|
||||||
createGroup(url: string, info: any, sessionID: string): IGetBodyResponseData<any>;
|
|
||||||
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
|
||||||
startOfflineRaid(url: string, info: IStartOfflineRaidRequestData, sessionID: string): INullResponseData;
|
|
||||||
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
|
||||||
}
|
|
@ -6,6 +6,8 @@ export interface IAirdropConfig extends IBaseConfig {
|
|||||||
planeMinFlyHeight: number;
|
planeMinFlyHeight: number;
|
||||||
planeMaxFlyHeight: number;
|
planeMaxFlyHeight: number;
|
||||||
planeVolume: number;
|
planeVolume: number;
|
||||||
|
planeSpeed: number;
|
||||||
|
crateFallSpeed: number;
|
||||||
airdropMinStartTimeSeconds: number;
|
airdropMinStartTimeSeconds: number;
|
||||||
airdropMaxStartTimeSeconds: number;
|
airdropMaxStartTimeSeconds: number;
|
||||||
loot: AirdropLoot;
|
loot: AirdropLoot;
|
||||||
@ -17,6 +19,7 @@ export interface AirdropChancePercent {
|
|||||||
shoreline: number;
|
shoreline: number;
|
||||||
interchange: number;
|
interchange: number;
|
||||||
reserve: number;
|
reserve: number;
|
||||||
|
tarkovStreets: number;
|
||||||
}
|
}
|
||||||
export interface AirdropLoot {
|
export interface AirdropLoot {
|
||||||
presetCount: MinMax;
|
presetCount: MinMax;
|
||||||
|
@ -8,4 +8,5 @@ export interface IHideoutConfig extends IBaseConfig {
|
|||||||
airFilterUnitFlowRate: number;
|
airFilterUnitFlowRate: number;
|
||||||
/** SEE HIDEOUTHELPER BEFORE CHANGING CONFIG */
|
/** SEE HIDEOUTHELPER BEFORE CHANGING CONFIG */
|
||||||
gpuBoostRate: number;
|
gpuBoostRate: number;
|
||||||
|
hideoutWallAppearTimeSeconds: number;
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ export interface ISeasonalEventConfig extends IBaseConfig {
|
|||||||
/** event / botType / equipSlot / itemid */
|
/** event / botType / equipSlot / itemid */
|
||||||
eventGear: Record<string, Record<string, Record<string, Record<string, number>>>>;
|
eventGear: Record<string, Record<string, Record<string, Record<string, number>>>>;
|
||||||
events: ISeasonalEvent[];
|
events: ISeasonalEvent[];
|
||||||
|
gifterSettings: GifterSetting[];
|
||||||
}
|
}
|
||||||
export interface ISeasonalEvent {
|
export interface ISeasonalEvent {
|
||||||
name: string;
|
name: string;
|
||||||
@ -13,3 +14,8 @@ export interface ISeasonalEvent {
|
|||||||
endDay: number;
|
endDay: number;
|
||||||
endMonth: number;
|
endMonth: number;
|
||||||
}
|
}
|
||||||
|
export interface GifterSetting {
|
||||||
|
map: string;
|
||||||
|
zones: string;
|
||||||
|
spawnChance: number;
|
||||||
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { IQteData } from "../../../models/eft/hideout/IQteData";
|
||||||
import { IGlobals } from "../../eft/common/IGlobals";
|
import { IGlobals } from "../../eft/common/IGlobals";
|
||||||
import { IBotBase } from "../../eft/common/tables/IBotBase";
|
import { IBotBase } from "../../eft/common/tables/IBotBase";
|
||||||
import { IBotCore } from "../../eft/common/tables/IBotCore";
|
import { IBotCore } from "../../eft/common/tables/IBotCore";
|
||||||
@ -30,6 +31,7 @@ export interface IDatabaseTables {
|
|||||||
production: IHideoutProduction[];
|
production: IHideoutProduction[];
|
||||||
scavcase: IHideoutScavCase[];
|
scavcase: IHideoutScavCase[];
|
||||||
settings: IHideoutSettingsBase;
|
settings: IHideoutSettingsBase;
|
||||||
|
qte: IQteData[];
|
||||||
};
|
};
|
||||||
locales?: ILocaleBase;
|
locales?: ILocaleBase;
|
||||||
locations?: ILocations;
|
locations?: ILocations;
|
||||||
@ -38,7 +40,7 @@ export interface IDatabaseTables {
|
|||||||
templates?: {
|
templates?: {
|
||||||
character: string[];
|
character: string[];
|
||||||
items: Record<string, ITemplateItem>;
|
items: Record<string, ITemplateItem>;
|
||||||
quests: IQuest[];
|
quests: Record<string, IQuest>;
|
||||||
repeatableQuests: IRepeatableQuestDatabase;
|
repeatableQuests: IRepeatableQuestDatabase;
|
||||||
/** DEPRECATED - Items file found in the client, massivly out of date compared to templates.items, try not to use this, remove ASAP*/
|
/** DEPRECATED - Items file found in the client, massivly out of date compared to templates.items, try not to use this, remove ASAP*/
|
||||||
clientItems: Record<string, ITemplateItem>;
|
clientItems: Record<string, ITemplateItem>;
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
|
import { HideoutCallbacks } from "../../callbacks/HideoutCallbacks";
|
||||||
import { InventoryCallbacks } from "../../callbacks/InventoryCallbacks";
|
import { InventoryCallbacks } from "../../callbacks/InventoryCallbacks";
|
||||||
import { HandledRoute, ItemEventRouterDefinition } from "../../di/Router";
|
import { HandledRoute, ItemEventRouterDefinition } from "../../di/Router";
|
||||||
import { IPmcData } from "../../models/eft/common/IPmcData";
|
import { IPmcData } from "../../models/eft/common/IPmcData";
|
||||||
import { IItemEventRouterResponse } from "../../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class InventoryItemEventRouter extends ItemEventRouterDefinition {
|
export declare class InventoryItemEventRouter extends ItemEventRouterDefinition {
|
||||||
protected inventoryCallbacks: InventoryCallbacks;
|
protected inventoryCallbacks: InventoryCallbacks;
|
||||||
constructor(inventoryCallbacks: InventoryCallbacks);
|
protected hideoutCallbacks: HideoutCallbacks;
|
||||||
|
constructor(inventoryCallbacks: InventoryCallbacks, hideoutCallbacks: HideoutCallbacks);
|
||||||
getHandledRoutes(): HandledRoute[];
|
getHandledRoutes(): HandledRoute[];
|
||||||
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse;
|
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import { IAkiProfile } from "../models/eft/profile/IAkiProfile";
|
|||||||
import { HideoutAreas } from "../models/enums/HideoutAreas";
|
import { HideoutAreas } from "../models/enums/HideoutAreas";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
import { LocalisationService } from "./LocalisationService";
|
import { LocalisationService } from "./LocalisationService";
|
||||||
export declare class ProfileFixerService {
|
export declare class ProfileFixerService {
|
||||||
@ -14,8 +15,9 @@ export declare class ProfileFixerService {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected hideoutHelper: HideoutHelper;
|
protected hideoutHelper: HideoutHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
constructor(logger: ILogger, watermark: Watermark, hideoutHelper: HideoutHelper, localisationService: LocalisationService, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, watermark: Watermark, hideoutHelper: HideoutHelper, localisationService: LocalisationService, timeUtil: TimeUtil, databaseServer: DatabaseServer);
|
||||||
/**
|
/**
|
||||||
* Find issues in the pmc profile data that may cause issues and fix them
|
* Find issues in the pmc profile data that may cause issues and fix them
|
||||||
* @param pmcProfile profile to check and fix
|
* @param pmcProfile profile to check and fix
|
||||||
@ -32,6 +34,7 @@ export declare class ProfileFixerService {
|
|||||||
* @param pmcProfile profile to remove old counters from
|
* @param pmcProfile profile to remove old counters from
|
||||||
*/
|
*/
|
||||||
removeDanglingConditionCounters(pmcProfile: IPmcData): void;
|
removeDanglingConditionCounters(pmcProfile: IPmcData): void;
|
||||||
|
addLighthouseKeeperIfMissing(pmcProfile: IPmcData): void;
|
||||||
protected removeDanglingBackendCounters(pmcProfile: IPmcData): void;
|
protected removeDanglingBackendCounters(pmcProfile: IPmcData): void;
|
||||||
protected getActiveRepeatableQuests(repeatableQuests: IPmcDataRepeatableQuest[]): IRepeatableQuest[];
|
protected getActiveRepeatableQuests(repeatableQuests: IPmcDataRepeatableQuest[]): IRepeatableQuest[];
|
||||||
protected fixNullTraderSalesSums(pmcProfile: IPmcData): void;
|
protected fixNullTraderSalesSums(pmcProfile: IPmcData): void;
|
||||||
@ -85,4 +88,14 @@ export declare class ProfileFixerService {
|
|||||||
* @param pmcProfile Profile to check inventory of
|
* @param pmcProfile Profile to check inventory of
|
||||||
*/
|
*/
|
||||||
checkForOrphanedModdedItems(pmcProfile: IPmcData): void;
|
checkForOrphanedModdedItems(pmcProfile: IPmcData): void;
|
||||||
|
/**
|
||||||
|
* Add `Improvements` object to hideout if missing - added in eft 13.0.21469
|
||||||
|
* @param pmcProfile profile to update
|
||||||
|
*/
|
||||||
|
addMissingUpgradesPropertyToHideout(pmcProfile: IPmcData): void;
|
||||||
|
/**
|
||||||
|
* Iterate over associated profile template and check all hideout areas exist, add if not
|
||||||
|
* @param fullProfile Profile to update
|
||||||
|
*/
|
||||||
|
addMissingHideoutAreasToProfile(fullProfile: IAkiProfile): void;
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
getAllStaticPrices(): Record<string, number>;
|
||||||
/**
|
/**
|
||||||
* Get the percentage difference between two values
|
* Get the percentage difference between two values
|
||||||
* @param a numerical value a
|
* @param a numerical value a
|
||||||
|
@ -59,6 +59,7 @@ export declare class SeasonalEventService {
|
|||||||
* @param eventName Name of the event to enable. e.g. Christmas
|
* @param eventName Name of the event to enable. e.g. Christmas
|
||||||
*/
|
*/
|
||||||
protected updateGlobalEvents(globalConfig: Config, eventName: string): void;
|
protected updateGlobalEvents(globalConfig: Config, eventName: string): void;
|
||||||
|
protected addLootItemsToGifterDropItemsList(): void;
|
||||||
/**
|
/**
|
||||||
* Read in data from seasonalEvents.json and add found equipment items to bots
|
* Read in data from seasonalEvents.json and add found equipment items to bots
|
||||||
* @param eventName Name of the event to read equipment in from config
|
* @param eventName Name of the event to read equipment in from config
|
||||||
@ -69,4 +70,8 @@ export declare class SeasonalEventService {
|
|||||||
* Set Khorovod(dancing tree) chance to 100% on all maps that support it
|
* Set Khorovod(dancing tree) chance to 100% on all maps that support it
|
||||||
*/
|
*/
|
||||||
protected enableDancingTree(): void;
|
protected enableDancingTree(): void;
|
||||||
|
/**
|
||||||
|
* Add santa to maps
|
||||||
|
*/
|
||||||
|
protected addGifterBotToMaps(): void;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user