diff --git a/3.0GetSptConfigFile/src/mod.ts b/3.0GetSptConfigFile/src/mod.ts index 0051db8..3b72036 100644 --- a/3.0GetSptConfigFile/src/mod.ts +++ b/3.0GetSptConfigFile/src/mod.ts @@ -1,7 +1,7 @@ import type { DependencyContainer } from "tsyringe"; import { IMod } from "../types/@types/external/mod"; -import type { Logger } from "../types/utils/Logger"; +import type { ILogger } from "../types/@types/spt/utils/ILogger"; import { ConfigServer, ConfigTypes } from "../types/servers/ConfigServer"; import { IBotConfig } from "../types/@types/spt/config/IBotConfig"; @@ -14,7 +14,7 @@ class Mod implements IMod public delayedLoad(container: DependencyContainer): void { // get logger - const logger = container.resolve("WinstonLogger"); + const logger = container.resolve("WinstonLogger"); // get the config server const configServer = container.resolve("ConfigServer"); @@ -23,7 +23,7 @@ class Mod implements IMod // Required - ConfigTypes.BOT is the enum of the config we want, others include ConfigTypes.Airdrop const botConfig = configServer.getConfig(ConfigTypes.BOT); - // log the pmc difficulty + // log the original pmc difficulty logger.info(`here is the original bot pmc difficulty: ${botConfig.pmc.difficulty}`) // adjust the difficulty diff --git a/4UseACustomConfigFile/src/mod.ts b/4UseACustomConfigFile/src/mod.ts index 85e9b67..d207e8d 100644 --- a/4UseACustomConfigFile/src/mod.ts +++ b/4UseACustomConfigFile/src/mod.ts @@ -1,7 +1,7 @@ import type { DependencyContainer } from "tsyringe"; import { IMod } from "../types/@types/external/mod"; -import type { Logger } from "../types/utils/Logger"; +import type { ILogger } from "../types/@types/spt/utils/ILogger"; import * as modConfig from "../config/config.json"; class Mod implements IMod @@ -13,9 +13,9 @@ class Mod implements IMod public delayedLoad(container: DependencyContainer): void { // get logger - const logger = container.resolve("WinstonLogger"); + const logger = container.resolve("WinstonLogger"); - // log the 'myProperty' property to the console + // log the 'myProperty' value to the console logger.info(`here is the value from my config: ${modConfig.myProperty}`); } }