From e4dd80474ba6cf39f04a651cc36ed5ba91cc3c12 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:15:51 +0200 Subject: [PATCH] feat: nemesis mode d --- src/controllers/api/nemesisController.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/controllers/api/nemesisController.ts b/src/controllers/api/nemesisController.ts index cc5602ba..2388d0a7 100644 --- a/src/controllers/api/nemesisController.ts +++ b/src/controllers/api/nemesisController.ts @@ -310,6 +310,17 @@ export const nemesisController: RequestHandler = async (req, res) => { res.json({ target: inventory.toJSON().Nemesis }); + } else if ((req.query.mode as string) == "d") { + const inventory = await getInventory(account._id.toString(), "NemesisHistory"); + const body = getJSONfromString(String(req.body)); + for (const fp of body.nemesisFingerprints) { + const index = inventory.NemesisHistory!.findIndex(x => x.fp == fp); + if (index != -1) { + inventory.NemesisHistory!.splice(index, 1); + } + } + await inventory.save(); + res.json(body); } else if ((req.query.mode as string) == "w") { const inventory = await getInventory(account._id.toString(), "Nemesis"); //const body = getJSONfromString(String(req.body)); @@ -447,3 +458,7 @@ const consumeModCharge = ( response.UpgradeNew.push(true); } }; + +interface IRelinquishAdversariesRequest { + nemesisFingerprints: (bigint | number)[]; +} -- 2.47.2