feat(inventory&loadouts): motorcyles #580
@ -867,6 +867,8 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||
//https://warframe.fandom.com/wiki/Parazon
|
||||
DataKnives: [EquipmentSchema],
|
||||
|
||||
Motorcycles: [EquipmentSchema],
|
||||
|
||||
|
||||
//CorpusLich or GrineerLich
|
||||
NemesisAbandonedRewards: [String],
|
||||
//CorpusLich\KuvaLich
|
||||
@ -974,6 +976,7 @@ type InventoryDocumentProps = {
|
||||
MechSuits: Types.DocumentArray<IEquipmentDatabase>;
|
||||
Scoops: Types.DocumentArray<IEquipmentDatabase>;
|
||||
DataKnives: Types.DocumentArray<IEquipmentDatabase>;
|
||||
Motorcycles: Types.DocumentArray<IEquipmentDatabase>;
|
||||
DrifterMelee: Types.DocumentArray<IEquipmentDatabase>;
|
||||
Sentinels: Types.DocumentArray<IEquipmentDatabase>;
|
||||
Horses: Types.DocumentArray<IEquipmentDatabase>;
|
||||
|
@ -144,7 +144,8 @@ export const handleInventoryItemConfigChange = async (
|
||||
case "Hoverboards":
|
||||
case "MechSuits":
|
||||
case "CrewShipHarnesses":
|
||||
case "CrewShips": {
|
||||
case "CrewShips":
|
||||
case "Motorcycles": {
|
||||
logger.debug(`general Item config saved of type ${equipmentName}`, { config: equipment });
|
||||
|
||||
const itemEntries = equipment as IItemEntry;
|
||||
|
@ -245,6 +245,7 @@ export interface IInventoryResponse {
|
||||
EquippedInstrument: string;
|
||||
InvasionChainProgress: IInvasionChainProgress[];
|
||||
DataKnives: IEquipmentDatabase[];
|
||||
Motorcycles: IEquipmentDatabase[];
|
||||
NemesisHistory: INemesisHistory[];
|
||||
LastNemesisAllySpawnTime?: IMongoDate;
|
||||
Settings: ISettings;
|
||||
|
@ -21,6 +21,7 @@ export interface ISaveLoadoutRequest {
|
||||
MoaPets: IItemEntry;
|
||||
Hoverboards: IItemEntry;
|
||||
DataKnives: IItemEntry;
|
||||
Motorcycles: IItemEntry;
|
||||
MechSuits: IItemEntry;
|
||||
CrewShipHarnesses: 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:
IInventoryResponse
interfaceequipmentKeys
constant arrayRequired changes:
Motorcycles: IEquipmentDatabase[]
to theIInventoryResponse
interface"Motorcycles"
to theequipmentKeys
array 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