Compare commits

..

No commits in common. "c9eae223125cd5b860bf17b94ec6cebfd0b74562" and "2d97dee80c42e9c69b197941dd66091b3c39af79" have entirely different histories.

View File

@ -38,7 +38,6 @@ import {
ExportCustoms, ExportCustoms,
ExportFlavour, ExportFlavour,
ExportGear, ExportGear,
ExportKeys,
ExportRecipes, ExportRecipes,
ExportResources, ExportResources,
ExportSentinels, ExportSentinels,
@ -366,19 +365,6 @@ export const addItem = async (
} }
}; };
} }
if (typeName in ExportKeys) {
// Note: "/Lotus/Types/Keys/" contains some EmailItems and ShipFeatureItems
inventory.QuestKeys.push({ ItemType: typeName });
return {
InventoryChanges: {
QuestKeys: [
{
ItemType: typeName
}
]
}
};
}
// Path-based duck typing // Path-based duck typing
switch (typeName.substr(1).split("/")[1]) { switch (typeName.substr(1).split("/")[1]) {
@ -495,6 +481,18 @@ export const addItem = async (
} }
break; break;
} }
case "Keys": {
inventory.QuestKeys.push({ ItemType: typeName });
return {
InventoryChanges: {
QuestKeys: [
{
ItemType: typeName
}
]
}
};
}
case "NeutralCreatures": { case "NeutralCreatures": {
const horseIndex = inventory.Horses.push({ ItemType: typeName }); const horseIndex = inventory.Horses.push({ ItemType: typeName });
return { return {