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