feat: start nemesis #1227
@ -17,8 +17,8 @@ export const nemesisController: RequestHandler = async (req, res) => {
 | 
			
		||||
        for (const [key, value] of Object.entries(ExportRegions)) {
 | 
			
		||||
            if (
 | 
			
		||||
                value.systemIndex == 2 && // earth
 | 
			
		||||
                value.nodeType != 3 && // hub
 | 
			
		||||
                value.nodeType != 7 && // junction
 | 
			
		||||
                value.nodeType != 3 && // not hub
 | 
			
		||||
                value.nodeType != 7 && // not junction
 | 
			
		||||
                value.missionIndex && // must have a mission type and not assassination
 | 
			
		||||
                value.missionIndex != 28 && // not open world
 | 
			
		||||
                value.missionIndex != 32 && // not railjack
 | 
			
		||||
@ -75,7 +75,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
 | 
			
		||||
            HenchmenKilled: 0,
 | 
			
		||||
            SecondInCommand: body.target.SecondInCommand
 | 
			
		||||
        };
 | 
			
		||||
        inventory.NemesisAbandonedRewards = [];
 | 
			
		||||
        inventory.NemesisAbandonedRewards = []; // unclear if we need to do this since the client also submits this with missionInventoryUpdate
 | 
			
		||||
        await inventory.save();
 | 
			
		||||
 | 
			
		||||
        res.json({
 | 
			
		||||
 | 
			
		||||
@ -11,6 +11,7 @@ import { registerLogFileCreationListener } from "@/src/utils/logger";
 | 
			
		||||
import mongoose from "mongoose";
 | 
			
		||||
 | 
			
		||||
// Patch JSON.stringify to work flawlessly with Bigints. Yeah, it's not pretty.
 | 
			
		||||
// TODO: Might wanna use json-with-bigint if/when possible.
 | 
			
		||||
{
 | 
			
		||||
    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
 | 
			
		||||
    (BigInt.prototype as any).toJSON = function (): string {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user