VforValens
49455958e9
v1.6.0 Changelog * Compatible with SPT-Aki v3.2.2 * Updated Readme with new features. * Combined armorPlusArmorVests into removeGearRestrictions so that it now removes all gear restrictions. Located in config/armor.json * Adjusted PMC Difficulty Weights to be 0/40/30/30 by default. Located in config/bots.json * Removed Remove Backpack Filter. Located in config/items.json * Added Remove Backpack, Container, In Raid Items, and Secured Container Restrictions. Located in config/items.json * Added the ability to adjust the time it takes to examine items. Located in config/items.json/examineTime * Added the ability to enable/disable updateTime for traders. Located in config/traders.json If you have custom traders they will need to be added to the updateTime array (Simply copy/paste one of the lines including the {} and add in the traderId for your custom trader.) * Fixed logic for Fence blacklist because JS sucks /s. Located in config/traders.json * Cleaned up armor.ts code and moved a lot of the armor materials to their own individual functions. * Fixed types in items.ts, and cleaned up a lot of functions, and general code.
31 lines
544 B
TypeScript
31 lines
544 B
TypeScript
export interface TradersConfig
|
|
{
|
|
updateTime: UpdateTime;
|
|
minDurabilityForSale: number;
|
|
traderPriceMultipler: number;
|
|
fence: FenceConfig;
|
|
}
|
|
|
|
export interface UpdateTime
|
|
{
|
|
enabled: boolean;
|
|
updateTime: UpdateTime1[];
|
|
}
|
|
|
|
export interface UpdateTime1
|
|
{
|
|
traderId: string;
|
|
seconds: number;
|
|
}
|
|
|
|
|
|
export interface FenceConfig
|
|
{
|
|
partialRefreshTimeSeconds: number;
|
|
partialRefreshChangePercent: number;
|
|
assortSize: number;
|
|
maxPresetsPercent: number;
|
|
presetPriceMult: number;
|
|
blacklist: string[];
|
|
}
|