Add achievement storage to profile on creation
This commit is contained in:
parent
22a4ba3643
commit
11e64eacab
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
8
project/src/models/eft/inventory/ISetFavoriteItems.ts
Normal file
8
project/src/models/eft/inventory/ISetFavoriteItems.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { IInventoryBaseActionRequestData } from "./IInventoryBaseActionRequestData";
|
||||||
|
|
||||||
|
export interface ISetFavoriteItems extends IInventoryBaseActionRequestData
|
||||||
|
{
|
||||||
|
Action: "SetFavoriteItems";
|
||||||
|
items: any[];
|
||||||
|
timestamp: number
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user