Add trader id to Trader enum
This commit is contained in:
parent
21fc225eed
commit
3d58c2e8dd
@ -17,6 +17,7 @@ import * as baseJson from "../db/base.json";
|
|||||||
import { TraderHelper } from "./traderHelpers";
|
import { TraderHelper } from "./traderHelpers";
|
||||||
import { FluentAssortConstructor } from "./fluentTraderAssortCreator";
|
import { FluentAssortConstructor } from "./fluentTraderAssortCreator";
|
||||||
import { Money } from "@spt-aki/models/enums/Money";
|
import { Money } from "@spt-aki/models/enums/Money";
|
||||||
|
import { Traders } from "@spt-aki/models/enums/Traders";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
|
|
||||||
class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod
|
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.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg");
|
||||||
this.traderHeper.setTraderUpdateTime(traderConfig, baseJson, 3600);
|
this.traderHeper.setTraderUpdateTime(traderConfig, baseJson, 3600);
|
||||||
|
|
||||||
|
// Add trader to trader enum
|
||||||
|
Traders[baseJson._id] = baseJson._id;
|
||||||
|
|
||||||
this.logger.debug(`[${this.mod}] preAki Loaded`);
|
this.logger.debug(`[${this.mod}] preAki Loaded`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user