From d19770e83fb7ccf95a4eb0ce8e083e0201030040 Mon Sep 17 00:00:00 2001 From: clodan Date: Sun, 12 May 2024 10:33:50 +0100 Subject: [PATCH] Cleaned up JsonUtil unnecessary dependencies on other classes --- project/src/callbacks/RagfairCallbacks.ts | 2 -- project/src/controllers/BotController.ts | 3 --- project/src/controllers/BuildController.ts | 2 -- project/src/controllers/GameController.ts | 1 - project/src/controllers/HealthController.ts | 2 -- project/src/controllers/HideoutController.ts | 2 -- project/src/controllers/InraidController.ts | 2 -- project/src/controllers/InsuranceController.ts | 4 +--- project/src/controllers/InventoryController.ts | 2 -- project/src/controllers/LocationController.ts | 2 -- project/src/controllers/QuestController.ts | 2 -- project/src/controllers/RepeatableQuestController.ts | 2 -- project/src/controllers/TradeController.ts | 2 -- project/src/controllers/TraderController.ts | 2 -- project/src/generators/BotEquipmentModGenerator.ts | 2 -- project/src/generators/BotGenerator.ts | 2 -- project/src/generators/BotLootGenerator.ts | 2 -- project/src/generators/BotWeaponGenerator.ts | 2 -- project/src/generators/FenceBaseAssortGenerator.ts | 2 -- project/src/generators/LocationGenerator.ts | 2 -- project/src/generators/LootGenerator.ts | 2 -- project/src/generators/PlayerScavGenerator.ts | 2 -- project/src/generators/RagfairAssortGenerator.ts | 2 -- project/src/generators/RagfairOfferGenerator.ts | 2 -- project/src/generators/RepeatableQuestGenerator.ts | 2 -- project/src/generators/RepeatableQuestRewardGenerator.ts | 2 -- project/src/generators/ScavCaseRewardGenerator.ts | 2 -- project/src/helpers/BotDifficultyHelper.ts | 2 -- project/src/helpers/BotHelper.ts | 2 -- .../Commando/SptCommands/GiveCommand/GiveSptCommand.ts | 2 -- .../Commando/SptCommands/ProfileCommand/ProfileSptCommand.ts | 2 -- .../Commando/SptCommands/TraderCommand/TraderSptCommand.ts | 2 -- project/src/helpers/HandbookHelper.ts | 2 -- project/src/helpers/HealthHelper.ts | 2 -- project/src/helpers/HideoutHelper.ts | 2 -- project/src/helpers/InRaidHelper.ts | 2 -- project/src/helpers/InventoryHelper.ts | 3 +-- project/src/helpers/ItemHelper.ts | 3 ++- project/src/helpers/PresetHelper.ts | 2 -- project/src/helpers/ProfileHelper.ts | 2 -- project/src/helpers/QuestHelper.ts | 2 -- project/src/helpers/RagfairHelper.ts | 2 -- project/src/helpers/RagfairServerHelper.ts | 2 -- project/src/helpers/RepairHelper.ts | 3 --- project/src/helpers/RepeatableQuestHelper.ts | 2 -- project/src/helpers/TradeHelper.ts | 2 -- project/src/helpers/TraderAssortHelper.ts | 2 -- project/src/routers/EventOutputHolder.ts | 2 -- project/src/routers/ItemEventRouter.ts | 2 -- project/src/services/BotGenerationCacheService.ts | 2 -- project/src/services/BotLootCacheService.ts | 2 -- project/src/services/CustomLocationWaveService.ts | 2 -- project/src/services/FenceService.ts | 2 -- project/src/services/InsuranceService.ts | 4 +--- project/src/services/OpenZoneService.ts | 2 -- project/src/services/ProfileSnapshotService.ts | 3 +-- project/src/services/TraderServicesService.ts | 2 -- project/src/services/mod/CustomItemService.ts | 2 -- project/src/utils/RandomUtil.ts | 1 - 59 files changed, 6 insertions(+), 119 deletions(-) diff --git a/project/src/callbacks/RagfairCallbacks.ts b/project/src/callbacks/RagfairCallbacks.ts index 406d6af1..6b6e4c82 100644 --- a/project/src/callbacks/RagfairCallbacks.ts +++ b/project/src/callbacks/RagfairCallbacks.ts @@ -24,7 +24,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { RagfairServer } from "@spt-aki/servers/RagfairServer"; import { RagfairTaxService } from "@spt-aki/services/RagfairTaxService"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; /** * Handle ragfair related callback events @@ -36,7 +35,6 @@ export class RagfairCallbacks implements OnLoad, OnUpdate constructor( @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RagfairServer") protected ragfairServer: RagfairServer, @inject("RagfairController") protected ragfairController: RagfairController, @inject("RagfairTaxService") protected ragfairTaxService: RagfairTaxService, diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index 050bda12..bc15b3fc 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -16,7 +16,6 @@ import { WildSpawnTypeNumber } from "@spt-aki/models/enums/WildSpawnTypeNumber"; import { BotGenerationDetails } from "@spt-aki/models/spt/bots/BotGenerationDetails"; import { IBotConfig } from "@spt-aki/models/spt/config/IBotConfig"; import { IPmcConfig } from "@spt-aki/models/spt/config/IPmcConfig"; -import { IRaidChanges } from "@spt-aki/models/spt/location/IRaidChanges"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; @@ -25,7 +24,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -48,7 +46,6 @@ export class BotController @inject("ConfigServer") protected configServer: ConfigServer, @inject("ApplicationContext") protected applicationContext: ApplicationContext, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RecursiveCloner") protected cloner: ICloner, ) { diff --git a/project/src/controllers/BuildController.ts b/project/src/controllers/BuildController.ts index d9c9880e..442cc8e4 100644 --- a/project/src/controllers/BuildController.ts +++ b/project/src/controllers/BuildController.ts @@ -12,7 +12,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { SaveServer } from "@spt-aki/servers/SaveServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class BuildController @@ -21,7 +20,6 @@ export class BuildController @inject("WinstonLogger") protected logger: ILogger, @inject("HashUtil") protected hashUtil: HashUtil, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 913d6b66..bf4379b4 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -65,7 +65,6 @@ export class GameController constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("DatabaseServer") protected databaseServer: DatabaseServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("PreAkiModLoader") protected preAkiModLoader: PreAkiModLoader, diff --git a/project/src/controllers/HealthController.ts b/project/src/controllers/HealthController.ts index c7bcd011..392489ba 100644 --- a/project/src/controllers/HealthController.ts +++ b/project/src/controllers/HealthController.ts @@ -17,14 +17,12 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { PaymentService } from "@spt-aki/services/PaymentService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class HealthController { constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("PaymentService") protected paymentService: PaymentService, diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 1a9997eb..5e5fc6d7 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -51,7 +51,6 @@ import { ProfileActivityService } from "@spt-aki/services/ProfileActivityService import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -82,7 +81,6 @@ export class HideoutController @inject("LocalisationService") protected localisationService: LocalisationService, @inject("ProfileActivityService") protected profileActivityService: ProfileActivityService, @inject("ConfigServer") protected configServer: ConfigServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("FenceService") protected fenceService: FenceService, @inject("RecursiveCloner") protected cloner: ICloner, ) diff --git a/project/src/controllers/InraidController.ts b/project/src/controllers/InraidController.ts index 7a8d9713..587cc18b 100644 --- a/project/src/controllers/InraidController.ts +++ b/project/src/controllers/InraidController.ts @@ -37,7 +37,6 @@ import { MailSendService } from "@spt-aki/services/MailSendService"; import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService"; import { PmcChatResponseService } from "@spt-aki/services/PmcChatResponseService"; import { TraderServicesService } from "@spt-aki/services/TraderServicesService"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -58,7 +57,6 @@ export class InraidController constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("SaveServer") protected saveServer: SaveServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("PmcChatResponseService") protected pmcChatResponseService: PmcChatResponseService, diff --git a/project/src/controllers/InsuranceController.ts b/project/src/controllers/InsuranceController.ts index 00e4e807..aa3426c3 100644 --- a/project/src/controllers/InsuranceController.ts +++ b/project/src/controllers/InsuranceController.ts @@ -24,12 +24,11 @@ import { InsuranceService } from "@spt-aki/services/InsuranceService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { PaymentService } from "@spt-aki/services/PaymentService"; import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService"; +import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { ProbabilityObject, ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; -import { ICloner } from "@spt-aki/utils/cloners/ICloner"; @injectable() export class InsuranceController @@ -41,7 +40,6 @@ export class InsuranceController @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("MathUtil") protected mathUtil: MathUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, @inject("TimeUtil") protected timeUtil: TimeUtil, diff --git a/project/src/controllers/InventoryController.ts b/project/src/controllers/InventoryController.ts index b2e5abbf..ca944493 100644 --- a/project/src/controllers/InventoryController.ts +++ b/project/src/controllers/InventoryController.ts @@ -44,7 +44,6 @@ import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -53,7 +52,6 @@ export class InventoryController constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, diff --git a/project/src/controllers/LocationController.ts b/project/src/controllers/LocationController.ts index 47174cd8..57a85c01 100644 --- a/project/src/controllers/LocationController.ts +++ b/project/src/controllers/LocationController.ts @@ -25,7 +25,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { RaidTimeAdjustmentService } from "@spt-aki/services/RaidTimeAdjustmentService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -36,7 +35,6 @@ export class LocationController protected locationConfig: ILocationConfig; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("WeightedRandomHelper") protected weightedRandomHelper: WeightedRandomHelper, diff --git a/project/src/controllers/QuestController.ts b/project/src/controllers/QuestController.ts index ea369b9b..ebe61769 100644 --- a/project/src/controllers/QuestController.ts +++ b/project/src/controllers/QuestController.ts @@ -31,7 +31,6 @@ import { PlayerService } from "@spt-aki/services/PlayerService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -42,7 +41,6 @@ export class QuestController constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("TimeUtil") protected timeUtil: TimeUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HttpResponseUtil") protected httpResponseUtil: HttpResponseUtil, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, @inject("DatabaseServer") protected databaseServer: DatabaseServer, diff --git a/project/src/controllers/RepeatableQuestController.ts b/project/src/controllers/RepeatableQuestController.ts index c48b9acf..6b9cebac 100644 --- a/project/src/controllers/RepeatableQuestController.ts +++ b/project/src/controllers/RepeatableQuestController.ts @@ -28,7 +28,6 @@ import { PaymentService } from "@spt-aki/services/PaymentService"; import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { ObjectId } from "@spt-aki/utils/ObjectId"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -44,7 +43,6 @@ export class RepeatableQuestController @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("ProfileFixerService") protected profileFixerService: ProfileFixerService, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, diff --git a/project/src/controllers/TradeController.ts b/project/src/controllers/TradeController.ts index 82b9e76f..e2991f82 100644 --- a/project/src/controllers/TradeController.ts +++ b/project/src/controllers/TradeController.ts @@ -33,7 +33,6 @@ import { MailSendService } from "@spt-aki/services/MailSendService"; import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -56,7 +55,6 @@ export class TradeController @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("TraderHelper") protected traderHelper: TraderHelper, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RagfairServer") protected ragfairServer: RagfairServer, @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/controllers/TraderController.ts b/project/src/controllers/TraderController.ts index bba6fad1..318a14ae 100644 --- a/project/src/controllers/TraderController.ts +++ b/project/src/controllers/TraderController.ts @@ -14,7 +14,6 @@ import { FenceService } from "@spt-aki/services/FenceService"; import { TraderAssortService } from "@spt-aki/services/TraderAssortService"; import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -33,7 +32,6 @@ export class TraderController @inject("TraderPurchasePersisterService") protected traderPurchasePersisterService: TraderPurchasePersisterService, @inject("FenceService") protected fenceService: FenceService, @inject("FenceBaseAssortGenerator") protected fenceBaseAssortGenerator: FenceBaseAssortGenerator, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ConfigServer") protected configServer: ConfigServer, @inject("RecursiveCloner") protected cloner: ICloner, ) diff --git a/project/src/generators/BotEquipmentModGenerator.ts b/project/src/generators/BotEquipmentModGenerator.ts index 108ddf9a..fc08419c 100644 --- a/project/src/generators/BotEquipmentModGenerator.ts +++ b/project/src/generators/BotEquipmentModGenerator.ts @@ -27,7 +27,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { IGenerateEquipmentProperties } from "./BotInventoryGenerator"; import { IFilterPlateModsForSlotByLevelResult, Result } from "./IFilterPlateModsForSlotByLevelResult"; @@ -39,7 +38,6 @@ export class BotEquipmentModGenerator constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("ProbabilityHelper") protected probabilityHelper: ProbabilityHelper, diff --git a/project/src/generators/BotGenerator.ts b/project/src/generators/BotGenerator.ts index 1cb79753..24dead97 100644 --- a/project/src/generators/BotGenerator.ts +++ b/project/src/generators/BotGenerator.ts @@ -31,7 +31,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -46,7 +45,6 @@ export class BotGenerator @inject("HashUtil") protected hashUtil: HashUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("BotInventoryGenerator") protected botInventoryGenerator: BotInventoryGenerator, diff --git a/project/src/generators/BotLootGenerator.ts b/project/src/generators/BotLootGenerator.ts index 1c1413e6..f9523e20 100644 --- a/project/src/generators/BotLootGenerator.ts +++ b/project/src/generators/BotLootGenerator.ts @@ -25,7 +25,6 @@ import { BotLootCacheService } from "@spt-aki/services/BotLootCacheService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -39,7 +38,6 @@ export class BotLootGenerator @inject("HashUtil") protected hashUtil: HashUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("InventoryHelper") protected inventoryHelper: InventoryHelper, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("HandbookHelper") protected handbookHelper: HandbookHelper, diff --git a/project/src/generators/BotWeaponGenerator.ts b/project/src/generators/BotWeaponGenerator.ts index 63d11a81..122f637b 100644 --- a/project/src/generators/BotWeaponGenerator.ts +++ b/project/src/generators/BotWeaponGenerator.ts @@ -25,7 +25,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { RepairService } from "@spt-aki/services/RepairService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -37,7 +36,6 @@ export class BotWeaponGenerator protected repairConfig: IRepairConfig; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("WinstonLogger") protected logger: ILogger, @inject("HashUtil") protected hashUtil: HashUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, diff --git a/project/src/generators/FenceBaseAssortGenerator.ts b/project/src/generators/FenceBaseAssortGenerator.ts index 3ccacdb9..d589d390 100644 --- a/project/src/generators/FenceBaseAssortGenerator.ts +++ b/project/src/generators/FenceBaseAssortGenerator.ts @@ -17,7 +17,6 @@ import { FenceService } from "@spt-aki/services/FenceService"; import { ItemFilterService } from "@spt-aki/services/ItemFilterService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class FenceBaseAssortGenerator @@ -27,7 +26,6 @@ export class FenceBaseAssortGenerator constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("HandbookHelper") protected handbookHelper: HandbookHelper, @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index 45809ac2..3c5bfe9e 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -24,7 +24,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { ObjectId } from "@spt-aki/utils/ObjectId"; import { ProbabilityObject, ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil"; @@ -52,7 +51,6 @@ export class LocationGenerator constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("DatabaseServer") protected databaseServer: DatabaseServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ObjectId") protected objectId: ObjectId, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/project/src/generators/LootGenerator.ts b/project/src/generators/LootGenerator.ts index df60b3de..7aef296b 100644 --- a/project/src/generators/LootGenerator.ts +++ b/project/src/generators/LootGenerator.ts @@ -17,7 +17,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; type ItemLimit = { current: number, max: number }; @@ -30,7 +29,6 @@ export class LootGenerator @inject("HashUtil") protected hashUtil: HashUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("PresetHelper") protected presetHelper: PresetHelper, @inject("InventoryHelper") protected inventoryHelper: InventoryHelper, diff --git a/project/src/generators/PlayerScavGenerator.ts b/project/src/generators/PlayerScavGenerator.ts index 13ff9278..6f4f31e8 100644 --- a/project/src/generators/PlayerScavGenerator.ts +++ b/project/src/generators/PlayerScavGenerator.ts @@ -24,7 +24,6 @@ import { FenceService } from "@spt-aki/services/FenceService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -42,7 +41,6 @@ export class PlayerScavGenerator @inject("SaveServer") protected saveServer: SaveServer, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("BotHelper") protected botHelper: BotHelper, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("FenceService") protected fenceService: FenceService, @inject("BotLootCacheService") protected botLootCacheService: BotLootCacheService, @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/generators/RagfairAssortGenerator.ts b/project/src/generators/RagfairAssortGenerator.ts index 2039c1c7..4b9c0f9d 100644 --- a/project/src/generators/RagfairAssortGenerator.ts +++ b/project/src/generators/RagfairAssortGenerator.ts @@ -10,7 +10,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class RagfairAssortGenerator @@ -29,7 +28,6 @@ export class RagfairAssortGenerator ]; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("PresetHelper") protected presetHelper: PresetHelper, diff --git a/project/src/generators/RagfairOfferGenerator.ts b/project/src/generators/RagfairOfferGenerator.ts index 4f65e1e6..e79e5644 100644 --- a/project/src/generators/RagfairOfferGenerator.ts +++ b/project/src/generators/RagfairOfferGenerator.ts @@ -29,7 +29,6 @@ import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService"; import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -44,7 +43,6 @@ export class RagfairOfferGenerator constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, diff --git a/project/src/generators/RepeatableQuestGenerator.ts b/project/src/generators/RepeatableQuestGenerator.ts index fc953298..3c168b61 100644 --- a/project/src/generators/RepeatableQuestGenerator.ts +++ b/project/src/generators/RepeatableQuestGenerator.ts @@ -21,7 +21,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { ObjectId } from "@spt-aki/utils/ObjectId"; import { ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil"; @@ -35,7 +34,6 @@ export class RepeatableQuestGenerator @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("MathUtil") protected mathUtil: MathUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/generators/RepeatableQuestRewardGenerator.ts b/project/src/generators/RepeatableQuestRewardGenerator.ts index fcdf5de8..68789853 100644 --- a/project/src/generators/RepeatableQuestRewardGenerator.ts +++ b/project/src/generators/RepeatableQuestRewardGenerator.ts @@ -20,7 +20,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { ObjectId } from "@spt-aki/utils/ObjectId"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @@ -34,7 +33,6 @@ export class RepeatableQuestRewardGenerator @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("MathUtil") protected mathUtil: MathUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("PresetHelper") protected presetHelper: PresetHelper, diff --git a/project/src/generators/ScavCaseRewardGenerator.ts b/project/src/generators/ScavCaseRewardGenerator.ts index 71df45ec..4198c502 100644 --- a/project/src/generators/ScavCaseRewardGenerator.ts +++ b/project/src/generators/ScavCaseRewardGenerator.ts @@ -20,7 +20,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService"; import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService"; import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; /** @@ -36,7 +35,6 @@ export class ScavCaseRewardGenerator constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("PresetHelper") protected presetHelper: PresetHelper, diff --git a/project/src/helpers/BotDifficultyHelper.ts b/project/src/helpers/BotDifficultyHelper.ts index ef979e50..d63347b0 100644 --- a/project/src/helpers/BotDifficultyHelper.ts +++ b/project/src/helpers/BotDifficultyHelper.ts @@ -8,7 +8,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -18,7 +17,6 @@ export class BotDifficultyHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/helpers/BotHelper.ts b/project/src/helpers/BotHelper.ts index 16788b5d..b26f0203 100644 --- a/project/src/helpers/BotHelper.ts +++ b/project/src/helpers/BotHelper.ts @@ -8,7 +8,6 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -19,7 +18,6 @@ export class BotHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts b/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts index 6178feee..0376b5c6 100644 --- a/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts +++ b/project/src/helpers/Dialogue/Commando/SptCommands/GiveCommand/GiveSptCommand.ts @@ -16,7 +16,6 @@ import { LocaleService } from "@spt-aki/services/LocaleService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class GiveSptCommand implements ISptCommand @@ -38,7 +37,6 @@ export class GiveSptCommand implements ISptCommand @inject("WinstonLogger") protected logger: ILogger, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("PresetHelper") protected presetHelper: PresetHelper, @inject("MailSendService") protected mailSendService: MailSendService, @inject("LocaleService") protected localeService: LocaleService, diff --git a/project/src/helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.ts b/project/src/helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.ts index 9c9a41dd..85ae9164 100644 --- a/project/src/helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.ts +++ b/project/src/helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.ts @@ -13,7 +13,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocaleService } from "@spt-aki/services/LocaleService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class ProfileSptCommand implements ISptCommand @@ -32,7 +31,6 @@ export class ProfileSptCommand implements ISptCommand @inject("WinstonLogger") protected logger: ILogger, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("PresetHelper") protected presetHelper: PresetHelper, @inject("MailSendService") protected mailSendService: MailSendService, @inject("LocaleService") protected localeService: LocaleService, diff --git a/project/src/helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.ts b/project/src/helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.ts index 7c4b1cbd..4c9a4a73 100644 --- a/project/src/helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.ts +++ b/project/src/helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.ts @@ -11,7 +11,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocaleService } from "@spt-aki/services/LocaleService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class TraderSptCommand implements ISptCommand @@ -29,7 +28,6 @@ export class TraderSptCommand implements ISptCommand @inject("WinstonLogger") protected logger: ILogger, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("PresetHelper") protected presetHelper: PresetHelper, @inject("MailSendService") protected mailSendService: MailSendService, @inject("LocaleService") protected localeService: LocaleService, diff --git a/project/src/helpers/HandbookHelper.ts b/project/src/helpers/HandbookHelper.ts index 3f656b2b..cc633382 100644 --- a/project/src/helpers/HandbookHelper.ts +++ b/project/src/helpers/HandbookHelper.ts @@ -7,7 +7,6 @@ import { IItemConfig } from "@spt-aki/models/spt/config/IItemConfig"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; class LookupItem { @@ -42,7 +41,6 @@ export class HandbookHelper constructor( @inject("DatabaseServer") protected databaseServer: DatabaseServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ConfigServer") protected configServer: ConfigServer, @inject("RecursiveCloner") protected cloner: ICloner, ) diff --git a/project/src/helpers/HealthHelper.ts b/project/src/helpers/HealthHelper.ts index 09033c37..59c15ed8 100644 --- a/project/src/helpers/HealthHelper.ts +++ b/project/src/helpers/HealthHelper.ts @@ -8,7 +8,6 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { SaveServer } from "@spt-aki/servers/SaveServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -17,7 +16,6 @@ export class HealthHelper protected healthConfig: IHealthConfig; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("WinstonLogger") protected logger: ILogger, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("SaveServer") protected saveServer: SaveServer, diff --git a/project/src/helpers/HideoutHelper.ts b/project/src/helpers/HideoutHelper.ts index 7914e966..0cb03f0a 100644 --- a/project/src/helpers/HideoutHelper.ts +++ b/project/src/helpers/HideoutHelper.ts @@ -26,7 +26,6 @@ import { PlayerService } from "@spt-aki/services/PlayerService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -54,7 +53,6 @@ export class HideoutHelper @inject("LocalisationService") protected localisationService: LocalisationService, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("ConfigServer") protected configServer: ConfigServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RecursiveCloner") protected cloner: ICloner, ) { diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index afcb8e1c..080891b0 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -20,7 +20,6 @@ import { SaveServer } from "@spt-aki/servers/SaveServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; import { ProfileHelper } from "./ProfileHelper"; @@ -35,7 +34,6 @@ export class InRaidHelper @inject("WinstonLogger") protected logger: ILogger, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("SaveServer") protected saveServer: SaveServer, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("InventoryHelper") protected inventoryHelper: InventoryHelper, diff --git a/project/src/helpers/InventoryHelper.ts b/project/src/helpers/InventoryHelper.ts index 5e04384e..d2dfa7c6 100644 --- a/project/src/helpers/InventoryHelper.ts +++ b/project/src/helpers/InventoryHelper.ts @@ -33,7 +33,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; export interface IOwnerInventoryItems { @@ -52,7 +51,6 @@ export class InventoryHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, @inject("FenceService") protected fenceService: FenceService, @@ -1329,6 +1327,7 @@ export class InventoryHelper } } +// eslint-disable-next-line @typescript-eslint/no-namespace namespace InventoryHelper { export interface InventoryItemHash diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index b821d548..37021dbc 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -1486,7 +1486,7 @@ export class ItemHelper ); return; } - const ammoArray = new ProbabilityObjectArray(this.mathUtil, this.jsonUtil); + const ammoArray = new ProbabilityObjectArray(this.mathUtil, this.cloner); for (const icd of ammos) { // Whitelist exists and tpl not inside it, skip @@ -1826,6 +1826,7 @@ export class ItemHelper } } +// eslint-disable-next-line @typescript-eslint/no-namespace namespace ItemHelper { export interface ItemSize diff --git a/project/src/helpers/PresetHelper.ts b/project/src/helpers/PresetHelper.ts index fbe85192..f0c1cb93 100644 --- a/project/src/helpers/PresetHelper.ts +++ b/project/src/helpers/PresetHelper.ts @@ -3,7 +3,6 @@ import { IPreset } from "@spt-aki/models/eft/common/IGlobals"; import { BaseClasses } from "@spt-aki/models/enums/BaseClasses"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { ItemHelper } from "./ItemHelper"; @injectable() @@ -14,7 +13,6 @@ export class PresetHelper protected defaultWeaponPresets: Record; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("RecursiveCloner") protected cloner: ICloner, diff --git a/project/src/helpers/ProfileHelper.ts b/project/src/helpers/ProfileHelper.ts index ef6cc8b8..d7d563b5 100644 --- a/project/src/helpers/ProfileHelper.ts +++ b/project/src/helpers/ProfileHelper.ts @@ -17,7 +17,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ProfileSnapshotService } from "@spt-aki/services/ProfileSnapshotService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; import { Watermark } from "@spt-aki/utils/Watermark"; @@ -28,7 +27,6 @@ export class ProfileHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("Watermark") protected watermark: Watermark, @inject("TimeUtil") protected timeUtil: TimeUtil, diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index 80544a2d..0a9c0700 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -30,7 +30,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -40,7 +39,6 @@ export class QuestHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("HashUtil") protected hashUtil: HashUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/project/src/helpers/RagfairHelper.ts b/project/src/helpers/RagfairHelper.ts index e59ab32f..533eafbe 100644 --- a/project/src/helpers/RagfairHelper.ts +++ b/project/src/helpers/RagfairHelper.ts @@ -14,7 +14,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class RagfairHelper @@ -23,7 +22,6 @@ export class RagfairHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TraderAssortHelper") protected traderAssortHelper: TraderAssortHelper, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("HandbookHelper") protected handbookHelper: HandbookHelper, diff --git a/project/src/helpers/RagfairServerHelper.ts b/project/src/helpers/RagfairServerHelper.ts index 9588e0a1..fb4a45d3 100644 --- a/project/src/helpers/RagfairServerHelper.ts +++ b/project/src/helpers/RagfairServerHelper.ts @@ -21,7 +21,6 @@ import { LocaleService } from "@spt-aki/services/LocaleService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -47,7 +46,6 @@ export class RagfairServerHelper @inject("LocaleService") protected localeService: LocaleService, @inject("DialogueHelper") protected dialogueHelper: DialogueHelper, @inject("TraderHelper") protected traderHelper: TraderHelper, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("MailSendService") protected mailSendService: MailSendService, @inject("ItemFilterService") protected itemFilterService: ItemFilterService, @inject("ConfigServer") protected configServer: ConfigServer, diff --git a/project/src/helpers/RepairHelper.ts b/project/src/helpers/RepairHelper.ts index 2a6dcaa6..0f5cf257 100644 --- a/project/src/helpers/RepairHelper.ts +++ b/project/src/helpers/RepairHelper.ts @@ -1,14 +1,12 @@ import { inject, injectable } from "tsyringe"; import { Item } from "@spt-aki/models/eft/common/tables/IItem"; import { ITemplateItem, Props } from "@spt-aki/models/eft/common/tables/ITemplateItem"; -import { BaseClasses } from "@spt-aki/models/enums/BaseClasses"; import { ConfigTypes } from "@spt-aki/models/enums/ConfigTypes"; import { IRepairConfig } from "@spt-aki/models/spt/config/IRepairConfig"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -18,7 +16,6 @@ export class RepairHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ConfigServer") protected configServer: ConfigServer, diff --git a/project/src/helpers/RepeatableQuestHelper.ts b/project/src/helpers/RepeatableQuestHelper.ts index 97d5d319..da50d68a 100644 --- a/project/src/helpers/RepeatableQuestHelper.ts +++ b/project/src/helpers/RepeatableQuestHelper.ts @@ -3,7 +3,6 @@ import { ConfigTypes } from "@spt-aki/models/enums/ConfigTypes"; import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt-aki/models/spt/config/IQuestConfig"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { ProbabilityObject, ProbabilityObjectArray } from "@spt-aki/utils/RandomUtil"; @@ -14,7 +13,6 @@ export class RepeatableQuestHelper constructor( @inject("MathUtil") protected mathUtil: MathUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ConfigServer") protected configServer: ConfigServer, @inject("RecursiveCloner") protected cloner: ICloner, ) diff --git a/project/src/helpers/TradeHelper.ts b/project/src/helpers/TradeHelper.ts index a974b8b6..cd79bdab 100644 --- a/project/src/helpers/TradeHelper.ts +++ b/project/src/helpers/TradeHelper.ts @@ -24,7 +24,6 @@ import { PaymentService } from "@spt-aki/services/PaymentService"; import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class TradeHelper @@ -34,7 +33,6 @@ export class TradeHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, @inject("TraderHelper") protected traderHelper: TraderHelper, @inject("ItemHelper") protected itemHelper: ItemHelper, diff --git a/project/src/helpers/TraderAssortHelper.ts b/project/src/helpers/TraderAssortHelper.ts index 4d62805a..f4bf791b 100644 --- a/project/src/helpers/TraderAssortHelper.ts +++ b/project/src/helpers/TraderAssortHelper.ts @@ -18,7 +18,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { TraderAssortService } from "@spt-aki/services/TraderAssortService"; import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -31,7 +30,6 @@ export class TraderAssortHelper constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("MathUtil") protected mathUtil: MathUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, diff --git a/project/src/routers/EventOutputHolder.ts b/project/src/routers/EventOutputHolder.ts index 87018e4b..35c31b3b 100644 --- a/project/src/routers/EventOutputHolder.ts +++ b/project/src/routers/EventOutputHolder.ts @@ -5,7 +5,6 @@ import { IHideoutImprovement, Productive, TraderInfo } from "@spt-aki/models/eft import { ProfileChange, TraderData } from "@spt-aki/models/eft/itemEvent/IItemEventRouterBase"; import { IItemEventRouterResponse } from "@spt-aki/models/eft/itemEvent/IItemEventRouterResponse"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @injectable() @@ -15,7 +14,6 @@ export class EventOutputHolder protected clientActiveSessionStorage: Record = {}; constructor( - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("RecursiveCloner") protected cloner: ICloner, diff --git a/project/src/routers/ItemEventRouter.ts b/project/src/routers/ItemEventRouter.ts index c6a63927..4499ea6a 100644 --- a/project/src/routers/ItemEventRouter.ts +++ b/project/src/routers/ItemEventRouter.ts @@ -7,14 +7,12 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { EventOutputHolder } from "@spt-aki/routers/EventOutputHolder"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class ItemEventRouter { constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @injectAll("IERouters") protected itemEventRouters: ItemEventRouterDefinition[], @inject("LocalisationService") protected localisationService: LocalisationService, diff --git a/project/src/services/BotGenerationCacheService.ts b/project/src/services/BotGenerationCacheService.ts index 956a9122..f97d8c6f 100644 --- a/project/src/services/BotGenerationCacheService.ts +++ b/project/src/services/BotGenerationCacheService.ts @@ -3,7 +3,6 @@ import { BotHelper } from "@spt-aki/helpers/BotHelper"; import { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -15,7 +14,6 @@ export class BotGenerationCacheService constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("LocalisationService") protected localisationService: LocalisationService, @inject("BotHelper") protected botHelper: BotHelper, ) diff --git a/project/src/services/BotLootCacheService.ts b/project/src/services/BotLootCacheService.ts index 0b1b3462..be1acca8 100644 --- a/project/src/services/BotLootCacheService.ts +++ b/project/src/services/BotLootCacheService.ts @@ -10,7 +10,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class BotLootCacheService @@ -19,7 +18,6 @@ export class BotLootCacheService constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("PMCLootGenerator") protected pmcLootGenerator: PMCLootGenerator, diff --git a/project/src/services/CustomLocationWaveService.ts b/project/src/services/CustomLocationWaveService.ts index d8a143d3..c5cfdd2a 100644 --- a/project/src/services/CustomLocationWaveService.ts +++ b/project/src/services/CustomLocationWaveService.ts @@ -5,7 +5,6 @@ import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() @@ -16,7 +15,6 @@ export class CustomLocationWaveService constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ConfigServer") protected configServer: ConfigServer, ) diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index 2c136fe1..a8a2f631 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -22,7 +22,6 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -61,7 +60,6 @@ export class FenceService constructor( @inject("WinstonLogger") protected logger: ILogger, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, diff --git a/project/src/services/InsuranceService.ts b/project/src/services/InsuranceService.ts index 31cb8cea..ec7e5d53 100644 --- a/project/src/services/InsuranceService.ts +++ b/project/src/services/InsuranceService.ts @@ -24,7 +24,6 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService"; import { MailSendService } from "@spt-aki/services/MailSendService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; @@ -42,7 +41,6 @@ export class InsuranceService @inject("RandomUtil") protected randomUtil: RandomUtil, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("SaveServer") protected saveServer: SaveServer, @inject("TraderHelper") protected traderHelper: TraderHelper, @@ -346,7 +344,7 @@ export class InsuranceService ): Item { // Get baseline item to return, clone pre raid item - const itemToReturnClone: Item = this.jsonUtil.clone(preRaidItem); + const itemToReturnClone: Item = this.cloner.clone(preRaidItem); // Add upd if it doesnt exist this.itemHelper.addUpdObjectToItem(itemToReturnClone); diff --git a/project/src/services/OpenZoneService.ts b/project/src/services/OpenZoneService.ts index 39d9d6c4..4b207f16 100644 --- a/project/src/services/OpenZoneService.ts +++ b/project/src/services/OpenZoneService.ts @@ -6,7 +6,6 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ConfigServer } from "@spt-aki/servers/ConfigServer"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { LocalisationService } from "@spt-aki/services/LocalisationService"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; /** Service for adding new zones to a maps OpenZones property */ @@ -18,7 +17,6 @@ export class OpenZoneService constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("RandomUtil") protected randomUtil: RandomUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("LocalisationService") protected localisationService: LocalisationService, @inject("ConfigServer") protected configServer: ConfigServer, diff --git a/project/src/services/ProfileSnapshotService.ts b/project/src/services/ProfileSnapshotService.ts index 4adf8355..5f5b4a81 100644 --- a/project/src/services/ProfileSnapshotService.ts +++ b/project/src/services/ProfileSnapshotService.ts @@ -1,14 +1,13 @@ import { inject, injectable } from "tsyringe"; import { IAkiProfile } from "@spt-aki/models/eft/profile/IAkiProfile"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class ProfileSnapshotService { protected storedProfileSnapshots: Record = {}; - constructor(@inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("RecursiveCloner") protected cloner: ICloner) + constructor(@inject("RecursiveCloner") protected cloner: ICloner) {} /** diff --git a/project/src/services/TraderServicesService.ts b/project/src/services/TraderServicesService.ts index e2fabe4b..410d30cc 100644 --- a/project/src/services/TraderServicesService.ts +++ b/project/src/services/TraderServicesService.ts @@ -5,14 +5,12 @@ import { ITraderServiceModel } from "@spt-aki/models/spt/services/ITraderService import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class TraderServicesService { constructor( @inject("ProfileHelper") protected profileHelper: ProfileHelper, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("WinstonLogger") protected logger: ILogger, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("RecursiveCloner") protected cloner: ICloner, diff --git a/project/src/services/mod/CustomItemService.ts b/project/src/services/mod/CustomItemService.ts index dbbb70c5..e28dce4c 100644 --- a/project/src/services/mod/CustomItemService.ts +++ b/project/src/services/mod/CustomItemService.ts @@ -14,7 +14,6 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { ItemBaseClassService } from "@spt-aki/services/ItemBaseClassService"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; import { HashUtil } from "@spt-aki/utils/HashUtil"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() export class CustomItemService @@ -24,7 +23,6 @@ export class CustomItemService constructor( @inject("WinstonLogger") protected logger: ILogger, @inject("HashUtil") protected hashUtil: HashUtil, - @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("DatabaseServer") protected databaseServer: DatabaseServer, @inject("ItemHelper") protected itemHelper: ItemHelper, @inject("ItemBaseClassService") protected itemBaseClassService: ItemBaseClassService, diff --git a/project/src/utils/RandomUtil.ts b/project/src/utils/RandomUtil.ts index 67b1142f..b07f5508 100644 --- a/project/src/utils/RandomUtil.ts +++ b/project/src/utils/RandomUtil.ts @@ -1,7 +1,6 @@ import { inject, injectable } from "tsyringe"; import { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import { ICloner } from "@spt-aki/utils/cloners/ICloner"; -import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { MathUtil } from "@spt-aki/utils/MathUtil"; /**