From 61b20d59819bb6e85f6bac13d284aedd0baf5c97 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 27 Dec 2024 21:12:02 +0100 Subject: [PATCH] fix: unable to spawn all enemies in simulacrum despite unlockAllScans --- src/controllers/stats/viewController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/stats/viewController.ts b/src/controllers/stats/viewController.ts index 58d9caa9..e89759df 100644 --- a/src/controllers/stats/viewController.ts +++ b/src/controllers/stats/viewController.ts @@ -4,6 +4,7 @@ import { Inventory } from "@/src/models/inventoryModels/inventoryModel"; import { IStatsView } from "@/src/types/statTypes"; import { config } from "@/src/services/configService"; import allScans from "@/static/fixed_responses/allScans.json"; +import { ExportEnemies } from "warframe-public-export-plus"; const viewController: RequestHandler = async (req, res) => { const accountId = await getAccountIdForRequest(req); @@ -23,6 +24,11 @@ const viewController: RequestHandler = async (req, res) => { } if (config.unlockAllScans) { responseJson.Scans = allScans; + for (const type of Object.keys(ExportEnemies.avatars)) { + if (!responseJson.Scans.find(x => x.type == type)) { + responseJson.Scans.push({ type, scans: 9999 }); + } + } } res.json(responseJson); };