forked from OpenWF/SpaceNinjaServer
Compare commits
No commits in common. "c9eae223125cd5b860bf17b94ec6cebfd0b74562" and "2d97dee80c42e9c69b197941dd66091b3c39af79" have entirely different histories.
c9eae22312
...
2d97dee80c
@ -38,7 +38,6 @@ import {
|
||||
ExportCustoms,
|
||||
ExportFlavour,
|
||||
ExportGear,
|
||||
ExportKeys,
|
||||
ExportRecipes,
|
||||
ExportResources,
|
||||
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
|
||||
switch (typeName.substr(1).split("/")[1]) {
|
||||
@ -495,6 +481,18 @@ export const addItem = async (
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "Keys": {
|
||||
inventory.QuestKeys.push({ ItemType: typeName });
|
||||
return {
|
||||
InventoryChanges: {
|
||||
QuestKeys: [
|
||||
{
|
||||
ItemType: typeName
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
case "NeutralCreatures": {
|
||||
const horseIndex = inventory.Horses.push({ ItemType: typeName });
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user