feat: save lotus customization
This commit is contained in:
parent
bbde7b2141
commit
0205f1438e
@ -96,7 +96,8 @@ import {
|
||||
IInvasionProgressDatabase,
|
||||
IInvasionProgressClient,
|
||||
IAccolades,
|
||||
IHubNpcCustomization
|
||||
IHubNpcCustomization,
|
||||
ILotusCustomization
|
||||
} from "../../types/inventoryTypes/inventoryTypes";
|
||||
import { IOid } from "../../types/commonTypes";
|
||||
import {
|
||||
@ -780,6 +781,10 @@ const loreFragmentScansSchema = new Schema<ILoreFragmentScan>(
|
||||
{ _id: false }
|
||||
);
|
||||
|
||||
const lotusCustomizationSchema = new Schema<ILotusCustomization>().add(ItemConfigSchema).add({
|
||||
Persona: String
|
||||
});
|
||||
|
||||
const evolutionProgressSchema = new Schema<IEvolutionProgress>(
|
||||
{
|
||||
Progress: Number,
|
||||
@ -1628,7 +1633,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
|
||||
//Purchase this new permanent skin from the Lotus customization options in Personal Quarters located in your Orbiter.
|
||||
//https://warframe.fandom.com/wiki/Lotus#The_New_War
|
||||
LotusCustomization: Schema.Types.Mixed,
|
||||
LotusCustomization: { type: lotusCustomizationSchema, default: undefined },
|
||||
|
||||
//Progress+Rank+ItemType(ZarimanPumpShotgun)
|
||||
//https://warframe.fandom.com/wiki/Incarnon
|
||||
|
@ -161,6 +161,11 @@ export const handleInventoryItemConfigChange = async (
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "LotusCustomization": {
|
||||
logger.debug(`saved LotusCustomization`, equipmentChanges.LotusCustomization);
|
||||
inventory.LotusCustomization = equipmentChanges.LotusCustomization;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (equipmentKeys.includes(equipmentName as TEquipmentKey) && equipmentName != "ValidNewLoadoutId") {
|
||||
logger.debug(`general Item config saved of type ${equipmentName}`, {
|
||||
|
@ -328,7 +328,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
|
||||
BlessingCooldown?: IMongoDate;
|
||||
CrewShipRawSalvage: ITypeCount[];
|
||||
CrewMembers: ICrewMemberClient[];
|
||||
LotusCustomization: ILotusCustomization;
|
||||
LotusCustomization?: ILotusCustomization;
|
||||
UseAdultOperatorLoadout?: boolean;
|
||||
NemesisAbandonedRewards: string[];
|
||||
LastInventorySync: IOid;
|
||||
|
@ -6,7 +6,8 @@ import {
|
||||
ICrewShipMembersClient,
|
||||
ICrewShipWeapon,
|
||||
IFlavourItem,
|
||||
ILoadoutConfigClient
|
||||
ILoadoutConfigClient,
|
||||
ILotusCustomization
|
||||
} from "./inventoryTypes/inventoryTypes";
|
||||
|
||||
export interface ISaveLoadoutRequest {
|
||||
@ -43,6 +44,7 @@ export interface ISaveLoadoutRequest {
|
||||
EquippedEmotes: string[];
|
||||
UseAdultOperatorLoadout: boolean;
|
||||
WeaponSkins: IItemEntry;
|
||||
LotusCustomization: ILotusCustomization;
|
||||
}
|
||||
|
||||
export type ISaveLoadoutRequestNoUpgradeVer = Omit<ISaveLoadoutRequest, "UpgradeVer">;
|
||||
|
Loading…
x
Reference in New Issue
Block a user