forked from OpenWF/SpaceNinjaServer
		
	Reviewed-on: OpenWF/SpaceNinjaServer#1270 Reviewed-by: Sainan <sainan@calamity.inc> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { ExportRegions } from "warframe-public-export-plus";
 | 
						|
import { IInfNode } from "@/src/types/inventoryTypes/inventoryTypes";
 | 
						|
 | 
						|
export const getInfNodes = (faction: string, rank: number): IInfNode[] => {
 | 
						|
    const infNodes = [];
 | 
						|
    const systemIndex = systemIndexes[faction][rank];
 | 
						|
    for (const [key, value] of Object.entries(ExportRegions)) {
 | 
						|
        if (
 | 
						|
            value.systemIndex === systemIndex &&
 | 
						|
            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
 | 
						|
            value.missionIndex != 41 && // not saya's visions
 | 
						|
            value.missionIndex != 42 && // not face off
 | 
						|
            value.name.indexOf("1999NodeI") == -1 && // not stage defence
 | 
						|
            value.name.indexOf("1999NodeJ") == -1 && // not lich bounty
 | 
						|
            value.name.indexOf("Archwing") == -1
 | 
						|
        ) {
 | 
						|
            //console.log(dict_en[value.name]);
 | 
						|
            infNodes.push({ Node: key, Influence: 1 });
 | 
						|
        }
 | 
						|
    }
 | 
						|
    return infNodes;
 | 
						|
};
 | 
						|
 | 
						|
const systemIndexes: Record<string, number[]> = {
 | 
						|
    FC_GRINEER: [2, 3, 9, 11, 18],
 | 
						|
    FC_CORPUS: [1, 15, 4, 7, 8],
 | 
						|
    FC_INFESTATION: [23]
 | 
						|
};
 |