quest1 stable
This commit is contained in:
parent
9eff55538d
commit
e283d95a50
1649
package-lock.json
generated
1649
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -247,8 +247,6 @@ export const inventoryController: RequestHandler = async (request, response) =>
|
||||
// This determines if the "void fissures" tab is shown in navigation.
|
||||
inventoryResponse.HasOwnedVoidProjectionsPreviously = true;
|
||||
|
||||
inventoryResponse.QuestKeys[0].Completed = true;
|
||||
|
||||
response.json(inventoryResponse);
|
||||
};
|
||||
|
||||
|
@ -6,7 +6,6 @@ import { parseString } from "@/src/helpers/general";
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
export const unlockShipFeatureController: RequestHandler = async (req, res) => {
|
||||
const accountId = parseString(req.query.accountId);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call
|
||||
const shipFeatureRequest = JSON.parse((req.body as string).toString()) as IUnlockShipFeatureRequest;
|
||||
await updateShipFeature(accountId, shipFeatureRequest.Feature);
|
||||
res.send([]);
|
||||
|
@ -435,6 +435,19 @@ export const addItem = async (
|
||||
}
|
||||
};
|
||||
}
|
||||
case "Recipes": {
|
||||
inventory.MiscItems.push({ ItemType: typeName, ItemCount: quantity });
|
||||
return {
|
||||
InventoryChanges: {
|
||||
MiscItems: [
|
||||
{
|
||||
ItemType: typeName,
|
||||
ItemCount: quantity
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -207,7 +207,10 @@ export const addMissionRewards = async (
|
||||
missionCompletionCredits += reward.amount;
|
||||
continue;
|
||||
}
|
||||
MissionRewards.push({ StoreItem: reward.itemType, ItemCount: 1 });
|
||||
MissionRewards.push({
|
||||
StoreItem: reward.itemType,
|
||||
ItemCount: reward.rewardType === "RT_RESOURCE" ? reward.amount : 1
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user