From 5d2f5c9b28987c34e868c301f8914d41c163768e Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 24 Dec 2024 18:57:23 +0000 Subject: [PATCH] Updated types --- .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ .../types/services/InsuranceService.d.ts | 14 -------------- .../types/services/ProfileFixerService.d.ts | 6 ++++++ .../types/services/SeasonalEventService.d.ts | 8 ++++++++ 84 files changed, 392 insertions(+), 392 deletions(-) diff --git a/TypeScript/10ScopesAndTypes/types/services/InsuranceService.d.ts b/TypeScript/10ScopesAndTypes/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/10ScopesAndTypes/types/services/InsuranceService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/10ScopesAndTypes/types/services/ProfileFixerService.d.ts b/TypeScript/10ScopesAndTypes/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/10ScopesAndTypes/types/services/ProfileFixerService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts b/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/11BundleLoadingSample/types/services/InsuranceService.d.ts b/TypeScript/11BundleLoadingSample/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/11BundleLoadingSample/types/services/InsuranceService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/11BundleLoadingSample/types/services/ProfileFixerService.d.ts b/TypeScript/11BundleLoadingSample/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/11BundleLoadingSample/types/services/ProfileFixerService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts b/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/12ClassExtensionOverride/types/services/InsuranceService.d.ts b/TypeScript/12ClassExtensionOverride/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/12ClassExtensionOverride/types/services/InsuranceService.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/12ClassExtensionOverride/types/services/ProfileFixerService.d.ts b/TypeScript/12ClassExtensionOverride/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/12ClassExtensionOverride/types/services/ProfileFixerService.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts b/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/13.1AddTraderWithAssortJSON/types/services/InsuranceService.d.ts b/TypeScript/13.1AddTraderWithAssortJSON/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/13.1AddTraderWithAssortJSON/types/services/InsuranceService.d.ts +++ b/TypeScript/13.1AddTraderWithAssortJSON/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/13.1AddTraderWithAssortJSON/types/services/ProfileFixerService.d.ts b/TypeScript/13.1AddTraderWithAssortJSON/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/13.1AddTraderWithAssortJSON/types/services/ProfileFixerService.d.ts +++ b/TypeScript/13.1AddTraderWithAssortJSON/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/13.1AddTraderWithAssortJSON/types/services/SeasonalEventService.d.ts b/TypeScript/13.1AddTraderWithAssortJSON/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/13.1AddTraderWithAssortJSON/types/services/SeasonalEventService.d.ts +++ b/TypeScript/13.1AddTraderWithAssortJSON/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/13AddTrader/types/services/InsuranceService.d.ts b/TypeScript/13AddTrader/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/13AddTrader/types/services/InsuranceService.d.ts +++ b/TypeScript/13AddTrader/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/13AddTrader/types/services/ProfileFixerService.d.ts b/TypeScript/13AddTrader/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/13AddTrader/types/services/ProfileFixerService.d.ts +++ b/TypeScript/13AddTrader/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts b/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts +++ b/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/14AfterDBLoadHook/types/services/InsuranceService.d.ts b/TypeScript/14AfterDBLoadHook/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/14AfterDBLoadHook/types/services/InsuranceService.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/14AfterDBLoadHook/types/services/ProfileFixerService.d.ts b/TypeScript/14AfterDBLoadHook/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/14AfterDBLoadHook/types/services/ProfileFixerService.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts b/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/15HttpListenerExample/types/services/InsuranceService.d.ts b/TypeScript/15HttpListenerExample/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/15HttpListenerExample/types/services/InsuranceService.d.ts +++ b/TypeScript/15HttpListenerExample/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/15HttpListenerExample/types/services/ProfileFixerService.d.ts b/TypeScript/15HttpListenerExample/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/15HttpListenerExample/types/services/ProfileFixerService.d.ts +++ b/TypeScript/15HttpListenerExample/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts b/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts +++ b/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/16ImporterUtil/types/services/InsuranceService.d.ts b/TypeScript/16ImporterUtil/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/16ImporterUtil/types/services/InsuranceService.d.ts +++ b/TypeScript/16ImporterUtil/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/16ImporterUtil/types/services/ProfileFixerService.d.ts b/TypeScript/16ImporterUtil/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/16ImporterUtil/types/services/ProfileFixerService.d.ts +++ b/TypeScript/16ImporterUtil/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts b/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts +++ b/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/17AsyncImporterWithDependency1/types/services/InsuranceService.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/services/InsuranceService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/17AsyncImporterWithDependency1/types/services/ProfileFixerService.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/services/ProfileFixerService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/17AsyncImporterWithDependency2/types/services/InsuranceService.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/services/InsuranceService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/17AsyncImporterWithDependency2/types/services/ProfileFixerService.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/services/ProfileFixerService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/18.1CustomItemServiceLootBox/types/services/InsuranceService.d.ts b/TypeScript/18.1CustomItemServiceLootBox/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/18.1CustomItemServiceLootBox/types/services/InsuranceService.d.ts +++ b/TypeScript/18.1CustomItemServiceLootBox/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/18.1CustomItemServiceLootBox/types/services/ProfileFixerService.d.ts b/TypeScript/18.1CustomItemServiceLootBox/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/18.1CustomItemServiceLootBox/types/services/ProfileFixerService.d.ts +++ b/TypeScript/18.1CustomItemServiceLootBox/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/18.1CustomItemServiceLootBox/types/services/SeasonalEventService.d.ts b/TypeScript/18.1CustomItemServiceLootBox/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/18.1CustomItemServiceLootBox/types/services/SeasonalEventService.d.ts +++ b/TypeScript/18.1CustomItemServiceLootBox/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/18CustomItemService/types/services/InsuranceService.d.ts b/TypeScript/18CustomItemService/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/18CustomItemService/types/services/InsuranceService.d.ts +++ b/TypeScript/18CustomItemService/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/18CustomItemService/types/services/ProfileFixerService.d.ts b/TypeScript/18CustomItemService/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/18CustomItemService/types/services/ProfileFixerService.d.ts +++ b/TypeScript/18CustomItemService/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts b/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts +++ b/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/19UseExternalLibraries/types/services/InsuranceService.d.ts b/TypeScript/19UseExternalLibraries/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/19UseExternalLibraries/types/services/InsuranceService.d.ts +++ b/TypeScript/19UseExternalLibraries/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/19UseExternalLibraries/types/services/ProfileFixerService.d.ts b/TypeScript/19UseExternalLibraries/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/19UseExternalLibraries/types/services/ProfileFixerService.d.ts +++ b/TypeScript/19UseExternalLibraries/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts b/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts +++ b/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/1LogToConsole/types/services/InsuranceService.d.ts b/TypeScript/1LogToConsole/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/1LogToConsole/types/services/InsuranceService.d.ts +++ b/TypeScript/1LogToConsole/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/1LogToConsole/types/services/ProfileFixerService.d.ts b/TypeScript/1LogToConsole/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/1LogToConsole/types/services/ProfileFixerService.d.ts +++ b/TypeScript/1LogToConsole/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts b/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts +++ b/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/20CustomChatBot/types/services/InsuranceService.d.ts b/TypeScript/20CustomChatBot/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/20CustomChatBot/types/services/InsuranceService.d.ts +++ b/TypeScript/20CustomChatBot/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/20CustomChatBot/types/services/ProfileFixerService.d.ts b/TypeScript/20CustomChatBot/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/20CustomChatBot/types/services/ProfileFixerService.d.ts +++ b/TypeScript/20CustomChatBot/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/20CustomChatBot/types/services/SeasonalEventService.d.ts b/TypeScript/20CustomChatBot/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/20CustomChatBot/types/services/SeasonalEventService.d.ts +++ b/TypeScript/20CustomChatBot/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/21CustomCommandoCommand/types/services/InsuranceService.d.ts b/TypeScript/21CustomCommandoCommand/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/21CustomCommandoCommand/types/services/InsuranceService.d.ts +++ b/TypeScript/21CustomCommandoCommand/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/21CustomCommandoCommand/types/services/ProfileFixerService.d.ts b/TypeScript/21CustomCommandoCommand/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/21CustomCommandoCommand/types/services/ProfileFixerService.d.ts +++ b/TypeScript/21CustomCommandoCommand/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/21CustomCommandoCommand/types/services/SeasonalEventService.d.ts b/TypeScript/21CustomCommandoCommand/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/21CustomCommandoCommand/types/services/SeasonalEventService.d.ts +++ b/TypeScript/21CustomCommandoCommand/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/22CustomSptCommand/types/services/InsuranceService.d.ts b/TypeScript/22CustomSptCommand/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/22CustomSptCommand/types/services/InsuranceService.d.ts +++ b/TypeScript/22CustomSptCommand/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/22CustomSptCommand/types/services/ProfileFixerService.d.ts b/TypeScript/22CustomSptCommand/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/22CustomSptCommand/types/services/ProfileFixerService.d.ts +++ b/TypeScript/22CustomSptCommand/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/22CustomSptCommand/types/services/SeasonalEventService.d.ts b/TypeScript/22CustomSptCommand/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/22CustomSptCommand/types/services/SeasonalEventService.d.ts +++ b/TypeScript/22CustomSptCommand/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/23CustomAbstractChatBot/types/services/InsuranceService.d.ts b/TypeScript/23CustomAbstractChatBot/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/23CustomAbstractChatBot/types/services/InsuranceService.d.ts +++ b/TypeScript/23CustomAbstractChatBot/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/23CustomAbstractChatBot/types/services/ProfileFixerService.d.ts b/TypeScript/23CustomAbstractChatBot/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/23CustomAbstractChatBot/types/services/ProfileFixerService.d.ts +++ b/TypeScript/23CustomAbstractChatBot/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/23CustomAbstractChatBot/types/services/SeasonalEventService.d.ts b/TypeScript/23CustomAbstractChatBot/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/23CustomAbstractChatBot/types/services/SeasonalEventService.d.ts +++ b/TypeScript/23CustomAbstractChatBot/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/24WebSocket/types/services/InsuranceService.d.ts b/TypeScript/24WebSocket/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/24WebSocket/types/services/InsuranceService.d.ts +++ b/TypeScript/24WebSocket/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/24WebSocket/types/services/ProfileFixerService.d.ts b/TypeScript/24WebSocket/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/24WebSocket/types/services/ProfileFixerService.d.ts +++ b/TypeScript/24WebSocket/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/24WebSocket/types/services/SeasonalEventService.d.ts b/TypeScript/24WebSocket/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/24WebSocket/types/services/SeasonalEventService.d.ts +++ b/TypeScript/24WebSocket/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/2EditDatabase/types/services/InsuranceService.d.ts b/TypeScript/2EditDatabase/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/2EditDatabase/types/services/InsuranceService.d.ts +++ b/TypeScript/2EditDatabase/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/2EditDatabase/types/services/ProfileFixerService.d.ts b/TypeScript/2EditDatabase/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/2EditDatabase/types/services/ProfileFixerService.d.ts +++ b/TypeScript/2EditDatabase/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts b/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts +++ b/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/3GetSptConfigFile/types/services/InsuranceService.d.ts b/TypeScript/3GetSptConfigFile/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/3GetSptConfigFile/types/services/InsuranceService.d.ts +++ b/TypeScript/3GetSptConfigFile/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/3GetSptConfigFile/types/services/ProfileFixerService.d.ts b/TypeScript/3GetSptConfigFile/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/3GetSptConfigFile/types/services/ProfileFixerService.d.ts +++ b/TypeScript/3GetSptConfigFile/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/InsuranceService.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/InsuranceService.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/ProfileFixerService.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/ProfileFixerService.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/4UseACustomConfigFile/types/services/InsuranceService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/InsuranceService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/4UseACustomConfigFile/types/services/ProfileFixerService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/ProfileFixerService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/5ReplaceMethod/types/services/InsuranceService.d.ts b/TypeScript/5ReplaceMethod/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/5ReplaceMethod/types/services/InsuranceService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/5ReplaceMethod/types/services/ProfileFixerService.d.ts b/TypeScript/5ReplaceMethod/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/5ReplaceMethod/types/services/ProfileFixerService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts b/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/6ReferenceAnotherClass/types/services/InsuranceService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/InsuranceService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/6ReferenceAnotherClass/types/services/ProfileFixerService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/ProfileFixerService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/7OnLoadHook/types/services/InsuranceService.d.ts b/TypeScript/7OnLoadHook/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/7OnLoadHook/types/services/InsuranceService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/7OnLoadHook/types/services/ProfileFixerService.d.ts b/TypeScript/7OnLoadHook/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/7OnLoadHook/types/services/ProfileFixerService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts b/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/8OnUpdateHook/types/services/InsuranceService.d.ts b/TypeScript/8OnUpdateHook/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/8OnUpdateHook/types/services/InsuranceService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/8OnUpdateHook/types/services/ProfileFixerService.d.ts b/TypeScript/8OnUpdateHook/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/8OnUpdateHook/types/services/ProfileFixerService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts b/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array diff --git a/TypeScript/9RouterHooks/types/services/InsuranceService.d.ts b/TypeScript/9RouterHooks/types/services/InsuranceService.d.ts index ac9cff5..e52fa59 100644 --- a/TypeScript/9RouterHooks/types/services/InsuranceService.d.ts +++ b/TypeScript/9RouterHooks/types/services/InsuranceService.d.ts @@ -62,14 +62,6 @@ export declare class InsuranceService { * @returns Timestamp to return items to player in seconds */ protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; - /** - * Take the insurance item packages within a profile session and ensure that each of the items in that package are - * not orphaned from their parent ID. - * - * @param sessionID The session ID to update insurance equipment packages in. - * @returns void - */ - protected adoptOrphanedInsEquipment(sessionID: string): void; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number; /** * Store lost gear post-raid inside profile, ready for later code to pick it up and mail it @@ -127,10 +119,4 @@ export declare class InsuranceService { * @returns price in roubles */ getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; - /** - * Returns the ID that should be used for a root-level Item's parentId property value within in the context of insurance. - * @param sessionID Players id - * @returns The root item Id. - */ - getRootItemParentID(sessionID: string): string; } diff --git a/TypeScript/9RouterHooks/types/services/ProfileFixerService.d.ts b/TypeScript/9RouterHooks/types/services/ProfileFixerService.d.ts index 4a3a5ff..cbbe1d0 100644 --- a/TypeScript/9RouterHooks/types/services/ProfileFixerService.d.ts +++ b/TypeScript/9RouterHooks/types/services/ProfileFixerService.d.ts @@ -47,6 +47,12 @@ export declare class ProfileFixerService { * @param pmcProfile profile to check and fix */ checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; + /** + * Resolve any dialogue attachments that were accidentally created using the player's equipment ID as + * the stash root object ID + * @param fullProfile + */ + checkForAndFixDialogueAttachments(fullProfile: ISptProfile): void; /** * Find issues in the scav profile data that may cause issues * @param scavProfile profile to check and fix diff --git a/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts b/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts index d11c100..b0a0942 100644 --- a/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts +++ b/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts @@ -37,6 +37,14 @@ export declare class SeasonalEventService { constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; + protected getActiveEvents(): ISeasonalEvent[]; + /** + * Sets the currently active events + * @param activeEvents Array of active events + * @param halloweenEventActive Halloween event + * @param christmasEventActive Christmas event + */ + setActiveEvents(activeEvents: ISeasonalEvent[], halloweenEventActive: boolean, christmasEventActive: boolean): void; /** * Get an array of christmas items found in bots inventories as loot * @returns array