From 77f4691c8d256069919f0b65cbda3a47ab9b990f Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 29 May 2024 10:06:37 +0100 Subject: [PATCH] Update example 3 to use `PrimaryLogger` --- TypeScript/3GetSptConfigFile/src/mod.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TypeScript/3GetSptConfigFile/src/mod.ts b/TypeScript/3GetSptConfigFile/src/mod.ts index 8c4ed34..05d1a16 100644 --- a/TypeScript/3GetSptConfigFile/src/mod.ts +++ b/TypeScript/3GetSptConfigFile/src/mod.ts @@ -11,19 +11,19 @@ class Mod implements IPostSptLoadMod public postSptLoad(container: DependencyContainer): void { // get logger - const logger = container.resolve("WinstonLogger"); + const logger = container.resolve("PrimaryLogger"); // get the config server so we can get a config with it const configServer = container.resolve("ConfigServer"); // Request the map location config - // Required - ConfigTypes.LOCATION is the enum of the config we want, others include ConfigTypes.Airdrop + // Required - ConfigTypes.LOCATION is the enum of the config we want, others include ConfigTypes.AIRDROP/ConfigTypes.IN_RAID/ConfigTypes.BOT const locationConfig: ILocationConfig = configServer.getConfig(ConfigTypes.LOCATION); // Log the original customs loose loot multipler logger.info(`Here is the original customs map loose loot multipler: ${locationConfig.looseLootMultiplier.bigmap}`); - // Adjust the multipler (customs is called bigmap in bsg land) + // Adjust the multipler (BSGs internal name for `Customs` is `bigmap`) locationConfig.looseLootMultiplier.bigmap = 10; // Log the new multipler