chore: some minor improvements to nemesis mode=s #2126

Merged
Sainan merged 2 commits from improve-nemesis-spawn into main 2025-06-07 02:17:06 -07:00
Showing only changes of commit 0a5863e8b1 - Show all commits

View File

@ -171,7 +171,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
} else if ((req.query.mode as string) == "s") { } else if ((req.query.mode as string) == "s") {
const inventory = await getInventory(account._id.toString(), "Nemesis"); const inventory = await getInventory(account._id.toString(), "Nemesis");
if (inventory.Nemesis) { if (inventory.Nemesis) {
logger.warn(`account already has a nemesis but is requesting a new one; overwriting it`); logger.warn(`overwriting an existing nemesis as a new one is being requested`);
} }
const body = getJSONfromString<INemesisStartRequest>(String(req.body)); const body = getJSONfromString<INemesisStartRequest>(String(req.body));
body.target.fp = BigInt(body.target.fp); body.target.fp = BigInt(body.target.fp);