From f623b1d52e6b7e163a8253da59f68ed3ab08e185 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 12 Mar 2024 15:45:48 +0000 Subject: [PATCH] Adjust trader reset times based on live testing --- project/assets/configs/trader.json | 19 ++++++++++++++----- project/src/helpers/TraderHelper.ts | 1 + .../src/models/spt/config/ITraderConfig.ts | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/project/assets/configs/trader.json b/project/assets/configs/trader.json index 5d5247f5..5c878609 100644 --- a/project/assets/configs/trader.json +++ b/project/assets/configs/trader.json @@ -1,38 +1,47 @@ { "updateTime": [ { + "_name": "prapor", "traderId": "54cb50c76803fa8b248b4571", "seconds": 3600 }, { + "_name": "therapist", "traderId": "54cb57776803fa99248b456e", - "seconds": 3600 + "seconds": 8040 }, { + "_name": "fence", "traderId": "579dc571d53a0658a154fbec", "seconds": 3600 }, { + "_name": "skier", "traderId": "58330581ace78e27b8b10cee", - "seconds": 3600 + "seconds": 6240 }, { + "_name": "peacekeeper", "traderId": "5935c25fb3acc3127c3d8cd9", "seconds": 3600 }, { + "_name": "mechanic", "traderId": "5a7c2eca46aef81a7ca2145d", - "seconds": 3600 + "seconds": 8160 }, { + "_name": "ragman", "traderId": "5ac3b934156ae10c4430e83c", - "seconds": 3600 + "seconds": 8220 }, { + "_name": "jaeger", "traderId": "5c0647fdd443bc2504c2d371", - "seconds": 3600 + "seconds": 5100 }, { + "_name": "btr", "traderId": "656f0f98d80a697f855d34b1", "seconds": 3600 }, diff --git a/project/src/helpers/TraderHelper.ts b/project/src/helpers/TraderHelper.ts index 4f463a9b..aa16193b 100644 --- a/project/src/helpers/TraderHelper.ts +++ b/project/src/helpers/TraderHelper.ts @@ -273,6 +273,7 @@ export class TraderHelper updateTime: this.traderConfig.updateTimeDefault, }), ); + this.traderConfig.updateTime.push( // create temporary entry to prevent logger spam { traderId: traderId, seconds: this.traderConfig.updateTimeDefault }, ); diff --git a/project/src/models/spt/config/ITraderConfig.ts b/project/src/models/spt/config/ITraderConfig.ts index 04c666c8..52b92476 100644 --- a/project/src/models/spt/config/ITraderConfig.ts +++ b/project/src/models/spt/config/ITraderConfig.ts @@ -19,6 +19,7 @@ export interface ITraderConfig extends IBaseConfig export interface UpdateTime { traderId: string; + /** Seconds between trader resets */ seconds: number; }