fix: don't touch NemesisAbandonedRewards when spawning a lich
All checks were successful
Build / build (20) (push) Successful in 1m9s
Build / build (18) (pull_request) Successful in 42s
Build / build (22) (pull_request) Successful in 38s
Build / build (18) (push) Successful in 43s
Build / build (22) (push) Successful in 1m25s
Build / build (20) (pull_request) Successful in 1m9s

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.
This commit is contained in:
Sainan 2025-03-22 14:19:53 +01:00
parent c6a2785175
commit 0b954e97a2

View File

@ -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<INemesisStartRequest>(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({