Now include money transfer limits of server>client response

This commit is contained in:
Dev 2024-09-22 10:56:39 +01:00
parent 060b0bb2de
commit ff6746ebe9
2 changed files with 4 additions and 1 deletions

View File

@ -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<string, TraderData>;
moneyTransferLimitData: IMoneyTransferLimits;
repeatableQuests?: IPmcDataRepeatableQuest[];
recipeUnlocked: Record<string, boolean>;
changedHideoutStashes?: Record<string, IHideoutStashItem>;

View File

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