3.10.4-DEV #44

Merged
chomp merged 8 commits from 3.10.4-DEV into master 2024-12-24 15:17:45 -05:00
84 changed files with 392 additions and 392 deletions
Showing only changes of commit 5d2f5c9b28 - Show all commits

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array

View File

@ -62,14 +62,6 @@ export declare class InsuranceService {
* @returns Timestamp to return items to player in seconds * @returns Timestamp to return items to player in seconds
*/ */
protected getInsuranceReturnTimestamp(pmcData: IPmcData, trader: ITraderBase): number; 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; protected getMaxInsuranceStorageTime(traderBase: ITraderBase): number;
/** /**
* Store lost gear post-raid inside profile, ready for later code to pick it up and mail it * 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 * @returns price in roubles
*/ */
getRoublePriceToInsureItemWithTrader(pmcData: IPmcData, inventoryItem: IItem, traderId: string): number; 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;
} }

View File

@ -47,6 +47,12 @@ export declare class ProfileFixerService {
* @param pmcProfile profile to check and fix * @param pmcProfile profile to check and fix
*/ */
checkForAndFixPmcProfileIssues(pmcProfile: IPmcData): void; 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 * Find issues in the scav profile data that may cause issues
* @param scavProfile profile to check and fix * @param scavProfile profile to check and fix

View File

@ -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); constructor(logger: ILogger, databaseService: DatabaseService, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
protected get christmasEventItems(): string[]; protected get christmasEventItems(): string[];
protected get halloweenEventItems(): 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 * Get an array of christmas items found in bots inventories as loot
* @returns array * @returns array