feat: track LastRegionPlayed #428
@ -669,6 +669,11 @@ export const missionInventoryUpdate = async (data: IMissionInventoryUpdateReques
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LastRegionPlayed
|
||||||
|
if (data.LastRegionPlayed) {
|
||||||
|
inventory.LastRegionPlayed = data.LastRegionPlayed;
|
||||||
|
}
|
||||||
|
|
||||||
// other
|
// other
|
||||||
addMods(inventory, RawUpgrades);
|
addMods(inventory, RawUpgrades);
|
||||||
addMiscItems(inventory, MiscItems);
|
addMiscItems(inventory, MiscItems);
|
||||||
|
@ -86,6 +86,8 @@ export interface IMailbox {
|
|||||||
LastInboxId: IOid;
|
LastInboxId: IOid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type TSolarMapRegion = "Earth" | "Ceres" | "Eris" | "Europa" | "Jupiter" | "Mars" | "Mercury" | "Neptune" | "Phobos" | "Pluto" | "Saturn" | "Sedna" | "Uranus" | "Venus" | "Void" | "SolarMapDeimosName";
|
||||||
|
|
||||||
//TODO: perhaps split response and database into their own files
|
//TODO: perhaps split response and database into their own files
|
||||||
|
|
||||||
export interface IPendingRecipeResponse extends Omit<IPendingRecipe, "CompletionDate"> {
|
export interface IPendingRecipeResponse extends Omit<IPendingRecipe, "CompletionDate"> {
|
||||||
@ -142,7 +144,7 @@ export interface IInventoryResponse {
|
|||||||
CurrentLoadOutIds: Array<any[] | IOid>;
|
CurrentLoadOutIds: Array<any[] | IOid>;
|
||||||
Missions: IMission[];
|
Missions: IMission[];
|
||||||
RandomUpgradesIdentified?: number;
|
RandomUpgradesIdentified?: number;
|
||||||
LastRegionPlayed: string;
|
LastRegionPlayed: TSolarMapRegion;
|
||||||
XPInfo: ITypeXPItem[];
|
XPInfo: ITypeXPItem[];
|
||||||
Recipes: ITypeCount[];
|
Recipes: ITypeCount[];
|
||||||
WeaponSkins: IWeaponSkinClient[];
|
WeaponSkins: IWeaponSkinClient[];
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
IMission,
|
IMission,
|
||||||
IRawUpgrade,
|
IRawUpgrade,
|
||||||
ISeasonChallenge,
|
ISeasonChallenge,
|
||||||
|
TSolarMapRegion,
|
||||||
TEquipmentKey
|
TEquipmentKey
|
||||||
} from "./inventoryTypes/inventoryTypes";
|
} from "./inventoryTypes/inventoryTypes";
|
||||||
|
|
||||||
@ -57,6 +58,7 @@ export interface IMissionInventoryUpdateRequest {
|
|||||||
RewardInfo?: IMissionInventoryUpdateRequestRewardInfo;
|
RewardInfo?: IMissionInventoryUpdateRequestRewardInfo;
|
||||||
Missions?: IMission;
|
Missions?: IMission;
|
||||||
EvolutionProgress?: IEvolutionProgress[];
|
EvolutionProgress?: IEvolutionProgress[];
|
||||||
|
LastRegionPlayed?: TSolarMapRegion;
|
||||||
|
|
||||||
FusionPoints?: number; // Not a part of the request, but we put it in this struct as an intermediate storage.
|
FusionPoints?: number; // Not a part of the request, but we put it in this struct as an intermediate storage.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user