返回提交历史
Modified
src/controllers/api/nemesisController.ts
+1
-2
XFEstudio/XFESpaceNinjaServer
fix: don't touch NemesisAbandonedRewards when spawning a lich (#1275)
Because this can contain both grineer and corpus weapons, I think we should simply defer to the client's missionInventoryUpdate request in this matter. This still leaves open the possibility of the client crashing between spawning the lich and finishing the mission, but that's rather unlikely, I guess. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1275
57786bff
代码差异
1 个文件
+1
-2
@@ -66,7 +66,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
66
66
}
67
67
res.json({ GuessResult: guessResult });
68
68
} else if ((req.query.mode as string) == "s") {
69
const inventory = await getInventory(accountId, "Nemesis NemesisAbandonedRewards");
69
const inventory = await getInventory(accountId, "Nemesis");
70
70
const body = getJSONfromString<INemesisStartRequest>(String(req.body));
71
71
body.target.fp = BigInt(body.target.fp);
72
72
@@ -120,7 +120,6 @@ export const nemesisController: RequestHandler = async (req, res) => {
120
120
MissionCount: 0,
121
121
LastEnc: 0
122
122
};
123
inventory.NemesisAbandonedRewards = []; // unclear if we need to do this since the client also submits this with missionInventoryUpdate
124
123
await inventory.save();
125
124
126
125
res.json({