always end request
This commit is contained in:
		
							parent
							
								
									3e6448d80b
								
							
						
					
					
						commit
						2ca459b843
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user