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: #1275
This commit is contained in:
parent
a0453ca61d
commit
57786bfffb
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user