Add achievement storage to profile on creation

This commit is contained in:
Dev 2023-12-29 23:06:57 +00:00
parent 22a4ba3643
commit 11e64eacab
3 changed files with 11 additions and 0 deletions

View File

@ -152,6 +152,7 @@ export class ProfileController
pmcData.RepeatableQuests = []; pmcData.RepeatableQuests = [];
pmcData.CarExtractCounts = {}; pmcData.CarExtractCounts = {};
pmcData.CoopExtractCounts = {}; pmcData.CoopExtractCounts = {};
pmcData.Achievements = {};
if (!pmcData.UnlockedInfo) if (!pmcData.UnlockedInfo)
{ {

View File

@ -28,6 +28,8 @@ export interface IBotBase
TradersInfo: Record<string, TraderInfo>; TradersInfo: Record<string, TraderInfo>;
UnlockedInfo: IUnlockedInfo; UnlockedInfo: IUnlockedInfo;
RagfairInfo: RagfairInfo; RagfairInfo: RagfairInfo;
/** Achievement id and timestamp */
Achievements: Record<string, number>
RepeatableQuests: IPmcDataRepeatableQuest[]; RepeatableQuests: IPmcDataRepeatableQuest[];
Bonuses: Bonus[]; Bonuses: Bonus[];
Notes: Notes; Notes: Notes;

View File

@ -0,0 +1,8 @@
import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData";
export interface ISetFavoriteItems extends IInventoryBaseActionRequestData
{
Action: "SetFavoriteItems";
items: any[];
timestamp: number
}