Move TraderData
object into ItemEventRouterBase
where it will cause less confusion
This commit is contained in:
parent
b52ea4f1fa
commit
3d01fe6211
@ -464,7 +464,7 @@ export interface IQuestStatus
|
|||||||
startTime: number;
|
startTime: number;
|
||||||
status: QuestStatus;
|
status: QuestStatus;
|
||||||
statusTimers?: Record<string, number>;
|
statusTimers?: Record<string, number>;
|
||||||
/** SPT specific property */
|
/** Property does not exist in live profile data, but is used by ProfileChanges.questsStatus when sent to client*/
|
||||||
completedConditions?: string[];
|
completedConditions?: string[];
|
||||||
availableAfter?: number;
|
availableAfter?: number;
|
||||||
}
|
}
|
||||||
@ -479,16 +479,6 @@ export interface TraderInfo
|
|||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This object is sent to the client as part of traderRelations */
|
|
||||||
export interface TraderData
|
|
||||||
{
|
|
||||||
salesSum: number;
|
|
||||||
standing: number;
|
|
||||||
loyalty: number;
|
|
||||||
unlocked: boolean;
|
|
||||||
disabled: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RagfairInfo
|
export interface RagfairInfo
|
||||||
{
|
{
|
||||||
rating: number;
|
rating: number;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Health, IQuestStatus, Productive, Skills, TraderData } from "@spt-aki/models/eft/common/tables/IBotBase";
|
import { Health, IQuestStatus, Productive, Skills } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||||
import { Item, Upd } from "@spt-aki/models/eft/common/tables/IItem";
|
import { Item, Upd } from "@spt-aki/models/eft/common/tables/IItem";
|
||||||
import { IQuest } from "@spt-aki/models/eft/common/tables/IQuest";
|
import { IQuest } from "@spt-aki/models/eft/common/tables/IQuest";
|
||||||
import { IPmcDataRepeatableQuest } from "@spt-aki/models/eft/common/tables/IRepeatableQuests";
|
import { IPmcDataRepeatableQuest } from "@spt-aki/models/eft/common/tables/IRepeatableQuests";
|
||||||
@ -80,6 +80,16 @@ export interface Improvement
|
|||||||
improveCompleteTimestamp: number;
|
improveCompleteTimestamp: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Related to TraderInfo */
|
||||||
|
export interface TraderData
|
||||||
|
{
|
||||||
|
salesSum: number;
|
||||||
|
standing: number;
|
||||||
|
loyalty: number;
|
||||||
|
unlocked: boolean;
|
||||||
|
disabled: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Product
|
export interface Product
|
||||||
{
|
{
|
||||||
_id: string;
|
_id: string;
|
||||||
|
@ -2,8 +2,8 @@ import { inject, injectable } from "tsyringe";
|
|||||||
|
|
||||||
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
||||||
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
||||||
import { IHideoutImprovement, Productive, TraderData, TraderInfo } from "@spt-aki/models/eft/common/tables/IBotBase";
|
import { IHideoutImprovement, Productive, TraderInfo } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||||
import { ProfileChange } from "@spt-aki/models/eft/itemEvent/IItemEventRouterBase";
|
import { ProfileChange, TraderData } from "@spt-aki/models/eft/itemEvent/IItemEventRouterBase";
|
||||||
import { IItemEventRouterResponse } from "@spt-aki/models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "@spt-aki/models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
|
Loading…
Reference in New Issue
Block a user