Skip to content

Commit

Permalink
fix: unable to spawn all enemies in simulacrum despite unlockAllScans (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan authored Dec 28, 2024
1 parent 494f219 commit 3ae2338
Show file tree
Hide file tree
Showing 2 changed files with 766 additions and 11,356 deletions.
6 changes: 6 additions & 0 deletions src/controllers/stats/viewController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
};
Expand Down
Loading

0 comments on commit 3ae2338

Please sign in to comment.