From ff6746ebe99f046f5e6a9fc0f934cc0d98c26265 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 22 Sep 2024 10:56:39 +0100 Subject: [PATCH] Now include money transfer limits of server>client response --- project/src/models/eft/itemEvent/IItemEventRouterBase.ts | 3 ++- project/src/routers/EventOutputHolder.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/project/src/models/eft/itemEvent/IItemEventRouterBase.ts b/project/src/models/eft/itemEvent/IItemEventRouterBase.ts index cbbde54a..e9f125aa 100644 --- a/project/src/models/eft/itemEvent/IItemEventRouterBase.ts +++ b/project/src/models/eft/itemEvent/IItemEventRouterBase.ts @@ -1,4 +1,4 @@ -import { Health, IQuestStatus, Productive, Skills } from "@spt/models/eft/common/tables/IBotBase"; +import { Health, IMoneyTransferLimits, IQuestStatus, Productive, Skills } from "@spt/models/eft/common/tables/IBotBase"; import { Item, Upd } from "@spt/models/eft/common/tables/IItem"; import { IQuest } from "@spt/models/eft/common/tables/IQuest"; import { IPmcDataRepeatableQuest } from "@spt/models/eft/common/tables/IRepeatableQuests"; @@ -33,6 +33,7 @@ export interface ProfileChange { skills: Skills; health: Health; traderRelations: Record; + moneyTransferLimitData: IMoneyTransferLimits; repeatableQuests?: IPmcDataRepeatableQuest[]; recipeUnlocked: Record; changedHideoutStashes?: Record; diff --git a/project/src/routers/EventOutputHolder.ts b/project/src/routers/EventOutputHolder.ts index 39e9e93c..c43c9780 100644 --- a/project/src/routers/EventOutputHolder.ts +++ b/project/src/routers/EventOutputHolder.ts @@ -79,6 +79,8 @@ export class EventOutputHolder { profileChanges.improvements = this.cloner.clone(this.getImprovementsFromProfileAndFlagComplete(pmcData)); profileChanges.traderRelations = this.constructTraderRelations(pmcData.TradersInfo); + profileChanges.moneyTransferLimitData = pmcData.moneyTransferLimitData; + // Fixes container craft from water collector not resetting after collection + removed completed normal crafts this.cleanUpCompleteCraftsInProfile(pmcData.Hideout.Production); }