Compare commits
No commits in common. "d4fc5a2903ce43c382f66e8875941f056609e74c" and "59875bb7942a9cd62b201ea991247b348bbdfada" have entirely different histories.
d4fc5a2903
...
59875bb794
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -54,7 +54,7 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod
|
|||||||
this.traderHelper = new TraderHelper();
|
this.traderHelper = new TraderHelper();
|
||||||
this.fluentTraderAssortHeper = new FluentAssortConstructor(hashUtil, this.logger);
|
this.fluentTraderAssortHeper = new FluentAssortConstructor(hashUtil, this.logger);
|
||||||
this.traderHelper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg");
|
this.traderHelper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg");
|
||||||
this.traderHelper.setTraderUpdateTime(traderConfig, baseJson, 3600, 4000);
|
this.traderHelper.setTraderUpdateTime(traderConfig, baseJson, 3600);
|
||||||
|
|
||||||
// Add trader to trader enum
|
// Add trader to trader enum
|
||||||
Traders[baseJson._id] = baseJson._id;
|
Traders[baseJson._id] = baseJson._id;
|
||||||
|
@ -28,18 +28,14 @@ export class TraderHelper
|
|||||||
* Add record to trader config to set the refresh time of trader in seconds (default is 60 minutes)
|
* Add record to trader config to set the refresh time of trader in seconds (default is 60 minutes)
|
||||||
* @param traderConfig trader config to add our trader to
|
* @param traderConfig trader config to add our trader to
|
||||||
* @param baseJson json file for trader (db/base.json)
|
* @param baseJson json file for trader (db/base.json)
|
||||||
* @param refreshTimeSecondsMin How many seconds between trader stock refresh min time
|
* @param refreshTimeSeconds How many sections between trader stock refresh
|
||||||
* @param refreshTimeSecondsMax How many seconds between trader stock refresh max time
|
|
||||||
*/
|
*/
|
||||||
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSecondsMin: number, refreshTimeSecondsMax: number): void
|
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSeconds: number): void
|
||||||
{
|
{
|
||||||
// Add refresh time in seconds to config
|
// Add refresh time in seconds to config
|
||||||
const traderRefreshRecord: UpdateTime = {
|
const traderRefreshRecord: UpdateTime = {
|
||||||
traderId: baseJson._id,
|
traderId: baseJson._id,
|
||||||
seconds: {
|
seconds: refreshTimeSeconds };
|
||||||
min: refreshTimeSecondsMin,
|
|
||||||
max: refreshTimeSecondsMax
|
|
||||||
} };
|
|
||||||
|
|
||||||
traderConfig.updateTime.push(traderRefreshRecord);
|
traderConfig.updateTime.push(traderRefreshRecord);
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import "reflect-metadata";
|
|
||||||
import "source-map-support/register";
|
|
@ -7,7 +7,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
serverName: string;
|
serverName: string;
|
||||||
profileSaveIntervalSeconds: number;
|
profileSaveIntervalSeconds: number;
|
||||||
sptFriendNickname: string;
|
sptFriendNickname: string;
|
||||||
bsgLogging: IBsgLogging;
|
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
@ -16,22 +15,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string;
|
buildTime?: string;
|
||||||
}
|
}
|
||||||
export interface IBsgLogging {
|
|
||||||
/**
|
|
||||||
* verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals.
|
|
||||||
* complain to them about it! In all cases, better exceptions will be logged.
|
|
||||||
* WARNING: trace-info logging will quickly create log files in the megabytes.
|
|
||||||
* 0 - trace
|
|
||||||
* 1 - debug
|
|
||||||
* 2 - info
|
|
||||||
* 3 - warn
|
|
||||||
* 4 - error
|
|
||||||
* 5 - fatal
|
|
||||||
* 6 - off
|
|
||||||
*/
|
|
||||||
verbosity: number;
|
|
||||||
sendToServer: boolean;
|
|
||||||
}
|
|
||||||
export interface IRelease {
|
export interface IRelease {
|
||||||
betaDisclaimerText?: string;
|
betaDisclaimerText?: string;
|
||||||
betaDisclaimerAcceptText: string;
|
betaDisclaimerAcceptText: string;
|
||||||
|
@ -4,18 +4,12 @@ export interface IRagfairConfig extends IBaseConfig {
|
|||||||
kind: "aki-ragfair";
|
kind: "aki-ragfair";
|
||||||
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
/** How many seconds should pass before expired offers and procesed + player offers checked if sold */
|
||||||
runIntervalSeconds: number;
|
runIntervalSeconds: number;
|
||||||
/** Default values used to hydrate `runIntervalSeconds` with */
|
|
||||||
runIntervalValues: IRunIntervalValues;
|
|
||||||
/** Player listing settings */
|
/** Player listing settings */
|
||||||
sell: Sell;
|
sell: Sell;
|
||||||
/** Trader ids + should their assorts be listed on flea*/
|
/** Trader ids + should their assorts be listed on flea*/
|
||||||
traders: Record<string, boolean>;
|
traders: Record<string, boolean>;
|
||||||
dynamic: Dynamic;
|
dynamic: Dynamic;
|
||||||
}
|
}
|
||||||
export interface IRunIntervalValues {
|
|
||||||
inRaid: number;
|
|
||||||
outOfRaid: number;
|
|
||||||
}
|
|
||||||
export interface Sell {
|
export interface Sell {
|
||||||
/** Should a fee be deducted from player when liting an item for sale */
|
/** Should a fee be deducted from player when liting an item for sale */
|
||||||
fees: boolean;
|
fees: boolean;
|
||||||
|
@ -16,7 +16,7 @@ export interface ITraderConfig extends IBaseConfig {
|
|||||||
export interface UpdateTime {
|
export interface UpdateTime {
|
||||||
traderId: string;
|
traderId: string;
|
||||||
/** Seconds between trader resets */
|
/** Seconds between trader resets */
|
||||||
seconds: MinMax;
|
seconds: number;
|
||||||
}
|
}
|
||||||
export interface FenceConfig {
|
export interface FenceConfig {
|
||||||
discountOptions: DiscountOptions;
|
discountOptions: DiscountOptions;
|
||||||
|
@ -73,7 +73,7 @@ export declare class RagfairPriceService implements OnLoad {
|
|||||||
*/
|
*/
|
||||||
getStaticPriceForItem(itemTpl: string): number;
|
getStaticPriceForItem(itemTpl: string): number;
|
||||||
/**
|
/**
|
||||||
* Get prices for all items on flea, prioritize handbook prices first, use prices from prices.json if missing
|
* Get prices for all items on flea, priorities dynamic prices from prices.json, use handbook prices if missing
|
||||||
* @returns Dictionary of item tpls and rouble cost
|
* @returns Dictionary of item tpls and rouble cost
|
||||||
*/
|
*/
|
||||||
getAllFleaPrices(): Record<string, number>;
|
getAllFleaPrices(): Record<string, number>;
|
||||||
|
@ -4,7 +4,6 @@ import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
* Help with storing limited item purchases from traders in profile to persist them over server restarts
|
||||||
@ -12,12 +11,11 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class TraderPurchasePersisterService {
|
export declare class TraderPurchasePersisterService {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, randomUtil: RandomUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, profileHelper: ProfileHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get the purchases made from a trader for this profile before the last trader reset
|
* Get the purchases made from a trader for this profile before the last trader reset
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -21,8 +21,4 @@ export declare class ClientLogCallbacks {
|
|||||||
* Handle /singleplayer/release
|
* Handle /singleplayer/release
|
||||||
*/
|
*/
|
||||||
releaseNotes(): string;
|
releaseNotes(): string;
|
||||||
/**
|
|
||||||
* Handle /singleplayer/enableBSGlogging
|
|
||||||
*/
|
|
||||||
bsgLogging(): string;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { IAirdropConfig } from "@spt-aki/models/spt/config/IAirdropConfig";
|
|||||||
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
import { IBTRConfig } from "@spt-aki/models/spt/config/IBTRConfig";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { IRagfairConfig } from "@spt-aki/models/spt/config/IRagfairConfig";
|
|
||||||
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
import { ITraderConfig } from "@spt-aki/models/spt/config/ITraderConfig";
|
||||||
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderServiceModel";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -59,7 +58,6 @@ export declare class InraidController {
|
|||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
|
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