fix: claim recipe response #1106
@ -95,16 +95,12 @@ export const claimCompletedRecipeController: RequestHandler = async (req, res) =
|
|||||||
|
|
||||||
let InventoryChanges = {};
|
let InventoryChanges = {};
|
||||||
if (recipe.consumeOnUse) {
|
if (recipe.consumeOnUse) {
|
||||||
const recipeChanges = [
|
addRecipes(inventory, [
|
||||||
{
|
{
|
||||||
ItemType: pendingRecipe.ItemType,
|
ItemType: pendingRecipe.ItemType,
|
||||||
ItemCount: -1
|
ItemCount: -1
|
||||||
}
|
}
|
||||||
];
|
]);
|
||||||
|
|
||||||
InventoryChanges = { ...InventoryChanges, Recipes: recipeChanges };
|
|
||||||
|
|
||||||
addRecipes(inventory, recipeChanges);
|
|
||||||
}
|
}
|
||||||
if (req.query.rush) {
|
if (req.query.rush) {
|
||||||
InventoryChanges = {
|
InventoryChanges = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user