Updated types
This commit is contained in:
parent
9bbc7d7a25
commit
67f4aea3f2
@ -6,7 +6,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -19,7 +19,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
/**
|
/**
|
||||||
@ -34,7 +34,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
private static acceptableConfidence;
|
private static acceptableConfidence;
|
||||||
private static excludedPresetItems;
|
private static excludedPresetItems;
|
||||||
protected savedCommand: Map<string, SavedCommand>;
|
protected savedCommand: Map<string, SavedCommand>;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService, cloner: ICloner);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseService: DatabaseService, itemFilterService: ItemFilterService, cloner: ICloner);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
||||||
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected lookup: Record<string, string[]>;
|
protected lookup: Record<string, string[]>;
|
||||||
protected defaultEquipmentPresets: Record<string, IPreset>;
|
protected defaultEquipmentPresets: Record<string, IPreset>;
|
||||||
protected defaultWeaponPresets: Record<string, IPreset>;
|
protected defaultWeaponPresets: Record<string, IPreset>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper, cloner: ICloner);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper, cloner: ICloner);
|
||||||
hydratePresetStore(input: Record<string, string[]>): void;
|
hydratePresetStore(input: Record<string, string[]>): void;
|
||||||
/**
|
/**
|
||||||
* Get default weapon and equipment presets
|
* Get default weapon and equipment presets
|
||||||
|
@ -7,8 +7,8 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
@ -21,14 +21,14 @@ export declare class ProfileHelper {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileSnapshotService: ProfileSnapshotService;
|
protected profileSnapshotService: ProfileSnapshotService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Remove/reset a completed quest condtion from players profile quest data
|
* Remove/reset a completed quest condtion from players profile quest data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -18,7 +18,7 @@ import { IQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -30,9 +30,9 @@ export declare class QuestHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
protected databaseService: DatabaseService;
|
||||||
protected questConditionHelper: QuestConditionHelper;
|
protected questConditionHelper: QuestConditionHelper;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
@ -45,7 +45,7 @@ export declare class QuestHelper {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseService: DatabaseService, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get status of a quest in player profile by its id
|
* Get status of a quest in player profile by its id
|
||||||
* @param pmcData Profile to search
|
* @param pmcData Profile to search
|
||||||
|
@ -19,8 +19,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -34,7 +34,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -55,7 +55,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected static goodSoldTemplate: string;
|
protected static goodSoldTemplate: string;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseService: DatabaseService, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
||||||
* @param searchRequest Data from client
|
* @param searchRequest Data from client
|
||||||
|
@ -3,17 +3,17 @@ import { ITemplateItem, Props } from "@spt/models/eft/common/tables/ITemplateIte
|
|||||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Alter an items durability after a repair by trader/repair kit
|
* Alter an items durability after a repair by trader/repair kit
|
||||||
* @param itemToRepair item to update durability details
|
* @param itemToRepair item to update durability details
|
||||||
|
@ -9,7 +9,7 @@ import { ITrader, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
@ -21,7 +21,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected assortHelper: AssortHelper;
|
protected assortHelper: AssortHelper;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
@ -37,7 +37,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
||||||
protected createdMergedQuestAssorts: boolean;
|
protected createdMergedQuestAssorts: boolean;
|
||||||
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseService: DatabaseService, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get a traders assorts
|
* Get a traders assorts
|
||||||
* Can be used for returning ragfair / fence assorts
|
* Can be used for returning ragfair / fence assorts
|
||||||
|
@ -10,7 +10,7 @@ import { Traders } from "@spt/models/enums/Traders";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
@ -18,7 +18,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class TraderHelper {
|
export declare class TraderHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -33,7 +33,7 @@ export declare class TraderHelper {
|
|||||||
protected highestTraderPriceItems?: Record<string, number>;
|
protected highestTraderPriceItems?: Record<string, number>;
|
||||||
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
||||||
protected highestTraderBuyPriceItems?: Record<string, number>;
|
protected highestTraderBuyPriceItems?: Record<string, number>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get a trader base object, update profile to reflect players current standing in profile
|
* Get a trader base object, update profile to reflect players current standing in profile
|
||||||
* when trader not found in profile
|
* when trader not found in profile
|
||||||
|
@ -802,7 +802,6 @@ export interface IMaxActiveOfferCount {
|
|||||||
from: number;
|
from: number;
|
||||||
to: number;
|
to: number;
|
||||||
count: number;
|
count: number;
|
||||||
countForSpecialEditions: number;
|
|
||||||
}
|
}
|
||||||
export interface IMaxSumForRarity {
|
export interface IMaxSumForRarity {
|
||||||
Common: IRarityMaxSum;
|
Common: IRarityMaxSum;
|
||||||
|
@ -196,18 +196,24 @@ export interface Props {
|
|||||||
export interface Exit {
|
export interface Exit {
|
||||||
/** % Chance out of 100 exit will appear in raid */
|
/** % Chance out of 100 exit will appear in raid */
|
||||||
Chance: number;
|
Chance: number;
|
||||||
|
ChancePVE: number;
|
||||||
Count: number;
|
Count: number;
|
||||||
|
CountPVE: number;
|
||||||
EntryPoints: string;
|
EntryPoints: string;
|
||||||
EventAvailable: boolean;
|
EventAvailable: boolean;
|
||||||
ExfiltrationTime: number;
|
ExfiltrationTime: number;
|
||||||
|
ExfiltrationTimePVE: number;
|
||||||
ExfiltrationType: string;
|
ExfiltrationType: string;
|
||||||
RequiredSlot?: string;
|
RequiredSlot?: string;
|
||||||
Id: string;
|
Id: string;
|
||||||
MaxTime: number;
|
MaxTime: number;
|
||||||
|
MaxTimePVE: number;
|
||||||
MinTime: number;
|
MinTime: number;
|
||||||
|
MinTimePVE: number;
|
||||||
Name: string;
|
Name: string;
|
||||||
PassageRequirement: string;
|
PassageRequirement: string;
|
||||||
PlayersCount: number;
|
PlayersCount: number;
|
||||||
|
PlayersCountPVE: number;
|
||||||
RequirementTip: string;
|
RequirementTip: string;
|
||||||
Side?: string;
|
Side?: string;
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,13 @@ export interface IRepeatableTemplates {
|
|||||||
export interface IPmcDataRepeatableQuest {
|
export interface IPmcDataRepeatableQuest {
|
||||||
id?: string;
|
id?: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
unavailableTime?: string;
|
||||||
activeQuests: IRepeatableQuest[];
|
activeQuests: IRepeatableQuest[];
|
||||||
inactiveQuests: IRepeatableQuest[];
|
inactiveQuests: IRepeatableQuest[];
|
||||||
endTime: number;
|
endTime: number;
|
||||||
changeRequirement: Record<string, IChangeRequirement>;
|
changeRequirement: Record<string, IChangeRequirement>;
|
||||||
|
freeChanges: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
}
|
}
|
||||||
export interface IChangeRequirement {
|
export interface IChangeRequirement {
|
||||||
changeCost: IChangeCost[];
|
changeCost: IChangeCost[];
|
||||||
|
@ -63,7 +63,7 @@ export interface Props {
|
|||||||
DiscardingBlock?: boolean;
|
DiscardingBlock?: boolean;
|
||||||
DropSoundType?: string;
|
DropSoundType?: string;
|
||||||
RagFairCommissionModifier?: number;
|
RagFairCommissionModifier?: number;
|
||||||
RarityPvE: string;
|
RarityPvE?: string;
|
||||||
IsAlwaysAvailableForInsurance?: boolean;
|
IsAlwaysAvailableForInsurance?: boolean;
|
||||||
DiscardLimit?: number;
|
DiscardLimit?: number;
|
||||||
MaxResource?: number;
|
MaxResource?: number;
|
||||||
@ -414,6 +414,12 @@ export interface Props {
|
|||||||
LayoutName?: string;
|
LayoutName?: string;
|
||||||
Lower75Prefab?: Prefab;
|
Lower75Prefab?: Prefab;
|
||||||
MaxUsages?: number;
|
MaxUsages?: number;
|
||||||
|
ScavKillExpPenalty?: number;
|
||||||
|
ScavKillExpPenaltyPVE?: number;
|
||||||
|
ScavKillStandingPenalty?: number;
|
||||||
|
ScavKillStandingPenaltyPVE?: number;
|
||||||
|
TradersDiscount?: number;
|
||||||
|
TradersDiscountPVE?: number;
|
||||||
}
|
}
|
||||||
export interface IHealthEffect {
|
export interface IHealthEffect {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -47,6 +47,8 @@ export interface IRepeatableQuestConfig {
|
|||||||
/** Item tplIds to ignore when generating rewards */
|
/** Item tplIds to ignore when generating rewards */
|
||||||
rewardBlacklist: string[];
|
rewardBlacklist: string[];
|
||||||
rewardAmmoStackMinSize: number;
|
rewardAmmoStackMinSize: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
|
freeChanges: number;
|
||||||
}
|
}
|
||||||
export interface IRewardScaling {
|
export interface IRewardScaling {
|
||||||
levels: number[];
|
levels: number[];
|
||||||
|
@ -4,7 +4,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
||||||
@ -12,7 +12,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
@ -20,7 +20,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected gearModPool: Mods;
|
protected gearModPool: Mods;
|
||||||
protected weaponPoolGenerated: boolean;
|
protected weaponPoolGenerated: boolean;
|
||||||
protected armorPoolGenerated: boolean;
|
protected armorPoolGenerated: boolean;
|
||||||
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Store dictionary of mods for each item passed in
|
* Store dictionary of mods for each item passed in
|
||||||
* @param items items to find related mods and store in modPool
|
* @param items items to find related mods and store in modPool
|
||||||
|
@ -2,15 +2,15 @@ import { BossLocationSpawn, Wave } from "@spt/models/eft/common/ILocationBase";
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class CustomLocationWaveService {
|
export declare class CustomLocationWaveService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add a boss wave to a map
|
* Add a boss wave to a map
|
||||||
* @param locationId e.g. factory4_day, bigmap
|
* @param locationId e.g. factory4_day, bigmap
|
||||||
|
@ -13,8 +13,8 @@ import { ILostOnDeathConfig } from "@spt/models/spt/config/ILostOnDeathConfig";
|
|||||||
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -24,7 +24,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class InsuranceService {
|
export declare class InsuranceService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected secureContainerHelper: SecureContainerHelper;
|
protected secureContainerHelper: SecureContainerHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -42,7 +42,7 @@ export declare class InsuranceService {
|
|||||||
protected insured: Record<string, Record<string, Item[]>>;
|
protected insured: Record<string, Record<string, Item[]>>;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
protected lostOnDeathConfig: ILostOnDeathConfig;
|
protected lostOnDeathConfig: ILostOnDeathConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, databaseService: DatabaseService, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Does player have insurance array
|
* Does player have insurance array
|
||||||
* @param sessionId Player id
|
* @param sessionId Player id
|
||||||
|
@ -9,8 +9,8 @@ import { MessageType } from "@spt/models/enums/MessageType";
|
|||||||
import { Traders } from "@spt/models/enums/Traders";
|
import { Traders } from "@spt/models/enums/Traders";
|
||||||
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
@ -19,7 +19,7 @@ export declare class MailSendService {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected notifierHelper: NotifierHelper;
|
protected notifierHelper: NotifierHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
protected notificationSendHelper: NotificationSendHelper;
|
protected notificationSendHelper: NotificationSendHelper;
|
||||||
@ -27,7 +27,7 @@ export declare class MailSendService {
|
|||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
||||||
/**
|
/**
|
||||||
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
||||||
* @param sessionId The session ID to send the message to
|
* @param sessionId The session ID to send the message to
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/** Service for adding new zones to a maps OpenZones property */
|
/** Service for adding new zones to a maps OpenZones property */
|
||||||
export declare class OpenZoneService {
|
export declare class OpenZoneService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add open zone to specified map
|
* Add open zone to specified map
|
||||||
* @param locationId map location (e.g. factory4_day)
|
* @param locationId map location (e.g. factory4_day)
|
||||||
|
@ -9,7 +9,7 @@ import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRo
|
|||||||
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
||||||
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
@ -17,14 +17,14 @@ export declare class PaymentService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseService: DatabaseService, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
||||||
/**
|
/**
|
||||||
* Take money and insert items into return to server request
|
* Take money and insert items into return to server request
|
||||||
* @param pmcData Pmc profile
|
* @param pmcData Pmc profile
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class PlayerService {
|
export declare class PlayerService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseService: DatabaseService);
|
||||||
/**
|
/**
|
||||||
* Get level of player
|
* Get level of player
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
export declare class RagfairLinkedItemService {
|
export declare class RagfairLinkedItemService {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected linkedItemsCache: Record<string, Set<string>>;
|
protected linkedItemsCache: Record<string, Set<string>>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper);
|
||||||
getLinkedItems(linkedSearchId: string): Set<string>;
|
getLinkedItems(linkedSearchId: string): Set<string>;
|
||||||
/**
|
/**
|
||||||
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
||||||
|
@ -6,8 +6,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
||||||
@ -15,7 +15,7 @@ import { TimeUtil } from "@spt/utils/TimeUtil";
|
|||||||
export declare class RagfairOfferService {
|
export declare class RagfairOfferService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
@ -28,7 +28,7 @@ export declare class RagfairOfferService {
|
|||||||
protected expiredOffers: Record<string, IRagfairOffer>;
|
protected expiredOffers: Record<string, IRagfairOffer>;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected ragfairOfferHandler: RagfairOfferHolder;
|
protected ragfairOfferHandler: RagfairOfferHolder;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, databaseService: DatabaseService, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get all offers
|
* Get all offers
|
||||||
* @returns IRagfairOffer array
|
* @returns IRagfairOffer array
|
||||||
|
@ -12,7 +12,7 @@ import { IRagfairConfig, IUnreasonableModPrices } from "@spt/models/spt/config/I
|
|||||||
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/**
|
/**
|
||||||
@ -20,7 +20,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
*/
|
*/
|
||||||
export declare class RagfairPriceService implements OnLoad {
|
export declare class RagfairPriceService implements OnLoad {
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -30,7 +30,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected prices: IRagfairServerPrices;
|
protected prices: IRagfairServerPrices;
|
||||||
constructor(handbookHelper: HandbookHelper, databaseServer: DatabaseServer, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(handbookHelper: HandbookHelper, databaseService: DatabaseService, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
||||||
*/
|
*/
|
||||||
|
@ -4,15 +4,15 @@ import { Item } from "@spt/models/eft/common/tables/IItem";
|
|||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
export declare class RagfairTaxService {
|
export declare class RagfairTaxService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected ragfairPriceService: RagfairPriceService;
|
protected ragfairPriceService: RagfairPriceService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
constructor(logger: ILogger, databaseService: DatabaseService, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
||||||
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
||||||
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
||||||
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
||||||
|
@ -7,17 +7,17 @@ import { ILocationConfig, IScavRaidTimeLocationSettings, LootMultiplier } from "
|
|||||||
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RaidTimeAdjustmentService {
|
export declare class RaidTimeAdjustmentService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected weightedRandomHelper: WeightedRandomHelper;
|
protected weightedRandomHelper: WeightedRandomHelper;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Make alterations to the base map data passed in
|
* Make alterations to the base map data passed in
|
||||||
* Loot multipliers/waves/wave start times
|
* Loot multipliers/waves/wave start times
|
||||||
|
@ -14,13 +14,13 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PaymentService } from "@spt/services/PaymentService";
|
import { PaymentService } from "@spt/services/PaymentService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairService {
|
export declare class RepairService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -31,7 +31,7 @@ export declare class RepairService {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Use trader to repair an items durability
|
* Use trader to repair an items durability
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderServicesService {
|
export declare class TraderServicesService {
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseServer: DatabaseServer, cloner: ICloner);
|
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseService: DatabaseService, cloner: ICloner);
|
||||||
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,11 @@ import { HashUtil } from "@spt/utils/HashUtil";
|
|||||||
export declare class CustomItemService {
|
export declare class CustomItemService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected databaseServer: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected itemBaseClassService: ItemBaseClassService;
|
protected itemBaseClassService: ItemBaseClassService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseService: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create a new item from a cloned item base
|
* Create a new item from a cloned item base
|
||||||
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
||||||
|
@ -6,7 +6,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -19,7 +19,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
/**
|
/**
|
||||||
@ -34,7 +34,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
private static acceptableConfidence;
|
private static acceptableConfidence;
|
||||||
private static excludedPresetItems;
|
private static excludedPresetItems;
|
||||||
protected savedCommand: Map<string, SavedCommand>;
|
protected savedCommand: Map<string, SavedCommand>;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService, cloner: ICloner);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseService: DatabaseService, itemFilterService: ItemFilterService, cloner: ICloner);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
||||||
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected lookup: Record<string, string[]>;
|
protected lookup: Record<string, string[]>;
|
||||||
protected defaultEquipmentPresets: Record<string, IPreset>;
|
protected defaultEquipmentPresets: Record<string, IPreset>;
|
||||||
protected defaultWeaponPresets: Record<string, IPreset>;
|
protected defaultWeaponPresets: Record<string, IPreset>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper, cloner: ICloner);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper, cloner: ICloner);
|
||||||
hydratePresetStore(input: Record<string, string[]>): void;
|
hydratePresetStore(input: Record<string, string[]>): void;
|
||||||
/**
|
/**
|
||||||
* Get default weapon and equipment presets
|
* Get default weapon and equipment presets
|
||||||
|
@ -7,8 +7,8 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
@ -21,14 +21,14 @@ export declare class ProfileHelper {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileSnapshotService: ProfileSnapshotService;
|
protected profileSnapshotService: ProfileSnapshotService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Remove/reset a completed quest condtion from players profile quest data
|
* Remove/reset a completed quest condtion from players profile quest data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -18,7 +18,7 @@ import { IQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -30,9 +30,9 @@ export declare class QuestHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
protected databaseService: DatabaseService;
|
||||||
protected questConditionHelper: QuestConditionHelper;
|
protected questConditionHelper: QuestConditionHelper;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
@ -45,7 +45,7 @@ export declare class QuestHelper {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseService: DatabaseService, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get status of a quest in player profile by its id
|
* Get status of a quest in player profile by its id
|
||||||
* @param pmcData Profile to search
|
* @param pmcData Profile to search
|
||||||
|
@ -19,8 +19,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -34,7 +34,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -55,7 +55,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected static goodSoldTemplate: string;
|
protected static goodSoldTemplate: string;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseService: DatabaseService, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
||||||
* @param searchRequest Data from client
|
* @param searchRequest Data from client
|
||||||
|
@ -3,17 +3,17 @@ import { ITemplateItem, Props } from "@spt/models/eft/common/tables/ITemplateIte
|
|||||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Alter an items durability after a repair by trader/repair kit
|
* Alter an items durability after a repair by trader/repair kit
|
||||||
* @param itemToRepair item to update durability details
|
* @param itemToRepair item to update durability details
|
||||||
|
@ -9,7 +9,7 @@ import { ITrader, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
@ -21,7 +21,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected assortHelper: AssortHelper;
|
protected assortHelper: AssortHelper;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
@ -37,7 +37,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
||||||
protected createdMergedQuestAssorts: boolean;
|
protected createdMergedQuestAssorts: boolean;
|
||||||
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseService: DatabaseService, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get a traders assorts
|
* Get a traders assorts
|
||||||
* Can be used for returning ragfair / fence assorts
|
* Can be used for returning ragfair / fence assorts
|
||||||
|
@ -10,7 +10,7 @@ import { Traders } from "@spt/models/enums/Traders";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
@ -18,7 +18,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class TraderHelper {
|
export declare class TraderHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -33,7 +33,7 @@ export declare class TraderHelper {
|
|||||||
protected highestTraderPriceItems?: Record<string, number>;
|
protected highestTraderPriceItems?: Record<string, number>;
|
||||||
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
||||||
protected highestTraderBuyPriceItems?: Record<string, number>;
|
protected highestTraderBuyPriceItems?: Record<string, number>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get a trader base object, update profile to reflect players current standing in profile
|
* Get a trader base object, update profile to reflect players current standing in profile
|
||||||
* when trader not found in profile
|
* when trader not found in profile
|
||||||
|
@ -802,7 +802,6 @@ export interface IMaxActiveOfferCount {
|
|||||||
from: number;
|
from: number;
|
||||||
to: number;
|
to: number;
|
||||||
count: number;
|
count: number;
|
||||||
countForSpecialEditions: number;
|
|
||||||
}
|
}
|
||||||
export interface IMaxSumForRarity {
|
export interface IMaxSumForRarity {
|
||||||
Common: IRarityMaxSum;
|
Common: IRarityMaxSum;
|
||||||
|
@ -196,18 +196,24 @@ export interface Props {
|
|||||||
export interface Exit {
|
export interface Exit {
|
||||||
/** % Chance out of 100 exit will appear in raid */
|
/** % Chance out of 100 exit will appear in raid */
|
||||||
Chance: number;
|
Chance: number;
|
||||||
|
ChancePVE: number;
|
||||||
Count: number;
|
Count: number;
|
||||||
|
CountPVE: number;
|
||||||
EntryPoints: string;
|
EntryPoints: string;
|
||||||
EventAvailable: boolean;
|
EventAvailable: boolean;
|
||||||
ExfiltrationTime: number;
|
ExfiltrationTime: number;
|
||||||
|
ExfiltrationTimePVE: number;
|
||||||
ExfiltrationType: string;
|
ExfiltrationType: string;
|
||||||
RequiredSlot?: string;
|
RequiredSlot?: string;
|
||||||
Id: string;
|
Id: string;
|
||||||
MaxTime: number;
|
MaxTime: number;
|
||||||
|
MaxTimePVE: number;
|
||||||
MinTime: number;
|
MinTime: number;
|
||||||
|
MinTimePVE: number;
|
||||||
Name: string;
|
Name: string;
|
||||||
PassageRequirement: string;
|
PassageRequirement: string;
|
||||||
PlayersCount: number;
|
PlayersCount: number;
|
||||||
|
PlayersCountPVE: number;
|
||||||
RequirementTip: string;
|
RequirementTip: string;
|
||||||
Side?: string;
|
Side?: string;
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,13 @@ export interface IRepeatableTemplates {
|
|||||||
export interface IPmcDataRepeatableQuest {
|
export interface IPmcDataRepeatableQuest {
|
||||||
id?: string;
|
id?: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
unavailableTime?: string;
|
||||||
activeQuests: IRepeatableQuest[];
|
activeQuests: IRepeatableQuest[];
|
||||||
inactiveQuests: IRepeatableQuest[];
|
inactiveQuests: IRepeatableQuest[];
|
||||||
endTime: number;
|
endTime: number;
|
||||||
changeRequirement: Record<string, IChangeRequirement>;
|
changeRequirement: Record<string, IChangeRequirement>;
|
||||||
|
freeChanges: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
}
|
}
|
||||||
export interface IChangeRequirement {
|
export interface IChangeRequirement {
|
||||||
changeCost: IChangeCost[];
|
changeCost: IChangeCost[];
|
||||||
|
@ -63,7 +63,7 @@ export interface Props {
|
|||||||
DiscardingBlock?: boolean;
|
DiscardingBlock?: boolean;
|
||||||
DropSoundType?: string;
|
DropSoundType?: string;
|
||||||
RagFairCommissionModifier?: number;
|
RagFairCommissionModifier?: number;
|
||||||
RarityPvE: string;
|
RarityPvE?: string;
|
||||||
IsAlwaysAvailableForInsurance?: boolean;
|
IsAlwaysAvailableForInsurance?: boolean;
|
||||||
DiscardLimit?: number;
|
DiscardLimit?: number;
|
||||||
MaxResource?: number;
|
MaxResource?: number;
|
||||||
@ -414,6 +414,12 @@ export interface Props {
|
|||||||
LayoutName?: string;
|
LayoutName?: string;
|
||||||
Lower75Prefab?: Prefab;
|
Lower75Prefab?: Prefab;
|
||||||
MaxUsages?: number;
|
MaxUsages?: number;
|
||||||
|
ScavKillExpPenalty?: number;
|
||||||
|
ScavKillExpPenaltyPVE?: number;
|
||||||
|
ScavKillStandingPenalty?: number;
|
||||||
|
ScavKillStandingPenaltyPVE?: number;
|
||||||
|
TradersDiscount?: number;
|
||||||
|
TradersDiscountPVE?: number;
|
||||||
}
|
}
|
||||||
export interface IHealthEffect {
|
export interface IHealthEffect {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -47,6 +47,8 @@ export interface IRepeatableQuestConfig {
|
|||||||
/** Item tplIds to ignore when generating rewards */
|
/** Item tplIds to ignore when generating rewards */
|
||||||
rewardBlacklist: string[];
|
rewardBlacklist: string[];
|
||||||
rewardAmmoStackMinSize: number;
|
rewardAmmoStackMinSize: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
|
freeChanges: number;
|
||||||
}
|
}
|
||||||
export interface IRewardScaling {
|
export interface IRewardScaling {
|
||||||
levels: number[];
|
levels: number[];
|
||||||
|
@ -4,7 +4,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
||||||
@ -12,7 +12,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
@ -20,7 +20,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected gearModPool: Mods;
|
protected gearModPool: Mods;
|
||||||
protected weaponPoolGenerated: boolean;
|
protected weaponPoolGenerated: boolean;
|
||||||
protected armorPoolGenerated: boolean;
|
protected armorPoolGenerated: boolean;
|
||||||
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Store dictionary of mods for each item passed in
|
* Store dictionary of mods for each item passed in
|
||||||
* @param items items to find related mods and store in modPool
|
* @param items items to find related mods and store in modPool
|
||||||
|
@ -2,15 +2,15 @@ import { BossLocationSpawn, Wave } from "@spt/models/eft/common/ILocationBase";
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class CustomLocationWaveService {
|
export declare class CustomLocationWaveService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add a boss wave to a map
|
* Add a boss wave to a map
|
||||||
* @param locationId e.g. factory4_day, bigmap
|
* @param locationId e.g. factory4_day, bigmap
|
||||||
|
@ -13,8 +13,8 @@ import { ILostOnDeathConfig } from "@spt/models/spt/config/ILostOnDeathConfig";
|
|||||||
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -24,7 +24,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class InsuranceService {
|
export declare class InsuranceService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected secureContainerHelper: SecureContainerHelper;
|
protected secureContainerHelper: SecureContainerHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -42,7 +42,7 @@ export declare class InsuranceService {
|
|||||||
protected insured: Record<string, Record<string, Item[]>>;
|
protected insured: Record<string, Record<string, Item[]>>;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
protected lostOnDeathConfig: ILostOnDeathConfig;
|
protected lostOnDeathConfig: ILostOnDeathConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, databaseService: DatabaseService, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Does player have insurance array
|
* Does player have insurance array
|
||||||
* @param sessionId Player id
|
* @param sessionId Player id
|
||||||
|
@ -9,8 +9,8 @@ import { MessageType } from "@spt/models/enums/MessageType";
|
|||||||
import { Traders } from "@spt/models/enums/Traders";
|
import { Traders } from "@spt/models/enums/Traders";
|
||||||
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
@ -19,7 +19,7 @@ export declare class MailSendService {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected notifierHelper: NotifierHelper;
|
protected notifierHelper: NotifierHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
protected notificationSendHelper: NotificationSendHelper;
|
protected notificationSendHelper: NotificationSendHelper;
|
||||||
@ -27,7 +27,7 @@ export declare class MailSendService {
|
|||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
||||||
/**
|
/**
|
||||||
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
||||||
* @param sessionId The session ID to send the message to
|
* @param sessionId The session ID to send the message to
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/** Service for adding new zones to a maps OpenZones property */
|
/** Service for adding new zones to a maps OpenZones property */
|
||||||
export declare class OpenZoneService {
|
export declare class OpenZoneService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add open zone to specified map
|
* Add open zone to specified map
|
||||||
* @param locationId map location (e.g. factory4_day)
|
* @param locationId map location (e.g. factory4_day)
|
||||||
|
@ -9,7 +9,7 @@ import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRo
|
|||||||
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
||||||
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
@ -17,14 +17,14 @@ export declare class PaymentService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseService: DatabaseService, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
||||||
/**
|
/**
|
||||||
* Take money and insert items into return to server request
|
* Take money and insert items into return to server request
|
||||||
* @param pmcData Pmc profile
|
* @param pmcData Pmc profile
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class PlayerService {
|
export declare class PlayerService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseService: DatabaseService);
|
||||||
/**
|
/**
|
||||||
* Get level of player
|
* Get level of player
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
export declare class RagfairLinkedItemService {
|
export declare class RagfairLinkedItemService {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected linkedItemsCache: Record<string, Set<string>>;
|
protected linkedItemsCache: Record<string, Set<string>>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper);
|
||||||
getLinkedItems(linkedSearchId: string): Set<string>;
|
getLinkedItems(linkedSearchId: string): Set<string>;
|
||||||
/**
|
/**
|
||||||
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
||||||
|
@ -6,8 +6,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
||||||
@ -15,7 +15,7 @@ import { TimeUtil } from "@spt/utils/TimeUtil";
|
|||||||
export declare class RagfairOfferService {
|
export declare class RagfairOfferService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
@ -28,7 +28,7 @@ export declare class RagfairOfferService {
|
|||||||
protected expiredOffers: Record<string, IRagfairOffer>;
|
protected expiredOffers: Record<string, IRagfairOffer>;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected ragfairOfferHandler: RagfairOfferHolder;
|
protected ragfairOfferHandler: RagfairOfferHolder;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, databaseService: DatabaseService, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get all offers
|
* Get all offers
|
||||||
* @returns IRagfairOffer array
|
* @returns IRagfairOffer array
|
||||||
|
@ -12,7 +12,7 @@ import { IRagfairConfig, IUnreasonableModPrices } from "@spt/models/spt/config/I
|
|||||||
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/**
|
/**
|
||||||
@ -20,7 +20,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
*/
|
*/
|
||||||
export declare class RagfairPriceService implements OnLoad {
|
export declare class RagfairPriceService implements OnLoad {
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -30,7 +30,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected prices: IRagfairServerPrices;
|
protected prices: IRagfairServerPrices;
|
||||||
constructor(handbookHelper: HandbookHelper, databaseServer: DatabaseServer, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(handbookHelper: HandbookHelper, databaseService: DatabaseService, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
||||||
*/
|
*/
|
||||||
|
@ -4,15 +4,15 @@ import { Item } from "@spt/models/eft/common/tables/IItem";
|
|||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
export declare class RagfairTaxService {
|
export declare class RagfairTaxService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected ragfairPriceService: RagfairPriceService;
|
protected ragfairPriceService: RagfairPriceService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
constructor(logger: ILogger, databaseService: DatabaseService, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
||||||
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
||||||
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
||||||
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
||||||
|
@ -7,17 +7,17 @@ import { ILocationConfig, IScavRaidTimeLocationSettings, LootMultiplier } from "
|
|||||||
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RaidTimeAdjustmentService {
|
export declare class RaidTimeAdjustmentService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected weightedRandomHelper: WeightedRandomHelper;
|
protected weightedRandomHelper: WeightedRandomHelper;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Make alterations to the base map data passed in
|
* Make alterations to the base map data passed in
|
||||||
* Loot multipliers/waves/wave start times
|
* Loot multipliers/waves/wave start times
|
||||||
|
@ -14,13 +14,13 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PaymentService } from "@spt/services/PaymentService";
|
import { PaymentService } from "@spt/services/PaymentService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairService {
|
export declare class RepairService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -31,7 +31,7 @@ export declare class RepairService {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Use trader to repair an items durability
|
* Use trader to repair an items durability
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderServicesService {
|
export declare class TraderServicesService {
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseServer: DatabaseServer, cloner: ICloner);
|
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseService: DatabaseService, cloner: ICloner);
|
||||||
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,11 @@ import { HashUtil } from "@spt/utils/HashUtil";
|
|||||||
export declare class CustomItemService {
|
export declare class CustomItemService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected databaseServer: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected itemBaseClassService: ItemBaseClassService;
|
protected itemBaseClassService: ItemBaseClassService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseService: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create a new item from a cloned item base
|
* Create a new item from a cloned item base
|
||||||
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
||||||
|
@ -6,7 +6,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -19,7 +19,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
/**
|
/**
|
||||||
@ -34,7 +34,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
private static acceptableConfidence;
|
private static acceptableConfidence;
|
||||||
private static excludedPresetItems;
|
private static excludedPresetItems;
|
||||||
protected savedCommand: Map<string, SavedCommand>;
|
protected savedCommand: Map<string, SavedCommand>;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService, cloner: ICloner);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseService: DatabaseService, itemFilterService: ItemFilterService, cloner: ICloner);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
||||||
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected lookup: Record<string, string[]>;
|
protected lookup: Record<string, string[]>;
|
||||||
protected defaultEquipmentPresets: Record<string, IPreset>;
|
protected defaultEquipmentPresets: Record<string, IPreset>;
|
||||||
protected defaultWeaponPresets: Record<string, IPreset>;
|
protected defaultWeaponPresets: Record<string, IPreset>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper, cloner: ICloner);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper, cloner: ICloner);
|
||||||
hydratePresetStore(input: Record<string, string[]>): void;
|
hydratePresetStore(input: Record<string, string[]>): void;
|
||||||
/**
|
/**
|
||||||
* Get default weapon and equipment presets
|
* Get default weapon and equipment presets
|
||||||
|
@ -7,8 +7,8 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
@ -21,14 +21,14 @@ export declare class ProfileHelper {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileSnapshotService: ProfileSnapshotService;
|
protected profileSnapshotService: ProfileSnapshotService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Remove/reset a completed quest condtion from players profile quest data
|
* Remove/reset a completed quest condtion from players profile quest data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -18,7 +18,7 @@ import { IQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -30,9 +30,9 @@ export declare class QuestHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
protected databaseService: DatabaseService;
|
||||||
protected questConditionHelper: QuestConditionHelper;
|
protected questConditionHelper: QuestConditionHelper;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
@ -45,7 +45,7 @@ export declare class QuestHelper {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseService: DatabaseService, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get status of a quest in player profile by its id
|
* Get status of a quest in player profile by its id
|
||||||
* @param pmcData Profile to search
|
* @param pmcData Profile to search
|
||||||
|
@ -19,8 +19,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -34,7 +34,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -55,7 +55,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected static goodSoldTemplate: string;
|
protected static goodSoldTemplate: string;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseService: DatabaseService, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
||||||
* @param searchRequest Data from client
|
* @param searchRequest Data from client
|
||||||
|
@ -3,17 +3,17 @@ import { ITemplateItem, Props } from "@spt/models/eft/common/tables/ITemplateIte
|
|||||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Alter an items durability after a repair by trader/repair kit
|
* Alter an items durability after a repair by trader/repair kit
|
||||||
* @param itemToRepair item to update durability details
|
* @param itemToRepair item to update durability details
|
||||||
|
@ -9,7 +9,7 @@ import { ITrader, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
@ -21,7 +21,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected assortHelper: AssortHelper;
|
protected assortHelper: AssortHelper;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
@ -37,7 +37,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
||||||
protected createdMergedQuestAssorts: boolean;
|
protected createdMergedQuestAssorts: boolean;
|
||||||
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseService: DatabaseService, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get a traders assorts
|
* Get a traders assorts
|
||||||
* Can be used for returning ragfair / fence assorts
|
* Can be used for returning ragfair / fence assorts
|
||||||
|
@ -10,7 +10,7 @@ import { Traders } from "@spt/models/enums/Traders";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
@ -18,7 +18,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class TraderHelper {
|
export declare class TraderHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -33,7 +33,7 @@ export declare class TraderHelper {
|
|||||||
protected highestTraderPriceItems?: Record<string, number>;
|
protected highestTraderPriceItems?: Record<string, number>;
|
||||||
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
||||||
protected highestTraderBuyPriceItems?: Record<string, number>;
|
protected highestTraderBuyPriceItems?: Record<string, number>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get a trader base object, update profile to reflect players current standing in profile
|
* Get a trader base object, update profile to reflect players current standing in profile
|
||||||
* when trader not found in profile
|
* when trader not found in profile
|
||||||
|
@ -802,7 +802,6 @@ export interface IMaxActiveOfferCount {
|
|||||||
from: number;
|
from: number;
|
||||||
to: number;
|
to: number;
|
||||||
count: number;
|
count: number;
|
||||||
countForSpecialEditions: number;
|
|
||||||
}
|
}
|
||||||
export interface IMaxSumForRarity {
|
export interface IMaxSumForRarity {
|
||||||
Common: IRarityMaxSum;
|
Common: IRarityMaxSum;
|
||||||
|
@ -196,18 +196,24 @@ export interface Props {
|
|||||||
export interface Exit {
|
export interface Exit {
|
||||||
/** % Chance out of 100 exit will appear in raid */
|
/** % Chance out of 100 exit will appear in raid */
|
||||||
Chance: number;
|
Chance: number;
|
||||||
|
ChancePVE: number;
|
||||||
Count: number;
|
Count: number;
|
||||||
|
CountPVE: number;
|
||||||
EntryPoints: string;
|
EntryPoints: string;
|
||||||
EventAvailable: boolean;
|
EventAvailable: boolean;
|
||||||
ExfiltrationTime: number;
|
ExfiltrationTime: number;
|
||||||
|
ExfiltrationTimePVE: number;
|
||||||
ExfiltrationType: string;
|
ExfiltrationType: string;
|
||||||
RequiredSlot?: string;
|
RequiredSlot?: string;
|
||||||
Id: string;
|
Id: string;
|
||||||
MaxTime: number;
|
MaxTime: number;
|
||||||
|
MaxTimePVE: number;
|
||||||
MinTime: number;
|
MinTime: number;
|
||||||
|
MinTimePVE: number;
|
||||||
Name: string;
|
Name: string;
|
||||||
PassageRequirement: string;
|
PassageRequirement: string;
|
||||||
PlayersCount: number;
|
PlayersCount: number;
|
||||||
|
PlayersCountPVE: number;
|
||||||
RequirementTip: string;
|
RequirementTip: string;
|
||||||
Side?: string;
|
Side?: string;
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,13 @@ export interface IRepeatableTemplates {
|
|||||||
export interface IPmcDataRepeatableQuest {
|
export interface IPmcDataRepeatableQuest {
|
||||||
id?: string;
|
id?: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
unavailableTime?: string;
|
||||||
activeQuests: IRepeatableQuest[];
|
activeQuests: IRepeatableQuest[];
|
||||||
inactiveQuests: IRepeatableQuest[];
|
inactiveQuests: IRepeatableQuest[];
|
||||||
endTime: number;
|
endTime: number;
|
||||||
changeRequirement: Record<string, IChangeRequirement>;
|
changeRequirement: Record<string, IChangeRequirement>;
|
||||||
|
freeChanges: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
}
|
}
|
||||||
export interface IChangeRequirement {
|
export interface IChangeRequirement {
|
||||||
changeCost: IChangeCost[];
|
changeCost: IChangeCost[];
|
||||||
|
@ -63,7 +63,7 @@ export interface Props {
|
|||||||
DiscardingBlock?: boolean;
|
DiscardingBlock?: boolean;
|
||||||
DropSoundType?: string;
|
DropSoundType?: string;
|
||||||
RagFairCommissionModifier?: number;
|
RagFairCommissionModifier?: number;
|
||||||
RarityPvE: string;
|
RarityPvE?: string;
|
||||||
IsAlwaysAvailableForInsurance?: boolean;
|
IsAlwaysAvailableForInsurance?: boolean;
|
||||||
DiscardLimit?: number;
|
DiscardLimit?: number;
|
||||||
MaxResource?: number;
|
MaxResource?: number;
|
||||||
@ -414,6 +414,12 @@ export interface Props {
|
|||||||
LayoutName?: string;
|
LayoutName?: string;
|
||||||
Lower75Prefab?: Prefab;
|
Lower75Prefab?: Prefab;
|
||||||
MaxUsages?: number;
|
MaxUsages?: number;
|
||||||
|
ScavKillExpPenalty?: number;
|
||||||
|
ScavKillExpPenaltyPVE?: number;
|
||||||
|
ScavKillStandingPenalty?: number;
|
||||||
|
ScavKillStandingPenaltyPVE?: number;
|
||||||
|
TradersDiscount?: number;
|
||||||
|
TradersDiscountPVE?: number;
|
||||||
}
|
}
|
||||||
export interface IHealthEffect {
|
export interface IHealthEffect {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -47,6 +47,8 @@ export interface IRepeatableQuestConfig {
|
|||||||
/** Item tplIds to ignore when generating rewards */
|
/** Item tplIds to ignore when generating rewards */
|
||||||
rewardBlacklist: string[];
|
rewardBlacklist: string[];
|
||||||
rewardAmmoStackMinSize: number;
|
rewardAmmoStackMinSize: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
|
freeChanges: number;
|
||||||
}
|
}
|
||||||
export interface IRewardScaling {
|
export interface IRewardScaling {
|
||||||
levels: number[];
|
levels: number[];
|
||||||
|
@ -4,7 +4,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
||||||
@ -12,7 +12,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
@ -20,7 +20,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected gearModPool: Mods;
|
protected gearModPool: Mods;
|
||||||
protected weaponPoolGenerated: boolean;
|
protected weaponPoolGenerated: boolean;
|
||||||
protected armorPoolGenerated: boolean;
|
protected armorPoolGenerated: boolean;
|
||||||
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Store dictionary of mods for each item passed in
|
* Store dictionary of mods for each item passed in
|
||||||
* @param items items to find related mods and store in modPool
|
* @param items items to find related mods and store in modPool
|
||||||
|
@ -2,15 +2,15 @@ import { BossLocationSpawn, Wave } from "@spt/models/eft/common/ILocationBase";
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class CustomLocationWaveService {
|
export declare class CustomLocationWaveService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add a boss wave to a map
|
* Add a boss wave to a map
|
||||||
* @param locationId e.g. factory4_day, bigmap
|
* @param locationId e.g. factory4_day, bigmap
|
||||||
|
@ -13,8 +13,8 @@ import { ILostOnDeathConfig } from "@spt/models/spt/config/ILostOnDeathConfig";
|
|||||||
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -24,7 +24,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class InsuranceService {
|
export declare class InsuranceService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected secureContainerHelper: SecureContainerHelper;
|
protected secureContainerHelper: SecureContainerHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -42,7 +42,7 @@ export declare class InsuranceService {
|
|||||||
protected insured: Record<string, Record<string, Item[]>>;
|
protected insured: Record<string, Record<string, Item[]>>;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
protected lostOnDeathConfig: ILostOnDeathConfig;
|
protected lostOnDeathConfig: ILostOnDeathConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, databaseService: DatabaseService, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Does player have insurance array
|
* Does player have insurance array
|
||||||
* @param sessionId Player id
|
* @param sessionId Player id
|
||||||
|
@ -9,8 +9,8 @@ import { MessageType } from "@spt/models/enums/MessageType";
|
|||||||
import { Traders } from "@spt/models/enums/Traders";
|
import { Traders } from "@spt/models/enums/Traders";
|
||||||
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
import { IProfileChangeEvent, ISendMessageDetails } from "@spt/models/spt/dialog/ISendMessageDetails";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
@ -19,7 +19,7 @@ export declare class MailSendService {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected notifierHelper: NotifierHelper;
|
protected notifierHelper: NotifierHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
protected notificationSendHelper: NotificationSendHelper;
|
protected notificationSendHelper: NotificationSendHelper;
|
||||||
@ -27,7 +27,7 @@ export declare class MailSendService {
|
|||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
protected readonly systemSenderId = "59e7125688a45068a6249071";
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, notifierHelper: NotifierHelper, dialogueHelper: DialogueHelper, notificationSendHelper: NotificationSendHelper, localisationService: LocalisationService, itemHelper: ItemHelper, traderHelper: TraderHelper);
|
||||||
/**
|
/**
|
||||||
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
* Send a message from an NPC (e.g. prapor) to the player with or without items using direct message text, do not look up any locale
|
||||||
* @param sessionId The session ID to send the message to
|
* @param sessionId The session ID to send the message to
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/** Service for adding new zones to a maps OpenZones property */
|
/** Service for adding new zones to a maps OpenZones property */
|
||||||
export declare class OpenZoneService {
|
export declare class OpenZoneService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add open zone to specified map
|
* Add open zone to specified map
|
||||||
* @param locationId map location (e.g. factory4_day)
|
* @param locationId map location (e.g. factory4_day)
|
||||||
|
@ -9,7 +9,7 @@ import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRo
|
|||||||
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
import { IProcessBuyTradeRequestData } from "@spt/models/eft/trade/IProcessBuyTradeRequestData";
|
||||||
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
import { IProcessSellTradeRequestData } from "@spt/models/eft/trade/IProcessSellTradeRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
@ -17,14 +17,14 @@ export declare class PaymentService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, databaseService: DatabaseService, handbookHelper: HandbookHelper, traderHelper: TraderHelper, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, localisationService: LocalisationService, paymentHelper: PaymentHelper);
|
||||||
/**
|
/**
|
||||||
* Take money and insert items into return to server request
|
* Take money and insert items into return to server request
|
||||||
* @param pmcData Pmc profile
|
* @param pmcData Pmc profile
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class PlayerService {
|
export declare class PlayerService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseService: DatabaseService);
|
||||||
/**
|
/**
|
||||||
* Get level of player
|
* Get level of player
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
export declare class RagfairLinkedItemService {
|
export declare class RagfairLinkedItemService {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected linkedItemsCache: Record<string, Set<string>>;
|
protected linkedItemsCache: Record<string, Set<string>>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper);
|
||||||
getLinkedItems(linkedSearchId: string): Set<string>;
|
getLinkedItems(linkedSearchId: string): Set<string>;
|
||||||
/**
|
/**
|
||||||
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
* Use ragfair linked item service to get an array of items that can fit on or in designated itemtpl
|
||||||
|
@ -6,8 +6,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
||||||
@ -15,7 +15,7 @@ import { TimeUtil } from "@spt/utils/TimeUtil";
|
|||||||
export declare class RagfairOfferService {
|
export declare class RagfairOfferService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
@ -28,7 +28,7 @@ export declare class RagfairOfferService {
|
|||||||
protected expiredOffers: Record<string, IRagfairOffer>;
|
protected expiredOffers: Record<string, IRagfairOffer>;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected ragfairOfferHandler: RagfairOfferHolder;
|
protected ragfairOfferHandler: RagfairOfferHolder;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, databaseService: DatabaseService, saveServer: SaveServer, ragfairServerHelper: RagfairServerHelper, profileHelper: ProfileHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get all offers
|
* Get all offers
|
||||||
* @returns IRagfairOffer array
|
* @returns IRagfairOffer array
|
||||||
|
@ -12,7 +12,7 @@ import { IRagfairConfig, IUnreasonableModPrices } from "@spt/models/spt/config/I
|
|||||||
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
import { IRagfairServerPrices } from "@spt/models/spt/ragfair/IRagfairServerPrices";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
/**
|
/**
|
||||||
@ -20,7 +20,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
*/
|
*/
|
||||||
export declare class RagfairPriceService implements OnLoad {
|
export declare class RagfairPriceService implements OnLoad {
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -30,7 +30,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected prices: IRagfairServerPrices;
|
protected prices: IRagfairServerPrices;
|
||||||
constructor(handbookHelper: HandbookHelper, databaseServer: DatabaseServer, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(handbookHelper: HandbookHelper, databaseService: DatabaseService, logger: ILogger, itemHelper: ItemHelper, presetHelper: PresetHelper, traderHelper: TraderHelper, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
* Generate static (handbook) and dynamic (prices.json) flea prices, store inside class as dictionaries
|
||||||
*/
|
*/
|
||||||
|
@ -4,15 +4,15 @@ import { Item } from "@spt/models/eft/common/tables/IItem";
|
|||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
import { IStorePlayerOfferTaxAmountRequestData } from "@spt/models/eft/ragfair/IStorePlayerOfferTaxAmountRequestData";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
export declare class RagfairTaxService {
|
export declare class RagfairTaxService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected ragfairPriceService: RagfairPriceService;
|
protected ragfairPriceService: RagfairPriceService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
protected playerOfferTaxCache: Record<string, IStorePlayerOfferTaxAmountRequestData>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
constructor(logger: ILogger, databaseService: DatabaseService, ragfairPriceService: RagfairPriceService, itemHelper: ItemHelper);
|
||||||
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
storeClientOfferTaxValue(sessionId: string, offer: IStorePlayerOfferTaxAmountRequestData): void;
|
||||||
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
clearStoredOfferTaxById(offerIdToRemove: string): void;
|
||||||
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
getStoredClientOfferTaxValueById(offerIdToGet: string): IStorePlayerOfferTaxAmountRequestData;
|
||||||
|
@ -7,17 +7,17 @@ import { ILocationConfig, IScavRaidTimeLocationSettings, LootMultiplier } from "
|
|||||||
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
import { IRaidChanges } from "@spt/models/spt/location/IRaidChanges";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RaidTimeAdjustmentService {
|
export declare class RaidTimeAdjustmentService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected weightedRandomHelper: WeightedRandomHelper;
|
protected weightedRandomHelper: WeightedRandomHelper;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Make alterations to the base map data passed in
|
* Make alterations to the base map data passed in
|
||||||
* Loot multipliers/waves/wave start times
|
* Loot multipliers/waves/wave start times
|
||||||
|
@ -14,13 +14,13 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { BonusSettings, IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PaymentService } from "@spt/services/PaymentService";
|
import { PaymentService } from "@spt/services/PaymentService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairService {
|
export declare class RepairService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -31,7 +31,7 @@ export declare class RepairService {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, traderHelper: TraderHelper, weightedRandomHelper: WeightedRandomHelper, paymentService: PaymentService, repairHelper: RepairHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Use trader to repair an items durability
|
* Use trader to repair an items durability
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderServicesService {
|
export declare class TraderServicesService {
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseServer: DatabaseServer, cloner: ICloner);
|
constructor(profileHelper: ProfileHelper, logger: ILogger, databaseService: DatabaseService, cloner: ICloner);
|
||||||
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
getTraderServices(sessionId: string, traderId: string): ITraderServiceModel[];
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,11 @@ import { HashUtil } from "@spt/utils/HashUtil";
|
|||||||
export declare class CustomItemService {
|
export declare class CustomItemService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected databaseServer: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected itemBaseClassService: ItemBaseClassService;
|
protected itemBaseClassService: ItemBaseClassService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseService: DatabaseService, itemHelper: ItemHelper, itemBaseClassService: ItemBaseClassService, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create a new item from a cloned item base
|
* Create a new item from a cloned item base
|
||||||
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
* WARNING - If no item id is supplied, an id will be generated, this id will be random every time you add an item and will not be the same on each subsequent server start
|
||||||
|
@ -6,7 +6,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt/models/eft/dialog/ISendMessageRequest";
|
||||||
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
import { IUserDialogInfo } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -19,7 +19,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
/**
|
/**
|
||||||
@ -34,7 +34,7 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
private static acceptableConfidence;
|
private static acceptableConfidence;
|
||||||
private static excludedPresetItems;
|
private static excludedPresetItems;
|
||||||
protected savedCommand: Map<string, SavedCommand>;
|
protected savedCommand: Map<string, SavedCommand>;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService, cloner: ICloner);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseService: DatabaseService, itemFilterService: ItemFilterService, cloner: ICloner);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
||||||
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
import { BaseClasses } from "@spt/models/enums/BaseClasses";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected lookup: Record<string, string[]>;
|
protected lookup: Record<string, string[]>;
|
||||||
protected defaultEquipmentPresets: Record<string, IPreset>;
|
protected defaultEquipmentPresets: Record<string, IPreset>;
|
||||||
protected defaultWeaponPresets: Record<string, IPreset>;
|
protected defaultWeaponPresets: Record<string, IPreset>;
|
||||||
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper, cloner: ICloner);
|
constructor(databaseService: DatabaseService, itemHelper: ItemHelper, cloner: ICloner);
|
||||||
hydratePresetStore(input: Record<string, string[]>): void;
|
hydratePresetStore(input: Record<string, string[]>): void;
|
||||||
/**
|
/**
|
||||||
* Get default weapon and equipment presets
|
* Get default weapon and equipment presets
|
||||||
|
@ -7,8 +7,8 @@ import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|||||||
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
import { IInventoryConfig } from "@spt/models/spt/config/IInventoryConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
import { ProfileSnapshotService } from "@spt/services/ProfileSnapshotService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
@ -21,14 +21,14 @@ export declare class ProfileHelper {
|
|||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileSnapshotService: ProfileSnapshotService;
|
protected profileSnapshotService: ProfileSnapshotService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseService: DatabaseService, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Remove/reset a completed quest condtion from players profile quest data
|
* Remove/reset a completed quest condtion from players profile quest data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -18,7 +18,7 @@ import { IQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -30,9 +30,9 @@ export declare class QuestHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
protected databaseService: DatabaseService;
|
||||||
protected questConditionHelper: QuestConditionHelper;
|
protected questConditionHelper: QuestConditionHelper;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected ragfairServerHelper: RagfairServerHelper;
|
protected ragfairServerHelper: RagfairServerHelper;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
@ -45,7 +45,7 @@ export declare class QuestHelper {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, databaseService: DatabaseService, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get status of a quest in player profile by its id
|
* Get status of a quest in player profile by its id
|
||||||
* @param pmcData Profile to search
|
* @param pmcData Profile to search
|
||||||
|
@ -19,8 +19,8 @@ import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -34,7 +34,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -55,7 +55,7 @@ export declare class RagfairOfferHelper {
|
|||||||
protected static goodSoldTemplate: string;
|
protected static goodSoldTemplate: string;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseService: DatabaseService, traderHelper: TraderHelper, saveServer: SaveServer, itemHelper: ItemHelper, botHelper: BotHelper, paymentHelper: PaymentHelper, presetHelper: PresetHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, ragfairServerHelper: RagfairServerHelper, ragfairSortHelper: RagfairSortHelper, ragfairHelper: RagfairHelper, ragfairOfferService: RagfairOfferService, ragfairRequiredItemsService: RagfairRequiredItemsService, localeService: LocaleService, localisationService: LocalisationService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
* Passthrough to ragfairOfferService.getOffers(), get flea offers a player should see
|
||||||
* @param searchRequest Data from client
|
* @param searchRequest Data from client
|
||||||
|
@ -3,17 +3,17 @@ import { ITemplateItem, Props } from "@spt/models/eft/common/tables/ITemplateIte
|
|||||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected cloner: ICloner;
|
protected cloner: ICloner;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Alter an items durability after a repair by trader/repair kit
|
* Alter an items durability after a repair by trader/repair kit
|
||||||
* @param itemToRepair item to update durability details
|
* @param itemToRepair item to update durability details
|
||||||
|
@ -9,7 +9,7 @@ import { ITrader, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
@ -21,7 +21,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected assortHelper: AssortHelper;
|
protected assortHelper: AssortHelper;
|
||||||
protected paymentHelper: PaymentHelper;
|
protected paymentHelper: PaymentHelper;
|
||||||
@ -37,7 +37,7 @@ export declare class TraderAssortHelper {
|
|||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
||||||
protected createdMergedQuestAssorts: boolean;
|
protected createdMergedQuestAssorts: boolean;
|
||||||
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseService: DatabaseService, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get a traders assorts
|
* Get a traders assorts
|
||||||
* Can be used for returning ragfair / fence assorts
|
* Can be used for returning ragfair / fence assorts
|
||||||
|
@ -10,7 +10,7 @@ import { Traders } from "@spt/models/enums/Traders";
|
|||||||
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
@ -18,7 +18,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class TraderHelper {
|
export declare class TraderHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -33,7 +33,7 @@ export declare class TraderHelper {
|
|||||||
protected highestTraderPriceItems?: Record<string, number>;
|
protected highestTraderPriceItems?: Record<string, number>;
|
||||||
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
/** Dictionary of item tpl and the highest trader buy back rouble price */
|
||||||
protected highestTraderBuyPriceItems?: Record<string, number>;
|
protected highestTraderBuyPriceItems?: Record<string, number>;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, profileHelper: ProfileHelper, handbookHelper: HandbookHelper, itemHelper: ItemHelper, playerService: PlayerService, localisationService: LocalisationService, fenceService: FenceService, timeUtil: TimeUtil, randomUtil: RandomUtil, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get a trader base object, update profile to reflect players current standing in profile
|
* Get a trader base object, update profile to reflect players current standing in profile
|
||||||
* when trader not found in profile
|
* when trader not found in profile
|
||||||
|
@ -802,7 +802,6 @@ export interface IMaxActiveOfferCount {
|
|||||||
from: number;
|
from: number;
|
||||||
to: number;
|
to: number;
|
||||||
count: number;
|
count: number;
|
||||||
countForSpecialEditions: number;
|
|
||||||
}
|
}
|
||||||
export interface IMaxSumForRarity {
|
export interface IMaxSumForRarity {
|
||||||
Common: IRarityMaxSum;
|
Common: IRarityMaxSum;
|
||||||
|
@ -196,18 +196,24 @@ export interface Props {
|
|||||||
export interface Exit {
|
export interface Exit {
|
||||||
/** % Chance out of 100 exit will appear in raid */
|
/** % Chance out of 100 exit will appear in raid */
|
||||||
Chance: number;
|
Chance: number;
|
||||||
|
ChancePVE: number;
|
||||||
Count: number;
|
Count: number;
|
||||||
|
CountPVE: number;
|
||||||
EntryPoints: string;
|
EntryPoints: string;
|
||||||
EventAvailable: boolean;
|
EventAvailable: boolean;
|
||||||
ExfiltrationTime: number;
|
ExfiltrationTime: number;
|
||||||
|
ExfiltrationTimePVE: number;
|
||||||
ExfiltrationType: string;
|
ExfiltrationType: string;
|
||||||
RequiredSlot?: string;
|
RequiredSlot?: string;
|
||||||
Id: string;
|
Id: string;
|
||||||
MaxTime: number;
|
MaxTime: number;
|
||||||
|
MaxTimePVE: number;
|
||||||
MinTime: number;
|
MinTime: number;
|
||||||
|
MinTimePVE: number;
|
||||||
Name: string;
|
Name: string;
|
||||||
PassageRequirement: string;
|
PassageRequirement: string;
|
||||||
PlayersCount: number;
|
PlayersCount: number;
|
||||||
|
PlayersCountPVE: number;
|
||||||
RequirementTip: string;
|
RequirementTip: string;
|
||||||
Side?: string;
|
Side?: string;
|
||||||
}
|
}
|
||||||
|
@ -18,10 +18,13 @@ export interface IRepeatableTemplates {
|
|||||||
export interface IPmcDataRepeatableQuest {
|
export interface IPmcDataRepeatableQuest {
|
||||||
id?: string;
|
id?: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
unavailableTime?: string;
|
||||||
activeQuests: IRepeatableQuest[];
|
activeQuests: IRepeatableQuest[];
|
||||||
inactiveQuests: IRepeatableQuest[];
|
inactiveQuests: IRepeatableQuest[];
|
||||||
endTime: number;
|
endTime: number;
|
||||||
changeRequirement: Record<string, IChangeRequirement>;
|
changeRequirement: Record<string, IChangeRequirement>;
|
||||||
|
freeChanges: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
}
|
}
|
||||||
export interface IChangeRequirement {
|
export interface IChangeRequirement {
|
||||||
changeCost: IChangeCost[];
|
changeCost: IChangeCost[];
|
||||||
|
@ -63,7 +63,7 @@ export interface Props {
|
|||||||
DiscardingBlock?: boolean;
|
DiscardingBlock?: boolean;
|
||||||
DropSoundType?: string;
|
DropSoundType?: string;
|
||||||
RagFairCommissionModifier?: number;
|
RagFairCommissionModifier?: number;
|
||||||
RarityPvE: string;
|
RarityPvE?: string;
|
||||||
IsAlwaysAvailableForInsurance?: boolean;
|
IsAlwaysAvailableForInsurance?: boolean;
|
||||||
DiscardLimit?: number;
|
DiscardLimit?: number;
|
||||||
MaxResource?: number;
|
MaxResource?: number;
|
||||||
@ -414,6 +414,12 @@ export interface Props {
|
|||||||
LayoutName?: string;
|
LayoutName?: string;
|
||||||
Lower75Prefab?: Prefab;
|
Lower75Prefab?: Prefab;
|
||||||
MaxUsages?: number;
|
MaxUsages?: number;
|
||||||
|
ScavKillExpPenalty?: number;
|
||||||
|
ScavKillExpPenaltyPVE?: number;
|
||||||
|
ScavKillStandingPenalty?: number;
|
||||||
|
ScavKillStandingPenaltyPVE?: number;
|
||||||
|
TradersDiscount?: number;
|
||||||
|
TradersDiscountPVE?: number;
|
||||||
}
|
}
|
||||||
export interface IHealthEffect {
|
export interface IHealthEffect {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -47,6 +47,8 @@ export interface IRepeatableQuestConfig {
|
|||||||
/** Item tplIds to ignore when generating rewards */
|
/** Item tplIds to ignore when generating rewards */
|
||||||
rewardBlacklist: string[];
|
rewardBlacklist: string[];
|
||||||
rewardAmmoStackMinSize: number;
|
rewardAmmoStackMinSize: number;
|
||||||
|
freeChangesAvailable: number;
|
||||||
|
freeChanges: number;
|
||||||
}
|
}
|
||||||
export interface IRewardScaling {
|
export interface IRewardScaling {
|
||||||
levels: number[];
|
levels: number[];
|
||||||
|
@ -4,7 +4,7 @@ import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
|||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
/** Store a mapping between weapons, their slots and the items that fit those slots */
|
||||||
@ -12,7 +12,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
@ -20,7 +20,7 @@ export declare class BotEquipmentModPoolService {
|
|||||||
protected gearModPool: Mods;
|
protected gearModPool: Mods;
|
||||||
protected weaponPoolGenerated: boolean;
|
protected weaponPoolGenerated: boolean;
|
||||||
protected armorPoolGenerated: boolean;
|
protected armorPoolGenerated: boolean;
|
||||||
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseServer: DatabaseServer, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, vfs: VFS, itemHelper: ItemHelper, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Store dictionary of mods for each item passed in
|
* Store dictionary of mods for each item passed in
|
||||||
* @param items items to find related mods and store in modPool
|
* @param items items to find related mods and store in modPool
|
||||||
|
@ -2,15 +2,15 @@ import { BossLocationSpawn, Wave } from "@spt/models/eft/common/ILocationBase";
|
|||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class CustomLocationWaveService {
|
export declare class CustomLocationWaveService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add a boss wave to a map
|
* Add a boss wave to a map
|
||||||
* @param locationId e.g. factory4_day, bigmap
|
* @param locationId e.g. factory4_day, bigmap
|
||||||
|
@ -13,8 +13,8 @@ import { ILostOnDeathConfig } from "@spt/models/spt/config/ILostOnDeathConfig";
|
|||||||
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
import { IInsuranceEquipmentPkg } from "@spt/models/spt/services/IInsuranceEquipmentPkg";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
|
||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
@ -24,7 +24,7 @@ import { RandomUtil } from "@spt/utils/RandomUtil";
|
|||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
export declare class InsuranceService {
|
export declare class InsuranceService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseService: DatabaseService;
|
||||||
protected secureContainerHelper: SecureContainerHelper;
|
protected secureContainerHelper: SecureContainerHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -42,7 +42,7 @@ export declare class InsuranceService {
|
|||||||
protected insured: Record<string, Record<string, Item[]>>;
|
protected insured: Record<string, Record<string, Item[]>>;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
protected lostOnDeathConfig: ILostOnDeathConfig;
|
protected lostOnDeathConfig: ILostOnDeathConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
constructor(logger: ILogger, databaseService: DatabaseService, secureContainerHelper: SecureContainerHelper, randomUtil: RandomUtil, itemHelper: ItemHelper, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, traderHelper: TraderHelper, dialogueHelper: DialogueHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, localeService: LocaleService, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Does player have insurance array
|
* Does player have insurance array
|
||||||
* @param sessionId Player id
|
* @param sessionId Player id
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user