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: OpenWF/SpaceNinjaServer#1275
This commit is contained in:
Sainan 2025-03-22 07:30:29 -07:00
parent a0453ca61d
commit 57786bfffb

View File

@ -66,7 +66,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
}
res.json({ GuessResult: guessResult });
} 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);
@ -120,7 +120,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({