chore: remove /Lotus/Types/Recipes/ from path-based logic (#1475)
Both recipes & MiscItems (recipe components) start with this. Reviewed-on: #1475 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
2bdb722986
commit
5f6b2330af
@ -673,17 +673,6 @@ export const addItem = async (
|
|||||||
Horses: [inventory.Horses[horseIndex - 1].toJSON<IEquipmentClient>()]
|
Horses: [inventory.Horses[horseIndex - 1].toJSON<IEquipmentClient>()]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
case "Recipes": {
|
|
||||||
inventory.MiscItems.push({ ItemType: typeName, ItemCount: quantity });
|
|
||||||
return {
|
|
||||||
MiscItems: [
|
|
||||||
{
|
|
||||||
ItemType: typeName,
|
|
||||||
ItemCount: quantity
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
}
|
|
||||||
case "Vehicles":
|
case "Vehicles":
|
||||||
if (typeName == "/Lotus/Types/Vehicles/Motorcycle/MotorcyclePowerSuit") {
|
if (typeName == "/Lotus/Types/Vehicles/Motorcycle/MotorcyclePowerSuit") {
|
||||||
return addMotorcycle(inventory, typeName);
|
return addMotorcycle(inventory, typeName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user