Compare commits

..

2 Commits

Author SHA1 Message Date
229910cf2a Merge branch 'main' into fix-completeallunlocked
All checks were successful
Build / build (20) (push) Successful in 34s
Build / build (18) (push) Successful in 59s
Build / build (22) (push) Successful in 1m14s
Build / build (18) (pull_request) Successful in 37s
Build / build (20) (pull_request) Successful in 57s
Build / build (22) (pull_request) Successful in 1m15s
2025-02-19 22:02:55 +01:00
00a75a33fa fix: don't use path-based matching to add QuestKeys (#967)
All checks were successful
Build / build (22) (push) Successful in 33s
Build / build (20) (push) Successful in 56s
Build / build (18) (push) Successful in 1m14s
Build Docker image / docker (push) Successful in 37s
Reviewed-on: #967
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
2025-02-19 12:42:21 -08:00

View File

@ -38,6 +38,7 @@ import {
ExportCustoms,
ExportFlavour,
ExportGear,
ExportKeys,
ExportRecipes,
ExportResources,
ExportSentinels,
@ -365,6 +366,19 @@ 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]) {
@ -481,21 +495,6 @@ export const addItem = async (
}
break;
}
case "Keys": {
if (typeName === "/Lotus/Types/Keys/InfestedMicroplanetQuest/DoubleDefenseIntroEmailItem") {
break;
}
inventory.QuestKeys.push({ ItemType: typeName });
return {
InventoryChanges: {
QuestKeys: [
{
ItemType: typeName
}
]
}
};
}
case "NeutralCreatures": {
const horseIndex = inventory.Horses.push({ ItemType: typeName });
return {