forked from OpenWF/SpaceNinjaServer
		
	add required item
This commit is contained in:
		
							parent
							
								
									317fb8324f
								
							
						
					
					
						commit
						cc92609740
					
				
							
								
								
									
										8
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -17,7 +17,7 @@
 | 
				
			|||||||
        "morgan": "^1.10.0",
 | 
					        "morgan": "^1.10.0",
 | 
				
			||||||
        "ncp": "^2.0.0",
 | 
					        "ncp": "^2.0.0",
 | 
				
			||||||
        "undici": "^7.10.0",
 | 
					        "undici": "^7.10.0",
 | 
				
			||||||
        "warframe-public-export-plus": "^0.5.89",
 | 
					        "warframe-public-export-plus": "^0.5.90",
 | 
				
			||||||
        "warframe-riven-info": "^0.1.2",
 | 
					        "warframe-riven-info": "^0.1.2",
 | 
				
			||||||
        "winston": "^3.17.0",
 | 
					        "winston": "^3.17.0",
 | 
				
			||||||
        "winston-daily-rotate-file": "^5.0.0",
 | 
					        "winston-daily-rotate-file": "^5.0.0",
 | 
				
			||||||
@ -5532,9 +5532,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/warframe-public-export-plus": {
 | 
					    "node_modules/warframe-public-export-plus": {
 | 
				
			||||||
      "version": "0.5.89",
 | 
					      "version": "0.5.90",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.89.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.90.tgz",
 | 
				
			||||||
      "integrity": "sha512-a6dM1MirzofSsuv3LlRQHFLSSIGKPVSN93dcXSDmA3njsWqOGjJJdWyXqcyxxYw8rEB8CNowSHst/MUmKvKlRg=="
 | 
					      "integrity": "sha512-PzYFJ+qOZawPOVx9+hGlOosGdqSJMSRL6c1z3CCXMiY5SEHUs7p9JIMjkqnvg1g7vflVWnyG6E5/2gYkQs0d7w=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/warframe-riven-info": {
 | 
					    "node_modules/warframe-riven-info": {
 | 
				
			||||||
      "version": "0.1.2",
 | 
					      "version": "0.1.2",
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,7 @@
 | 
				
			|||||||
    "morgan": "^1.10.0",
 | 
					    "morgan": "^1.10.0",
 | 
				
			||||||
    "ncp": "^2.0.0",
 | 
					    "ncp": "^2.0.0",
 | 
				
			||||||
    "undici": "^7.10.0",
 | 
					    "undici": "^7.10.0",
 | 
				
			||||||
    "warframe-public-export-plus": "^0.5.89",
 | 
					    "warframe-public-export-plus": "^0.5.90",
 | 
				
			||||||
    "warframe-riven-info": "^0.1.2",
 | 
					    "warframe-riven-info": "^0.1.2",
 | 
				
			||||||
    "winston": "^3.17.0",
 | 
					    "winston": "^3.17.0",
 | 
				
			||||||
    "winston-daily-rotate-file": "^5.0.0",
 | 
					    "winston-daily-rotate-file": "^5.0.0",
 | 
				
			||||||
 | 
				
			|||||||
@ -2376,7 +2376,14 @@ const collectSkins = (skins: string[], weaponMap: Map<string, string>, itemsToAd
 | 
				
			|||||||
    for (const skinId of skins) {
 | 
					    for (const skinId of skins) {
 | 
				
			||||||
        if (skinId.startsWith("ca70ca70ca70ca70")) {
 | 
					        if (skinId.startsWith("ca70ca70ca70ca70")) {
 | 
				
			||||||
            const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
 | 
					            const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
 | 
				
			||||||
            if (!weaponMap.has(typeName)) itemsToAdd.add(typeName);
 | 
					            if (!weaponMap.has(typeName)) {
 | 
				
			||||||
 | 
					                const { requirement } = ExportCustoms[typeName];
 | 
				
			||||||
 | 
					                if (typeof requirement == "string") {
 | 
				
			||||||
 | 
					                    itemsToAdd.add(requirement);
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    itemsToAdd.add(typeName);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -2385,8 +2392,14 @@ const replaceSkinIds = (skins: string[], weaponMap: Map<string, string>): void =
 | 
				
			|||||||
    for (let i = 0; i < skins.length; i++) {
 | 
					    for (let i = 0; i < skins.length; i++) {
 | 
				
			||||||
        const skinId = skins[i];
 | 
					        const skinId = skins[i];
 | 
				
			||||||
        if (skinId.startsWith("ca70ca70ca70ca70")) {
 | 
					        if (skinId.startsWith("ca70ca70ca70ca70")) {
 | 
				
			||||||
            const inventoryId = weaponMap.get(skinLookupTable[parseInt(skinId.slice(16), 16)]);
 | 
					            const typeName = skinLookupTable[parseInt(skinId.slice(16), 16)];
 | 
				
			||||||
            if (inventoryId) skins[i] = inventoryId;
 | 
					            const inventoryId = weaponMap.get(typeName);
 | 
				
			||||||
 | 
					            if (inventoryId) {
 | 
				
			||||||
 | 
					                skins[i] = inventoryId;
 | 
				
			||||||
 | 
					            } else if (typeName in ExportCustoms) {
 | 
				
			||||||
 | 
					                const { requirement } = ExportCustoms[typeName];
 | 
				
			||||||
 | 
					                skins[i] = typeof requirement == "string" ? typeName : "";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user