13.5 #15

Merged
chomp merged 19 commits from 13.5 into master 2023-10-08 17:07:30 -04:00
57 changed files with 38 additions and 152 deletions
Showing only changes of commit b0718124cf - Show all commits
TypeScript
10ScopesAndTypes/types
11BundleLoadingSample/types
12ClassExtensionOverride/types
13AddTrader/types
14AfterDBLoadHook/types
15HttpListenerExample/types
16ImporterUtil/types
17AsyncImporterWithDependency1/types
17AsyncImporterWithDependency2/types
18CustomItemService/types
1LogToConsole/types
2EditDatabase/types
3GetSptConfigFile/types
4UseACustomConfigFile/types
5ReplaceMethod/types
6ReferenceAnotherClass/types
7OnLoadHook/types
8OnUpdateHook/types
9RouterHooks/types

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings

@ -1,6 +1,6 @@
export declare class WeightedRandomHelper { export declare class WeightedRandomHelper {
/** /**
* USE getWeightedValue() WHERE POSSIBLE * @deprecated USE getWeightedValue() WHERE POSSIBLE
* Gets a tplId from a weighted dictionary * Gets a tplId from a weighted dictionary
* @param {tplId: weighting[]} itemArray * @param {tplId: weighting[]} itemArray
* @returns tplId * @returns tplId

@ -37,7 +37,7 @@ export declare class PaymentService {
* @param traderId Id of trader with assort * @param traderId Id of trader with assort
* @returns Handbook rouble price of item * @returns Handbook rouble price of item
*/ */
protected getTraderItemHandbookPrice(traderAssortId: string, traderId: string): number; protected getTraderItemHandbookPriceRouble(traderAssortId: string, traderId: string): number;
/** /**
* Receive money back after selling * Receive money back after selling
* @param {IPmcData} pmcData * @param {IPmcData} pmcData

@ -45,12 +45,6 @@ export declare class SeasonalEventService {
* @returns * @returns
*/ */
itemIsSeasonalRelated(itemTpl: string): boolean; itemIsSeasonalRelated(itemTpl: string): boolean;
/**
* Get an array of items that appear during a seasonal event
* returns multiple seasonal event items if they are both active
* @returns array of tpl strings
*/
getAllSeasonalEventItems(): string[];
/** /**
* Get an array of seasonal items that should be blocked as season is not currently active * Get an array of seasonal items that should be blocked as season is not currently active
* @returns Array of tpl strings * @returns Array of tpl strings