feat(inventory&loadouts): motorcyles #580
@ -867,6 +867,8 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
				
			|||||||
        //https://warframe.fandom.com/wiki/Parazon
 | 
					        //https://warframe.fandom.com/wiki/Parazon
 | 
				
			||||||
        DataKnives: [EquipmentSchema],
 | 
					        DataKnives: [EquipmentSchema],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        Motorcycles: [EquipmentSchema],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 | 
				|||||||
        //CorpusLich or GrineerLich
 | 
					        //CorpusLich or GrineerLich
 | 
				
			||||||
        NemesisAbandonedRewards: [String],
 | 
					        NemesisAbandonedRewards: [String],
 | 
				
			||||||
        //CorpusLich\KuvaLich
 | 
					        //CorpusLich\KuvaLich
 | 
				
			||||||
@ -974,6 +976,7 @@ type InventoryDocumentProps = {
 | 
				
			|||||||
    MechSuits: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    MechSuits: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
    Scoops: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    Scoops: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
    DataKnives: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    DataKnives: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
 | 
					    Motorcycles: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
    DrifterMelee: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    DrifterMelee: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
    Sentinels: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    Sentinels: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
    Horses: Types.DocumentArray<IEquipmentDatabase>;
 | 
					    Horses: Types.DocumentArray<IEquipmentDatabase>;
 | 
				
			||||||
 | 
				
			|||||||
@ -144,7 +144,8 @@ export const handleInventoryItemConfigChange = async (
 | 
				
			|||||||
            case "Hoverboards":
 | 
					            case "Hoverboards":
 | 
				
			||||||
            case "MechSuits":
 | 
					            case "MechSuits":
 | 
				
			||||||
            case "CrewShipHarnesses":
 | 
					            case "CrewShipHarnesses":
 | 
				
			||||||
            case "CrewShips": {
 | 
					            case "CrewShips":
 | 
				
			||||||
 | 
					            case "Motorcycles": {
 | 
				
			||||||
                logger.debug(`general Item config saved of type ${equipmentName}`, { config: equipment });
 | 
					                logger.debug(`general Item config saved of type ${equipmentName}`, { config: equipment });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                const itemEntries = equipment as IItemEntry;
 | 
					                const itemEntries = equipment as IItemEntry;
 | 
				
			||||||
 | 
				
			|||||||
@ -245,6 +245,7 @@ export interface IInventoryResponse {
 | 
				
			|||||||
    EquippedInstrument: string;
 | 
					    EquippedInstrument: string;
 | 
				
			||||||
    InvasionChainProgress: IInvasionChainProgress[];
 | 
					    InvasionChainProgress: IInvasionChainProgress[];
 | 
				
			||||||
    DataKnives: IEquipmentDatabase[];
 | 
					    DataKnives: IEquipmentDatabase[];
 | 
				
			||||||
 | 
					    Motorcycles: IEquipmentDatabase[];
 | 
				
			||||||
    NemesisHistory: INemesisHistory[];
 | 
					    NemesisHistory: INemesisHistory[];
 | 
				
			||||||
    LastNemesisAllySpawnTime?: IMongoDate;
 | 
					    LastNemesisAllySpawnTime?: IMongoDate;
 | 
				
			||||||
    Settings: ISettings;
 | 
					    Settings: ISettings;
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,7 @@ export interface ISaveLoadoutRequest {
 | 
				
			|||||||
    MoaPets: IItemEntry;
 | 
					    MoaPets: IItemEntry;
 | 
				
			||||||
    Hoverboards: IItemEntry;
 | 
					    Hoverboards: IItemEntry;
 | 
				
			||||||
    DataKnives: IItemEntry;
 | 
					    DataKnives: IItemEntry;
 | 
				
			||||||
 | 
					    Motorcycles: IItemEntry;
 | 
				
			||||||
    MechSuits: IItemEntry;
 | 
					    MechSuits: IItemEntry;
 | 
				
			||||||
    CrewShipHarnesses: IItemEntry;
 | 
					    CrewShipHarnesses: IItemEntry;
 | 
				
			||||||
    Horses: IItemEntry;
 | 
					    Horses: IItemEntry;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
💡 Codebase verification
The Motorcycles property needs to be added to interfaces and equipment keys
The verification reveals that the Motorcycles property is missing from:
IInventoryResponseinterfaceequipmentKeysconstant arrayRequired changes:
Motorcycles: IEquipmentDatabase[]to theIInventoryResponseinterface"Motorcycles"to theequipmentKeysarray to maintain type safety🔗 Analysis chain
LGTM! Schema addition follows established patterns.
The Motorcycles array using EquipmentSchema is consistent with other equipment types in the inventory system.
Let's verify the interfaces are properly updated:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 897
Script:
Length of output: 1215
Script:
Length of output: 2209
Script:
Length of output: 4171