Fixed incorrect imports and updated types to reflect the import name changes
This commit is contained in:
parent
e8729babea
commit
4b89135060
@ -1,11 +1,11 @@
|
|||||||
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
import { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
|
||||||
import { Item } from "@spt/models/eft/common/tables/IItem";
|
import { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||||
import { ITraderBase, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
import { ITraderBase, ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
||||||
import { ITraderConfig, UpdateTime } from "@spt/models/spt/config/ITraderConfig";
|
import { ITraderConfig, IUpdateTime } from "@spt/models/spt/config/ITraderConfig";
|
||||||
import { IDatabaseTables } from "@spt/models/spt/server/IDatabaseTables";
|
import { IDatabaseTables } from "@spt/models/spt/server/IDatabaseTables";
|
||||||
import { ImageRouter } from "@spt/routers/ImageRouter";
|
import { ImageRouter } from "@spt/routers/ImageRouter";
|
||||||
import { JsonUtil } from "@spt/utils/JsonUtil";
|
import { JsonUtil } from "@spt/utils/JsonUtil";
|
||||||
import { NewItemIds } from "./newitemIds";
|
import { NewItemIds } from "./newItemIds";
|
||||||
|
|
||||||
export class TraderHelper {
|
export class TraderHelper {
|
||||||
/**
|
/**
|
||||||
@ -33,7 +33,7 @@ export class TraderHelper {
|
|||||||
*/
|
*/
|
||||||
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSecondsMin: number, refreshTimeSecondsMax: number): void {
|
public setTraderUpdateTime(traderConfig: ITraderConfig, baseJson: any, refreshTimeSecondsMin: number, refreshTimeSecondsMax: number): void {
|
||||||
// Add refresh time in seconds to config
|
// Add refresh time in seconds to config
|
||||||
const traderRefreshRecord: UpdateTime = {
|
const traderRefreshRecord: IUpdateTime = {
|
||||||
traderId: baseJson._id,
|
traderId: baseJson._id,
|
||||||
seconds: {
|
seconds: {
|
||||||
min: refreshTimeSecondsMin,
|
min: refreshTimeSecondsMin,
|
||||||
@ -83,9 +83,9 @@ export class TraderHelper {
|
|||||||
* Create a weapon from scratch, ready to be added to trader
|
* Create a weapon from scratch, ready to be added to trader
|
||||||
* @returns Item[]
|
* @returns Item[]
|
||||||
*/
|
*/
|
||||||
public createGlock(): Item[] {
|
public createGlock(): IItem[] {
|
||||||
// Create an array ready to hold weapon + all mods
|
// Create an array ready to hold weapon + all mods
|
||||||
const glock: Item[] = [];
|
const glock: IItem[] = [];
|
||||||
|
|
||||||
// Add the base first
|
// Add the base first
|
||||||
glock.push({ // Add the base weapon first
|
glock.push({ // Add the base weapon first
|
||||||
|
Loading…
x
Reference in New Issue
Block a user