From 0b954e97a260c6f59089294c795f1ac41b07c20c Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 22 Mar 2025 14:19:53 +0100 Subject: [PATCH] fix: don't touch NemesisAbandonedRewards when spawning a lich 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. --- src/controllers/api/nemesisController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controllers/api/nemesisController.ts b/src/controllers/api/nemesisController.ts index 10c28c03..06d2cc20 100644 --- a/src/controllers/api/nemesisController.ts +++ b/src/controllers/api/nemesisController.ts @@ -46,7 +46,7 @@ export const nemesisController: RequestHandler = async (req, res) => { } }); } else if ((req.query.mode as string) == "s") { - const inventory = await getInventory(accountId, "Nemesis NemesisAbandonedRewards"); + const inventory = await getInventory(accountId, "Nemesis"); const body = getJSONfromString(String(req.body)); body.target.fp = BigInt(body.target.fp); @@ -100,7 +100,6 @@ export const nemesisController: RequestHandler = async (req, res) => { MissionCount: 0, LastEnc: 0 }; - inventory.NemesisAbandonedRewards = []; // unclear if we need to do this since the client also submits this with missionInventoryUpdate await inventory.save(); res.json({