feat: identify & repair railjack components #1664

Merged
Sainan merged 3 commits from identify-salvage into main 2025-04-16 06:31:00 -07:00
Showing only changes of commit 26cb7ada92 - Show all commits

View File

@ -305,10 +305,10 @@ export const guildTechController: RequestHandler = async (req, res) => {
guild.ActiveDojoColorResearch = data.RecipeType;
await guild.save();
res.end();
} else if (data.Action == "Rush") {
} else if (data.Action == "Rush" && data.CategoryItemId) {
const inventoryChanges: IInventoryChanges = {
...updateCurrency(inventory, 20, true),
...claimSalvagedComponent(inventory, data.CategoryItemId!)
...claimSalvagedComponent(inventory, data.CategoryItemId)
};
await inventory.save();
res.json({
@ -316,7 +316,7 @@ export const guildTechController: RequestHandler = async (req, res) => {
});
} else {
logger.debug(`data provided to ${req.path}: ${String(req.body)}`);
throw new Error(`unknown guildTech action: ${data.Action}`);
throw new Error(`unhandled guildTech request`);
}
};