From cfd50e74024cb37ff97725acce2db330aec74ce7 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 23 Jun 2025 04:54:54 -0700 Subject: [PATCH] feat: unlockAllSimarisResearchEntries cheat (#2252) Closes #1869 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2252 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- config.json.example | 1 + src/controllers/api/inventoryController.ts | 13 +++++++++++++ src/services/configService.ts | 1 + static/webui/index.html | 4 ++++ static/webui/translations/de.js | 1 + static/webui/translations/en.js | 1 + static/webui/translations/es.js | 1 + static/webui/translations/fr.js | 1 + static/webui/translations/ru.js | 1 + static/webui/translations/zh.js | 1 + 10 files changed, 25 insertions(+) diff --git a/config.json.example b/config.json.example index 72495c8b..50061401 100644 --- a/config.json.example +++ b/config.json.example @@ -55,6 +55,7 @@ "noDojoResearchTime": false, "fastClanAscension": false, "missionsCanGiveAllRelics": false, + "unlockAllSimarisResearchEntries": false, "spoofMasteryRank": -1, "nightwaveStandingMultiplier": 1, "worldState": { diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index ed4b8cff..ecc32ec3 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -334,6 +334,19 @@ export const getInventoryResponse = async ( } } + if (config.unlockAllSimarisResearchEntries) { + inventoryResponse.LibraryPersonalTarget = undefined; + inventoryResponse.LibraryPersonalProgress = [ + "/Lotus/Types/Game/Library/Targets/Research1Target", + "/Lotus/Types/Game/Library/Targets/Research2Target", + "/Lotus/Types/Game/Library/Targets/Research3Target", + "/Lotus/Types/Game/Library/Targets/Research4Target", + "/Lotus/Types/Game/Library/Targets/Research5Target", + "/Lotus/Types/Game/Library/Targets/Research6Target", + "/Lotus/Types/Game/Library/Targets/Research7Target" + ].map(type => ({ TargetType: type, Scans: 10, Completed: true })); + } + return inventoryResponse; }; diff --git a/src/services/configService.ts b/src/services/configService.ts index 74b8f5b7..ab91cf79 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -62,6 +62,7 @@ export interface IConfig { noDojoResearchTime?: boolean; fastClanAscension?: boolean; missionsCanGiveAllRelics?: boolean; + unlockAllSimarisResearchEntries?: boolean; spoofMasteryRank?: number; nightwaveStandingMultiplier?: number; worldState?: { diff --git a/static/webui/index.html b/static/webui/index.html index 5eb4b297..e7fba33c 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -756,6 +756,10 @@ +