diff --git a/TypeScript/13AddTrader/src/mod.ts b/TypeScript/13AddTrader/src/mod.ts index c8270f3..ef4e97a 100644 --- a/TypeScript/13AddTrader/src/mod.ts +++ b/TypeScript/13AddTrader/src/mod.ts @@ -17,6 +17,7 @@ import * as baseJson from "../db/base.json"; import { TraderHelper } from "./traderHelpers"; import { FluentAssortConstructor } from "./fluentTraderAssortCreator"; import { Money } from "@spt-aki/models/enums/Money"; +import { Traders } from "@spt-aki/models/enums/Traders"; import { HashUtil } from "@spt-aki/utils/HashUtil"; class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod @@ -53,6 +54,9 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod this.traderHeper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg"); this.traderHeper.setTraderUpdateTime(traderConfig, baseJson, 3600); + // Add trader to trader enum + Traders[baseJson._id] = baseJson._id; + this.logger.debug(`[${this.mod}] preAki Loaded`); }