always end request
All checks were successful
Build / build (push) Successful in 44s
Build / build (pull_request) Successful in 43s

This commit is contained in:
Sainan 2025-06-07 01:02:52 +02:00
parent 3e6448d80b
commit 2ca459b843

View File

@ -150,9 +150,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
res.json(response);
} else {
const passcode = getNemesisPasscode(inventory.Nemesis!);
if (passcode[body.position] != body.guess) {
res.end();
} else {
if (passcode[body.position] == body.guess) {
const manifest = getNemesisManifest(inventory.Nemesis!.manifest);
if (inventory.Nemesis!.Rank + 1 < manifest.systemIndexes.length) {
inventory.Nemesis!.Rank += 1;
@ -161,6 +159,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
res.json({ RankIncrease: 1 });
}
}
res.end();
}
} else if ((req.query.mode as string) == "rs") {
// report spawn; POST but no application data in body