Add trader id to Trader enum

This commit is contained in:
Dev 2023-08-02 08:13:25 +01:00
parent 21fc225eed
commit 3d58c2e8dd

View File

@ -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`);
}