Updated to 3.9.4 types (#35)
Co-authored-by: Dev <dev@dev.sp-tarkov.com> Reviewed-on: #35
This commit is contained in:
parent
2168e4dc2a
commit
ef5b17cb8a
@ -20,8 +20,8 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService";
|
import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotController {
|
export declare class BotController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -9,8 +9,8 @@ import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
|||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BuildController {
|
export declare class BuildController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -34,10 +34,10 @@ import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
|||||||
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class GameController {
|
export declare class GameController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -12,8 +12,8 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
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 { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HealthController {
|
export declare class HealthController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
@ -35,11 +35,11 @@ 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";
|
||||||
import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HideoutController {
|
export declare class HideoutController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -13,6 +13,7 @@ import { ISaveProgressRequestData } from "@spt/models/eft/inRaid/ISaveProgressRe
|
|||||||
import { PlayerRaidEndState } from "@spt/models/enums/PlayerRaidEndState";
|
import { PlayerRaidEndState } from "@spt/models/enums/PlayerRaidEndState";
|
||||||
import { IAirdropConfig } from "@spt/models/spt/config/IAirdropConfig";
|
import { IAirdropConfig } from "@spt/models/spt/config/IAirdropConfig";
|
||||||
import { IBTRConfig } from "@spt/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt/models/spt/config/IBTRConfig";
|
||||||
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { IHideoutConfig } from "@spt/models/spt/config/IHideoutConfig";
|
import { IHideoutConfig } from "@spt/models/spt/config/IHideoutConfig";
|
||||||
import { IInRaidConfig } from "@spt/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
@ -31,7 +32,6 @@ import { PmcChatResponseService } from "@spt/services/PmcChatResponseService";
|
|||||||
import { TraderServicesService } from "@spt/services/TraderServicesService";
|
import { TraderServicesService } from "@spt/services/TraderServicesService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
|
||||||
/**
|
/**
|
||||||
* Logic for handling In Raid callbacks
|
* Logic for handling In Raid callbacks
|
||||||
*/
|
*/
|
||||||
|
@ -21,11 +21,11 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { PaymentService } from "@spt/services/PaymentService";
|
import { PaymentService } from "@spt/services/PaymentService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InsuranceController {
|
export declare class InsuranceController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -37,10 +37,10 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MapMarkerService } from "@spt/services/MapMarkerService";
|
import { MapMarkerService } from "@spt/services/MapMarkerService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InventoryController {
|
export declare class InventoryController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -16,10 +16,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class LocationController {
|
export declare class LocationController {
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -26,9 +26,9 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ProfileController {
|
export declare class ProfileController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -23,9 +23,9 @@ 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";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class QuestController {
|
export declare class QuestController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -18,11 +18,11 @@ 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 { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestController {
|
export declare class RepeatableQuestController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
|
import { RagfairOfferHelper } from "@spt/helpers/RagfairOfferHelper";
|
||||||
import { TradeHelper } from "@spt/helpers/TradeHelper";
|
import { TradeHelper } from "@spt/helpers/TradeHelper";
|
||||||
import { TraderHelper } from "@spt/helpers/TraderHelper";
|
import { TraderHelper } from "@spt/helpers/TraderHelper";
|
||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
@ -35,6 +36,7 @@ export declare class TradeController {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected ragfairOfferHelper: RagfairOfferHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected ragfairServer: RagfairServer;
|
protected ragfairServer: RagfairServer;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
@ -44,7 +46,7 @@ export declare class TradeController {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, databaseService: DatabaseService, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, ragfairOfferHelper: RagfairOfferHelper, traderHelper: TraderHelper, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/** Handle TradingConfirm event */
|
/** Handle TradingConfirm event */
|
||||||
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/** Handle RagFairBuyOffer event */
|
/** Handle RagFairBuyOffer event */
|
||||||
@ -67,10 +69,17 @@ export declare class TradeController {
|
|||||||
* @param output Output to send back to client
|
* @param output Output to send back to client
|
||||||
*/
|
*/
|
||||||
protected buyPmcItemFromRagfair(sessionId: string, pmcData: IPmcData, fleaOffer: IRagfairOffer, requestOffer: IOfferRequest, output: IItemEventRouterResponse): void;
|
protected buyPmcItemFromRagfair(sessionId: string, pmcData: IPmcData, fleaOffer: IRagfairOffer, requestOffer: IOfferRequest, output: IItemEventRouterResponse): void;
|
||||||
|
/**
|
||||||
|
* Is the provided offerid and ownerid from a player made offer
|
||||||
|
* @param offerId Id of the offer
|
||||||
|
* @param offerOwnerId Owner id
|
||||||
|
* @returns true if offer was made by a player
|
||||||
|
*/
|
||||||
|
protected isPlayerOffer(offerId: string, offerOwnerId: string): boolean;
|
||||||
/**
|
/**
|
||||||
* Does Player have necessary trader loyalty to purchase flea offer
|
* Does Player have necessary trader loyalty to purchase flea offer
|
||||||
* @param sellerIsTrader is seller trader
|
* @param sellerIsTrader is seller trader
|
||||||
* @param fleaOffer FLea offer being bought
|
* @param fleaOffer Flea offer being bought
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
* @returns True if player can buy offer
|
* @returns True if player can buy offer
|
||||||
*/
|
*/
|
||||||
|
@ -10,8 +10,8 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderController {
|
export declare class TraderController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -25,9 +25,9 @@ import { BotWeaponModLimitService } from "@spt/services/BotWeaponModLimitService
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotEquipmentModGenerator {
|
export declare class BotEquipmentModGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
@ -65,7 +65,7 @@ export declare class BotEquipmentModGenerator {
|
|||||||
* @param settings Bot equipment generation settings
|
* @param settings Bot equipment generation settings
|
||||||
* @param modSlot Armor slot being filtered
|
* @param modSlot Armor slot being filtered
|
||||||
* @param existingPlateTplPool Plates tpls to choose from
|
* @param existingPlateTplPool Plates tpls to choose from
|
||||||
* @param armorItem
|
* @param armorItem The armor items db template
|
||||||
* @returns Array of plate tpls to choose from
|
* @returns Array of plate tpls to choose from
|
||||||
*/
|
*/
|
||||||
protected filterPlateModsForSlotByLevel(settings: IGenerateEquipmentProperties, modSlot: string, existingPlateTplPool: string[], armorItem: ITemplateItem): IFilterPlateModsForSlotByLevelResult;
|
protected filterPlateModsForSlotByLevel(settings: IGenerateEquipmentProperties, modSlot: string, existingPlateTplPool: string[], armorItem: ITemplateItem): IFilterPlateModsForSlotByLevelResult;
|
||||||
|
@ -16,10 +16,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotGenerator {
|
export declare class BotGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -4,12 +4,14 @@ import { IBotBase } from "@spt/models/eft/common/tables/IBotBase";
|
|||||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class BotLevelGenerator {
|
export declare class BotLevelGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService);
|
protected mathUtil: MathUtil;
|
||||||
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, mathUtil: MathUtil);
|
||||||
/**
|
/**
|
||||||
* Return a randomised bot level and exp value
|
* Return a randomised bot level and exp value
|
||||||
* @param levelDetails Min and max of level for bot
|
* @param levelDetails Min and max of level for bot
|
||||||
@ -18,6 +20,7 @@ export declare class BotLevelGenerator {
|
|||||||
* @returns IRandomisedBotLevelResult object
|
* @returns IRandomisedBotLevelResult object
|
||||||
*/
|
*/
|
||||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
|
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||||
/**
|
/**
|
||||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
|
@ -18,9 +18,9 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotLootGenerator {
|
export declare class BotLootGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -18,9 +18,9 @@ import { BotWeaponModLimitService } from "@spt/services/BotWeaponModLimitService
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RepairService } from "@spt/services/RepairService";
|
import { RepairService } from "@spt/services/RepairService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotWeaponGenerator {
|
export declare class BotWeaponGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -12,10 +12,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export interface IContainerItem {
|
export interface IContainerItem {
|
||||||
items: Item[];
|
items: Item[];
|
||||||
width: number;
|
width: number;
|
||||||
|
@ -14,9 +14,9 @@ import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
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 { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class PlayerScavGenerator {
|
export declare class PlayerScavGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -19,10 +19,10 @@ import { FenceService } from "@spt/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RagfairOfferGenerator {
|
export declare class RagfairOfferGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -11,10 +11,10 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestGenerator {
|
export declare class RepeatableQuestGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -12,10 +12,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestRewardGenerator {
|
export declare class RepeatableQuestRewardGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -5,8 +5,8 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotDifficultyHelper {
|
export declare class BotDifficultyHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -10,8 +10,8 @@ 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";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class GiveSptCommand implements ISptCommand {
|
export declare class GiveSptCommand implements ISptCommand {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
@ -5,8 +5,8 @@ import { IHealthConfig } from "@spt/models/spt/config/IHealthConfig";
|
|||||||
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 { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HealthHelper {
|
export declare class HealthHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -18,10 +18,10 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HideoutHelper {
|
export declare class HideoutHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -15,9 +15,9 @@ import { SaveServer } from "@spt/servers/SaveServer";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InRaidHelper {
|
export declare class InRaidHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -23,9 +23,9 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
||||||
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 { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InventoryHelper {
|
export declare class InventoryHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -11,13 +11,13 @@ import { ItemBaseClassService } from "@spt/services/ItemBaseClassService";
|
|||||||
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 { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { CompareUtil } from "@spt/utils/CompareUtil";
|
import { CompareUtil } from "@spt/utils/CompareUtil";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ItemHelper {
|
export declare class ItemHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -11,10 +11,10 @@ import { SaveServer } from "@spt/servers/SaveServer";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
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 { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
import { Watermark } from "@spt/utils/Watermark";
|
import { Watermark } from "@spt/utils/Watermark";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ProfileHelper {
|
export declare class ProfileHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -23,9 +23,9 @@ 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";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class QuestHelper {
|
export declare class QuestHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -151,7 +151,7 @@ export declare class RagfairOfferHelper {
|
|||||||
* @param boughtAmount Amount item was purchased for
|
* @param boughtAmount Amount item was purchased for
|
||||||
* @returns IItemEventRouterResponse
|
* @returns IItemEventRouterResponse
|
||||||
*/
|
*/
|
||||||
protected completeOffer(sessionID: string, offer: IRagfairOffer, boughtAmount: number): IItemEventRouterResponse;
|
completeOffer(sessionID: string, offer: IRagfairOffer, boughtAmount: number): IItemEventRouterResponse;
|
||||||
/**
|
/**
|
||||||
* Get a localised message for when players offer has sold on flea
|
* Get a localised message for when players offer has sold on flea
|
||||||
* @param itemTpl Item sold
|
* @param itemTpl Item sold
|
||||||
|
@ -12,9 +12,9 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
/**
|
/**
|
||||||
* Helper class for common ragfair server actions
|
* Helper class for common ragfair server actions
|
||||||
*/
|
*/
|
||||||
|
@ -4,8 +4,8 @@ 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 { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt/models/spt/config/IQuestConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ProbabilityObject, ProbabilityObjectArray } from "@spt/utils/RandomUtil";
|
import { ProbabilityObject, ProbabilityObjectArray } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestHelper {
|
export declare class RepeatableQuestHelper {
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
@ -17,8 +17,8 @@ import { FenceService } from "@spt/services/FenceService";
|
|||||||
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 { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TradeHelper {
|
export declare class TradeHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
@ -14,9 +14,9 @@ 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";
|
||||||
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderAssortHelper {
|
export declare class TraderAssortHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
|
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
|
||||||
import { BundleHashCacheService } from "@spt/services/cache/BundleHashCacheService";
|
import { BundleHashCacheService } from "@spt/services/cache/BundleHashCacheService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BundleInfo {
|
export declare class BundleInfo {
|
||||||
modpath: string;
|
modpath: string;
|
||||||
filename: string;
|
filename: string;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
|
||||||
import { OnLoad } from "@spt/di/OnLoad";
|
import { OnLoad } from "@spt/di/OnLoad";
|
||||||
import { BundleLoader } from "@spt/loaders/BundleLoader";
|
import { BundleLoader } from "@spt/loaders/BundleLoader";
|
||||||
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
||||||
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class PostDBModLoader implements OnLoad {
|
export declare class PostDBModLoader implements OnLoad {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected bundleLoader: BundleLoader;
|
protected bundleLoader: BundleLoader;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
|
||||||
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
||||||
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
||||||
import { IModLoader } from "@spt/models/spt/mod/IModLoader";
|
import { IModLoader } from "@spt/models/spt/mod/IModLoader";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class PostSptModLoader implements IModLoader {
|
export declare class PostSptModLoader implements IModLoader {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected preSptModLoader: PreSptModLoader;
|
protected preSptModLoader: PreSptModLoader;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
|
||||||
import { ModLoadOrder } from "@spt/loaders/ModLoadOrder";
|
import { ModLoadOrder } from "@spt/loaders/ModLoadOrder";
|
||||||
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
import { ModTypeCheck } from "@spt/loaders/ModTypeCheck";
|
||||||
import { ModDetails } from "@spt/models/eft/profile/ISptProfile";
|
import { ModDetails } from "@spt/models/eft/profile/ISptProfile";
|
||||||
@ -11,6 +10,7 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { ModCompilerService } from "@spt/services/ModCompilerService";
|
import { ModCompilerService } from "@spt/services/ModCompilerService";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class PreSptModLoader implements IModLoader {
|
export declare class PreSptModLoader implements IModLoader {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
|
@ -1,2 +1 @@
|
|||||||
export interface IEmptyRequestData {
|
export type IEmptyRequestData = {};
|
||||||
}
|
|
||||||
|
@ -373,8 +373,7 @@ export interface LastCompleted {
|
|||||||
export interface Notes {
|
export interface Notes {
|
||||||
Notes: Note[];
|
Notes: Note[];
|
||||||
}
|
}
|
||||||
export interface CarExtractCounts {
|
export type CarExtractCounts = {};
|
||||||
}
|
|
||||||
export declare enum SurvivorClass {
|
export declare enum SurvivorClass {
|
||||||
UNKNOWN = 0,
|
UNKNOWN = 0,
|
||||||
NEUTRALIZER = 1,
|
NEUTRALIZER = 1,
|
||||||
|
@ -2,8 +2,7 @@ export interface ILocationsBase {
|
|||||||
locations: Locations;
|
locations: Locations;
|
||||||
paths: Path[];
|
paths: Path[];
|
||||||
}
|
}
|
||||||
export interface Locations {
|
export type Locations = {};
|
||||||
}
|
|
||||||
export interface Path {
|
export interface Path {
|
||||||
Source: string;
|
Source: string;
|
||||||
Destination: string;
|
Destination: string;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
import { Dialogue, IUserBuilds } from "@spt/models/eft/profile/ISptProfile";
|
import { Dialogue, IUserBuilds } from "@spt/models/eft/profile/ISptProfile";
|
||||||
export interface IProfileTemplates {
|
export interface IProfileTemplates {
|
||||||
"Standard": IProfileSides;
|
Standard: IProfileSides;
|
||||||
"Left Behind": IProfileSides;
|
"Left Behind": IProfileSides;
|
||||||
"Prepare To Escape": IProfileSides;
|
"Prepare To Escape": IProfileSides;
|
||||||
"Edge Of Darkness": IProfileSides;
|
"Edge Of Darkness": IProfileSides;
|
||||||
"Unheard": IProfileSides;
|
Unheard: IProfileSides;
|
||||||
"Tournament": IProfileSides;
|
Tournament: IProfileSides;
|
||||||
"SPT Developer": IProfileSides;
|
"SPT Developer": IProfileSides;
|
||||||
"SPT Easy start": IProfileSides;
|
"SPT Easy start": IProfileSides;
|
||||||
"SPT Zero to hero": IProfileSides;
|
"SPT Zero to hero": IProfileSides;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Item } from "@spt/models/eft/common/tables/IItem";
|
import { Item } from "@spt/models/eft/common/tables/IItem";
|
||||||
|
import { DogtagExchangeSide } from "@spt/models/enums/DogtagExchangeSide";
|
||||||
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt/models/spt/services/ITraderServiceModel";
|
||||||
export interface ITrader {
|
export interface ITrader {
|
||||||
assort?: ITraderAssort;
|
assort?: ITraderAssort;
|
||||||
@ -78,6 +79,8 @@ export interface IBarterScheme {
|
|||||||
_tpl: string;
|
_tpl: string;
|
||||||
onlyFunctional?: boolean;
|
onlyFunctional?: boolean;
|
||||||
sptQuestLocked?: boolean;
|
sptQuestLocked?: boolean;
|
||||||
|
level?: number;
|
||||||
|
side?: DogtagExchangeSide;
|
||||||
}
|
}
|
||||||
export interface ISuit {
|
export interface ISuit {
|
||||||
_id: string;
|
_id: string;
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { Effect } from "@spt/models/eft/health/Effect";
|
import { Effect } from "@spt/models/eft/health/Effect";
|
||||||
import { BodyPart } from "@spt/models/eft/health/IOffraidHealRequestData";
|
import { BodyPart } from "@spt/models/eft/health/IOffraidHealRequestData";
|
||||||
|
import { HideoutAreas } from "@spt/models/enums/HideoutAreas";
|
||||||
|
import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
||||||
|
import { Traders } from "@spt/models/enums/Traders";
|
||||||
import { QteActivityType } from "@spt/models/enums/hideout/QteActivityType";
|
import { QteActivityType } from "@spt/models/enums/hideout/QteActivityType";
|
||||||
import { QteEffectType } from "@spt/models/enums/hideout/QteEffectType";
|
import { QteEffectType } from "@spt/models/enums/hideout/QteEffectType";
|
||||||
import { QteResultType } from "@spt/models/enums/hideout/QteResultType";
|
import { QteResultType } from "@spt/models/enums/hideout/QteResultType";
|
||||||
import { QteRewardType } from "@spt/models/enums/hideout/QteRewardType";
|
import { QteRewardType } from "@spt/models/enums/hideout/QteRewardType";
|
||||||
import { QteType } from "@spt/models/enums/hideout/QteType";
|
import { QteType } from "@spt/models/enums/hideout/QteType";
|
||||||
import { RequirementType } from "@spt/models/enums/hideout/RequirementType";
|
import { RequirementType } from "@spt/models/enums/hideout/RequirementType";
|
||||||
import { HideoutAreas } from "@spt/models/enums/HideoutAreas";
|
|
||||||
import { SkillTypes } from "@spt/models/enums/SkillTypes";
|
|
||||||
import { Traders } from "@spt/models/enums/Traders";
|
|
||||||
export interface IQteData {
|
export interface IQteData {
|
||||||
id: string;
|
id: string;
|
||||||
type: QteActivityType;
|
type: QteActivityType;
|
||||||
|
@ -15,7 +15,5 @@ export interface Items {
|
|||||||
change: any[];
|
change: any[];
|
||||||
del: any[];
|
del: any[];
|
||||||
}
|
}
|
||||||
export interface Production {
|
export type Production = {};
|
||||||
}
|
export type TraderRelations = {};
|
||||||
export interface TraderRelations {
|
|
||||||
}
|
|
||||||
|
@ -209,12 +209,9 @@ export interface Effects {
|
|||||||
LeftLeg: LeftLeg;
|
LeftLeg: LeftLeg;
|
||||||
RightLeg: RightLeg;
|
RightLeg: RightLeg;
|
||||||
}
|
}
|
||||||
export interface Head {
|
export type Head = {};
|
||||||
}
|
export type Chest = {};
|
||||||
export interface Chest {
|
export type Stomach = {};
|
||||||
}
|
|
||||||
export interface Stomach {
|
|
||||||
}
|
|
||||||
export interface LeftArm {
|
export interface LeftArm {
|
||||||
Fracture?: number;
|
Fracture?: number;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Item } from "@spt/models/eft/common/tables/IItem";
|
import { Item } from "@spt/models/eft/common/tables/IItem";
|
||||||
|
import { DogtagExchangeSide } from "@spt/models/enums/DogtagExchangeSide";
|
||||||
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
import { MemberCategory } from "@spt/models/enums/MemberCategory";
|
||||||
export interface IRagfairOffer {
|
export interface IRagfairOffer {
|
||||||
sellResult?: SellResult[];
|
sellResult?: SellResult[];
|
||||||
@ -28,6 +29,8 @@ export interface OfferRequirement {
|
|||||||
_tpl: string;
|
_tpl: string;
|
||||||
count: number;
|
count: number;
|
||||||
onlyFunctional: boolean;
|
onlyFunctional: boolean;
|
||||||
|
level?: number;
|
||||||
|
side?: DogtagExchangeSide;
|
||||||
}
|
}
|
||||||
export interface IRagfairOfferUser {
|
export interface IRagfairOfferUser {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -29,5 +29,4 @@ export declare enum OfferOwnerType {
|
|||||||
TRADEROWNERTYPE = 1,
|
TRADEROWNERTYPE = 1,
|
||||||
PLAYEROWNERTYPE = 2
|
PLAYEROWNERTYPE = 2
|
||||||
}
|
}
|
||||||
export interface BuildItems {
|
export type BuildItems = {};
|
||||||
}
|
|
||||||
|
@ -107,6 +107,6 @@ export declare enum BaseClasses {
|
|||||||
RECEIVER = "55818a304bdc2db5418b457d",
|
RECEIVER = "55818a304bdc2db5418b457d",
|
||||||
BARREL = "555ef6e44bdc2de9068b457e",
|
BARREL = "555ef6e44bdc2de9068b457e",
|
||||||
CHARGING_HANDLE = "55818a6f4bdc2db9688b456b",
|
CHARGING_HANDLE = "55818a6f4bdc2db9688b456b",
|
||||||
COMB_MUZZLE_DEVICE = "550aa4dd4bdc2dc9348b4569 ",
|
COMB_MUZZLE_DEVICE = "550aa4dd4bdc2dc9348b4569",
|
||||||
HIDEOUT_AREA_CONTAINER = "63da6da4784a55176c018dba"
|
HIDEOUT_AREA_CONTAINER = "63da6da4784a55176c018dba"
|
||||||
}
|
}
|
||||||
|
5
TypeScript/10ScopesAndTypes/types/models/enums/DogtagExchangeSide.d.ts
vendored
Normal file
5
TypeScript/10ScopesAndTypes/types/models/enums/DogtagExchangeSide.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export declare enum DogtagExchangeSide {
|
||||||
|
USEC = "Usec",
|
||||||
|
BEAR = "Bear",
|
||||||
|
ANY = "Any"
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ExhaustableArray<T> implements IExhaustableArray<T> {
|
export declare class ExhaustableArray<T> implements IExhaustableArray<T> {
|
||||||
private itemPool;
|
private itemPool;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
|
@ -3,8 +3,8 @@ import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
|||||||
import { IHideoutImprovement, Productive, TraderInfo } from "@spt/models/eft/common/tables/IBotBase";
|
import { IHideoutImprovement, Productive, TraderInfo } from "@spt/models/eft/common/tables/IBotBase";
|
||||||
import { TraderData } from "@spt/models/eft/itemEvent/IItemEventRouterBase";
|
import { TraderData } from "@spt/models/eft/itemEvent/IItemEventRouterBase";
|
||||||
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "@spt/models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class EventOutputHolder {
|
export declare class EventOutputHolder {
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
@ -12,7 +12,7 @@ export declare class EventOutputHolder {
|
|||||||
/**
|
/**
|
||||||
* What has client been informed of this game session
|
* What has client been informed of this game session
|
||||||
* Key = sessionId, then second key is prod id
|
* Key = sessionId, then second key is prod id
|
||||||
*/
|
*/
|
||||||
protected clientActiveSessionStorage: Record<string, Record<string, {
|
protected clientActiveSessionStorage: Record<string, Record<string, {
|
||||||
clientInformed: boolean;
|
clientInformed: boolean;
|
||||||
}>>;
|
}>>;
|
||||||
|
@ -6,8 +6,8 @@ import { IHttpConfig } from "@spt/models/spt/config/IHttpConfig";
|
|||||||
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 { DatabaseServer } from "@spt/servers/DatabaseServer";
|
||||||
import { IHttpListener } from "@spt/servers/http/IHttpListener";
|
|
||||||
import { WebSocketServer } from "@spt/servers/WebSocketServer";
|
import { WebSocketServer } from "@spt/servers/WebSocketServer";
|
||||||
|
import { IHttpListener } from "@spt/servers/http/IHttpListener";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
export declare class HttpServer {
|
export declare class HttpServer {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
import http, { IncomingMessage } from "node:http";
|
import http, { IncomingMessage } from "node:http";
|
||||||
import { WebSocket, Server } from "ws";
|
|
||||||
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
|
import { HttpServerHelper } from "@spt/helpers/HttpServerHelper";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { IWebSocketConnectionHandler } from "@spt/servers/ws/IWebSocketConnectionHandler";
|
import { IWebSocketConnectionHandler } from "@spt/servers/ws/IWebSocketConnectionHandler";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { Server, WebSocket } from "ws";
|
||||||
export declare class WebSocketServer {
|
export declare class WebSocketServer {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
import { IncomingMessage } from "http";
|
import { IncomingMessage } from "http";
|
||||||
import { WebSocket } from "ws";
|
|
||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
import { IWsNotificationEvent } from "@spt/models/eft/ws/IWsNotificationEvent";
|
import { IWsNotificationEvent } from "@spt/models/eft/ws/IWsNotificationEvent";
|
||||||
import { IHttpConfig } from "@spt/models/spt/config/IHttpConfig";
|
import { IHttpConfig } from "@spt/models/spt/config/IHttpConfig";
|
||||||
@ -11,6 +10,7 @@ import { IWebSocketConnectionHandler } from "@spt/servers/ws/IWebSocketConnectio
|
|||||||
import { ISptWebSocketMessageHandler } from "@spt/servers/ws/message/ISptWebSocketMessageHandler";
|
import { ISptWebSocketMessageHandler } from "@spt/servers/ws/message/ISptWebSocketMessageHandler";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
|
import { WebSocket } from "ws";
|
||||||
export declare class SptWebSocketConnectionHandler implements IWebSocketConnectionHandler {
|
export declare class SptWebSocketConnectionHandler implements IWebSocketConnectionHandler {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { RawData, WebSocket } from "ws";
|
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ISptWebSocketMessageHandler } from "@spt/servers/ws/message/ISptWebSocketMessageHandler";
|
import { ISptWebSocketMessageHandler } from "@spt/servers/ws/message/ISptWebSocketMessageHandler";
|
||||||
|
import { RawData, WebSocket } from "ws";
|
||||||
export declare class DefaultSptWebSocketMessageHandler implements ISptWebSocketMessageHandler {
|
export declare class DefaultSptWebSocketMessageHandler implements ISptWebSocketMessageHandler {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
constructor(logger: ILogger);
|
constructor(logger: ILogger);
|
||||||
|
@ -13,9 +13,9 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
/**
|
/**
|
||||||
* Handle actions surrounding Fence
|
* Handle actions surrounding Fence
|
||||||
* e.g. generating or refreshing assorts / get next refresh time
|
* e.g. generating or refreshing assorts / get next refresh time
|
||||||
|
@ -18,10 +18,10 @@ 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";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InsuranceService {
|
export declare class InsuranceService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { I18n } from "i18n";
|
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
||||||
import { LocaleService } from "@spt/services/LocaleService";
|
import { LocaleService } from "@spt/services/LocaleService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { I18n } from "i18n";
|
||||||
/**
|
/**
|
||||||
* Handles translating server text into different langauges
|
* Handles translating server text into different langauges
|
||||||
*/
|
*/
|
||||||
|
@ -8,7 +8,7 @@ import { Bonus, HideoutSlot } from "@spt/models/eft/common/tables/IBotBase";
|
|||||||
import { IPmcDataRepeatableQuest, IRepeatableQuest } from "@spt/models/eft/common/tables/IRepeatableQuests";
|
import { IPmcDataRepeatableQuest, IRepeatableQuest } from "@spt/models/eft/common/tables/IRepeatableQuests";
|
||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { StageBonus } from "@spt/models/eft/hideout/IHideoutArea";
|
import { StageBonus } from "@spt/models/eft/hideout/IHideoutArea";
|
||||||
import { ISptProfile, IEquipmentBuild, IMagazineBuild, IWeaponBuild } from "@spt/models/eft/profile/ISptProfile";
|
import { IEquipmentBuild, IMagazineBuild, ISptProfile, IWeaponBuild } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { HideoutAreas } from "@spt/models/enums/HideoutAreas";
|
import { HideoutAreas } from "@spt/models/enums/HideoutAreas";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
import { IRagfairConfig } from "@spt/models/spt/config/IRagfairConfig";
|
||||||
@ -16,11 +16,11 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
import { Watermark } from "@spt/utils/Watermark";
|
import { Watermark } from "@spt/utils/Watermark";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ProfileFixerService {
|
export declare class ProfileFixerService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
@ -73,6 +73,7 @@ export declare class ProfileFixerService {
|
|||||||
*/
|
*/
|
||||||
protected removeDanglingTaskConditionCounters(pmcProfile: IPmcData): void;
|
protected removeDanglingTaskConditionCounters(pmcProfile: IPmcData): void;
|
||||||
protected getActiveRepeatableQuests(repeatableQuests: IPmcDataRepeatableQuest[]): IRepeatableQuest[];
|
protected getActiveRepeatableQuests(repeatableQuests: IPmcDataRepeatableQuest[]): IRepeatableQuest[];
|
||||||
|
protected fixNullRagfairRatings(pmcProfile: IPmcData): void;
|
||||||
protected fixNullTraderSalesSums(pmcProfile: IPmcData): void;
|
protected fixNullTraderSalesSums(pmcProfile: IPmcData): void;
|
||||||
protected addMissingBonusesProperty(pmcProfile: IPmcData): void;
|
protected addMissingBonusesProperty(pmcProfile: IPmcData): void;
|
||||||
/**
|
/**
|
||||||
|
@ -10,10 +10,10 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
import { RagfairOfferHolder } from "@spt/utils/RagfairOfferHolder";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RagfairOfferService {
|
export declare class RagfairOfferService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -4,8 +4,8 @@ import { CreateItemResult, LocaleDetails, NewItemDetails, NewItemFromCloneDetail
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemBaseClassService } from "@spt/services/ItemBaseClassService";
|
import { ItemBaseClassService } from "@spt/services/ItemBaseClassService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class CustomItemService {
|
export declare class CustomItemService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
|
||||||
import { RouteAction } from "@spt/di/Router";
|
import { RouteAction } from "@spt/di/Router";
|
||||||
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class DynamicRouterModService {
|
export declare class DynamicRouterModService {
|
||||||
private container;
|
private container;
|
||||||
constructor(container: DependencyContainer);
|
constructor(container: DependencyContainer);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
|
||||||
import { RouteAction } from "@spt/di/Router";
|
import { RouteAction } from "@spt/di/Router";
|
||||||
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class StaticRouterModService {
|
export declare class StaticRouterModService {
|
||||||
protected container: DependencyContainer;
|
protected container: DependencyContainer;
|
||||||
constructor(container: DependencyContainer);
|
constructor(container: DependencyContainer);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IParseOptions, IStringifyOptions, Reviver } from "jsonc/lib/interfaces";
|
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { VFS } from "@spt/utils/VFS";
|
import { VFS } from "@spt/utils/VFS";
|
||||||
|
import { IParseOptions, IStringifyOptions, Reviver } from "jsonc/lib/interfaces";
|
||||||
export declare class JsonUtil {
|
export declare class JsonUtil {
|
||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
/**
|
/**
|
||||||
* Array of ProbabilityObjectArray which allow to randomly draw of the contained objects
|
* Array of ProbabilityObjectArray which allow to randomly draw of the contained objects
|
||||||
* based on the relative probability of each of its elements.
|
* based on the relative probability of each of its elements.
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import winston from "winston";
|
|
||||||
import { Daum } from "@spt/models/eft/itemEvent/IItemEventRouterRequest";
|
import { Daum } from "@spt/models/eft/itemEvent/IItemEventRouterRequest";
|
||||||
import { LogBackgroundColor } from "@spt/models/spt/logging/LogBackgroundColor";
|
import { LogBackgroundColor } from "@spt/models/spt/logging/LogBackgroundColor";
|
||||||
import { LogTextColor } from "@spt/models/spt/logging/LogTextColor";
|
import { LogTextColor } from "@spt/models/spt/logging/LogTextColor";
|
||||||
import { SptLogger } from "@spt/models/spt/logging/SptLogger";
|
import { SptLogger } from "@spt/models/spt/logging/SptLogger";
|
||||||
import { IAsyncQueue } from "@spt/models/spt/utils/IAsyncQueue";
|
import { IAsyncQueue } from "@spt/models/spt/utils/IAsyncQueue";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
|
import winston from "winston";
|
||||||
export declare abstract class AbstractWinstonLogger implements ILogger {
|
export declare abstract class AbstractWinstonLogger implements ILogger {
|
||||||
protected asyncQueue: IAsyncQueue;
|
protected asyncQueue: IAsyncQueue;
|
||||||
protected showDebugInConsole: boolean;
|
protected showDebugInConsole: boolean;
|
||||||
|
@ -20,8 +20,8 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService";
|
import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotController {
|
export declare class BotController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -9,8 +9,8 @@ import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
|||||||
import { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BuildController {
|
export declare class BuildController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -34,10 +34,10 @@ import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
|||||||
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class GameController {
|
export declare class GameController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -12,8 +12,8 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt/routers/EventOutputHolder";
|
||||||
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 { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HealthController {
|
export declare class HealthController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
@ -35,11 +35,11 @@ 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";
|
||||||
import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
import { ProfileActivityService } from "@spt/services/ProfileActivityService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HideoutController {
|
export declare class HideoutController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -13,6 +13,7 @@ import { ISaveProgressRequestData } from "@spt/models/eft/inRaid/ISaveProgressRe
|
|||||||
import { PlayerRaidEndState } from "@spt/models/enums/PlayerRaidEndState";
|
import { PlayerRaidEndState } from "@spt/models/enums/PlayerRaidEndState";
|
||||||
import { IAirdropConfig } from "@spt/models/spt/config/IAirdropConfig";
|
import { IAirdropConfig } from "@spt/models/spt/config/IAirdropConfig";
|
||||||
import { IBTRConfig } from "@spt/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt/models/spt/config/IBTRConfig";
|
||||||
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { IHideoutConfig } from "@spt/models/spt/config/IHideoutConfig";
|
import { IHideoutConfig } from "@spt/models/spt/config/IHideoutConfig";
|
||||||
import { IInRaidConfig } from "@spt/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
|
||||||
@ -31,7 +32,6 @@ import { PmcChatResponseService } from "@spt/services/PmcChatResponseService";
|
|||||||
import { TraderServicesService } from "@spt/services/TraderServicesService";
|
import { TraderServicesService } from "@spt/services/TraderServicesService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
|
||||||
/**
|
/**
|
||||||
* Logic for handling In Raid callbacks
|
* Logic for handling In Raid callbacks
|
||||||
*/
|
*/
|
||||||
|
@ -21,11 +21,11 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { PaymentService } from "@spt/services/PaymentService";
|
import { PaymentService } from "@spt/services/PaymentService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InsuranceController {
|
export declare class InsuranceController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -37,10 +37,10 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MapMarkerService } from "@spt/services/MapMarkerService";
|
import { MapMarkerService } from "@spt/services/MapMarkerService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class InventoryController {
|
export declare class InventoryController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -16,10 +16,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt/services/RaidTimeAdjustmentService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class LocationController {
|
export declare class LocationController {
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -26,9 +26,9 @@ import { LocalisationService } from "@spt/services/LocalisationService";
|
|||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class ProfileController {
|
export declare class ProfileController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -23,9 +23,9 @@ 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";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class QuestController {
|
export declare class QuestController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -18,11 +18,11 @@ 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 { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestController {
|
export declare class RepeatableQuestController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
import { ItemHelper } from "@spt/helpers/ItemHelper";
|
||||||
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||||
|
import { RagfairOfferHelper } from "@spt/helpers/RagfairOfferHelper";
|
||||||
import { TradeHelper } from "@spt/helpers/TradeHelper";
|
import { TradeHelper } from "@spt/helpers/TradeHelper";
|
||||||
import { TraderHelper } from "@spt/helpers/TraderHelper";
|
import { TraderHelper } from "@spt/helpers/TraderHelper";
|
||||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
@ -35,6 +36,7 @@ export declare class TradeController {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected ragfairOfferHelper: RagfairOfferHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected ragfairServer: RagfairServer;
|
protected ragfairServer: RagfairServer;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
@ -44,7 +46,7 @@ export declare class TradeController {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, databaseService: DatabaseService, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseService: DatabaseService, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, ragfairOfferHelper: RagfairOfferHelper, traderHelper: TraderHelper, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/** Handle TradingConfirm event */
|
/** Handle TradingConfirm event */
|
||||||
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/** Handle RagFairBuyOffer event */
|
/** Handle RagFairBuyOffer event */
|
||||||
@ -67,10 +69,17 @@ export declare class TradeController {
|
|||||||
* @param output Output to send back to client
|
* @param output Output to send back to client
|
||||||
*/
|
*/
|
||||||
protected buyPmcItemFromRagfair(sessionId: string, pmcData: IPmcData, fleaOffer: IRagfairOffer, requestOffer: IOfferRequest, output: IItemEventRouterResponse): void;
|
protected buyPmcItemFromRagfair(sessionId: string, pmcData: IPmcData, fleaOffer: IRagfairOffer, requestOffer: IOfferRequest, output: IItemEventRouterResponse): void;
|
||||||
|
/**
|
||||||
|
* Is the provided offerid and ownerid from a player made offer
|
||||||
|
* @param offerId Id of the offer
|
||||||
|
* @param offerOwnerId Owner id
|
||||||
|
* @returns true if offer was made by a player
|
||||||
|
*/
|
||||||
|
protected isPlayerOffer(offerId: string, offerOwnerId: string): boolean;
|
||||||
/**
|
/**
|
||||||
* Does Player have necessary trader loyalty to purchase flea offer
|
* Does Player have necessary trader loyalty to purchase flea offer
|
||||||
* @param sellerIsTrader is seller trader
|
* @param sellerIsTrader is seller trader
|
||||||
* @param fleaOffer FLea offer being bought
|
* @param fleaOffer Flea offer being bought
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
* @returns True if player can buy offer
|
* @returns True if player can buy offer
|
||||||
*/
|
*/
|
||||||
|
@ -10,8 +10,8 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { FenceService } from "@spt/services/FenceService";
|
import { FenceService } from "@spt/services/FenceService";
|
||||||
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
import { TraderAssortService } from "@spt/services/TraderAssortService";
|
||||||
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt/services/TraderPurchasePersisterService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class TraderController {
|
export declare class TraderController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -25,9 +25,9 @@ import { BotWeaponModLimitService } from "@spt/services/BotWeaponModLimitService
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotEquipmentModGenerator {
|
export declare class BotEquipmentModGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
@ -65,7 +65,7 @@ export declare class BotEquipmentModGenerator {
|
|||||||
* @param settings Bot equipment generation settings
|
* @param settings Bot equipment generation settings
|
||||||
* @param modSlot Armor slot being filtered
|
* @param modSlot Armor slot being filtered
|
||||||
* @param existingPlateTplPool Plates tpls to choose from
|
* @param existingPlateTplPool Plates tpls to choose from
|
||||||
* @param armorItem
|
* @param armorItem The armor items db template
|
||||||
* @returns Array of plate tpls to choose from
|
* @returns Array of plate tpls to choose from
|
||||||
*/
|
*/
|
||||||
protected filterPlateModsForSlotByLevel(settings: IGenerateEquipmentProperties, modSlot: string, existingPlateTplPool: string[], armorItem: ITemplateItem): IFilterPlateModsForSlotByLevelResult;
|
protected filterPlateModsForSlotByLevel(settings: IGenerateEquipmentProperties, modSlot: string, existingPlateTplPool: string[], armorItem: ITemplateItem): IFilterPlateModsForSlotByLevelResult;
|
||||||
|
@ -16,10 +16,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotGenerator {
|
export declare class BotGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -4,12 +4,14 @@ import { IBotBase } from "@spt/models/eft/common/tables/IBotBase";
|
|||||||
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
import { BotGenerationDetails } from "@spt/models/spt/bots/BotGenerationDetails";
|
||||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
export declare class BotLevelGenerator {
|
export declare class BotLevelGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService);
|
protected mathUtil: MathUtil;
|
||||||
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, mathUtil: MathUtil);
|
||||||
/**
|
/**
|
||||||
* Return a randomised bot level and exp value
|
* Return a randomised bot level and exp value
|
||||||
* @param levelDetails Min and max of level for bot
|
* @param levelDetails Min and max of level for bot
|
||||||
@ -18,6 +20,7 @@ export declare class BotLevelGenerator {
|
|||||||
* @returns IRandomisedBotLevelResult object
|
* @returns IRandomisedBotLevelResult object
|
||||||
*/
|
*/
|
||||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
|
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||||
/**
|
/**
|
||||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
|
@ -18,9 +18,9 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotLootGenerator {
|
export declare class BotLootGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -18,9 +18,9 @@ import { BotWeaponModLimitService } from "@spt/services/BotWeaponModLimitService
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RepairService } from "@spt/services/RepairService";
|
import { RepairService } from "@spt/services/RepairService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotWeaponGenerator {
|
export declare class BotWeaponGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -12,10 +12,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export interface IContainerItem {
|
export interface IContainerItem {
|
||||||
items: Item[];
|
items: Item[];
|
||||||
width: number;
|
width: number;
|
||||||
|
@ -14,9 +14,9 @@ import { BotLootCacheService } from "@spt/services/BotLootCacheService";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
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 { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class PlayerScavGenerator {
|
export declare class PlayerScavGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -19,10 +19,10 @@ import { FenceService } from "@spt/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt/services/RagfairOfferService";
|
||||||
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt/services/RagfairPriceService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RagfairOfferGenerator {
|
export declare class RagfairOfferGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
@ -11,10 +11,10 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestGenerator {
|
export declare class RepeatableQuestGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -12,10 +12,10 @@ import { DatabaseService } from "@spt/services/DatabaseService";
|
|||||||
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
import { ItemFilterService } from "@spt/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { MathUtil } from "@spt/utils/MathUtil";
|
import { MathUtil } from "@spt/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt/utils/ObjectId";
|
import { ObjectId } from "@spt/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class RepeatableQuestRewardGenerator {
|
export declare class RepeatableQuestRewardGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
@ -5,8 +5,8 @@ import { ILogger } from "@spt/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class BotDifficultyHelper {
|
export declare class BotDifficultyHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseService: DatabaseService;
|
protected databaseService: DatabaseService;
|
||||||
|
@ -10,8 +10,8 @@ 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";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class GiveSptCommand implements ISptCommand {
|
export declare class GiveSptCommand implements ISptCommand {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
@ -5,8 +5,8 @@ import { IHealthConfig } from "@spt/models/spt/config/IHealthConfig";
|
|||||||
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 { SaveServer } from "@spt/servers/SaveServer";
|
import { SaveServer } from "@spt/servers/SaveServer";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HealthHelper {
|
export declare class HealthHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -18,10 +18,10 @@ import { ConfigServer } from "@spt/servers/ConfigServer";
|
|||||||
import { DatabaseService } from "@spt/services/DatabaseService";
|
import { DatabaseService } from "@spt/services/DatabaseService";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt/services/PlayerService";
|
import { PlayerService } from "@spt/services/PlayerService";
|
||||||
import { ICloner } from "@spt/utils/cloners/ICloner";
|
|
||||||
import { HashUtil } from "@spt/utils/HashUtil";
|
import { HashUtil } from "@spt/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
||||||
import { TimeUtil } from "@spt/utils/TimeUtil";
|
import { TimeUtil } from "@spt/utils/TimeUtil";
|
||||||
|
import { ICloner } from "@spt/utils/cloners/ICloner";
|
||||||
export declare class HideoutHelper {
|
export declare class HideoutHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
|
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