From 62eeb313ec1f2c723b4f0ba704764c5a94aae053 Mon Sep 17 00:00:00 2001 From: nyaoouo Date: Thu, 12 Jun 2025 04:54:41 -0700 Subject: [PATCH] feat: nightwaveStandingMultiplier cheat (#2145) Co-authored-by: nyaoouo <64143453+nyaoouo@users.noreply.github.com> Co-authored-by: ny <64143453+nyaoouo@users.noreply.github.com> Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2145 Co-authored-by: nyaoouo Co-committed-by: nyaoouo --- src/services/configService.ts | 1 + src/services/inventoryService.ts | 5 +++-- 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 + 9 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/services/configService.ts b/src/services/configService.ts index dc8a78bc..1989330a 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -65,6 +65,7 @@ interface IConfig { vallisOverride?: string; nightwaveOverride?: string; }; + nightwaveStandingMultiplier?: number; } export const configPath = path.join(repoDir, "config.json"); diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 5194f771..ae9158c5 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1773,13 +1773,14 @@ export const addChallenges = ( }) - 1 ]; } - affiliation.Standing += meta.standing!; + const standingToAdd = meta.standing! * (config.nightwaveStandingMultiplier ?? 1); + affiliation.Standing += standingToAdd; if (affiliationMods.length == 0) { affiliationMods.push({ Tag: nightwaveSyndicateTag }); } affiliationMods[0].Standing ??= 0; - affiliationMods[0].Standing += meta.standing!; + affiliationMods[0].Standing += standingToAdd; } } } diff --git a/static/webui/index.html b/static/webui/index.html index 643270a7..398eb647 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -736,6 +736,10 @@ +
+ + +
diff --git a/static/webui/translations/de.js b/static/webui/translations/de.js index 4e1b8a2d..db9492b3 100644 --- a/static/webui/translations/de.js +++ b/static/webui/translations/de.js @@ -164,6 +164,7 @@ dict = { cheats_noDojoResearchTime: `Keine Dojo-Forschungszeit`, cheats_fastClanAscension: `Schneller Clan-Aufstieg`, cheats_spoofMasteryRank: `Gefälschter Meisterschaftsrang (-1 zum deaktivieren)`, + cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`, cheats_saveSettings: `Einstellungen speichern`, cheats_account: `Account`, cheats_unlockAllFocusSchools: `Alle Fokus-Schulen freischalten`, diff --git a/static/webui/translations/en.js b/static/webui/translations/en.js index 79cec6e7..1cb2b365 100644 --- a/static/webui/translations/en.js +++ b/static/webui/translations/en.js @@ -163,6 +163,7 @@ dict = { cheats_noDojoResearchTime: `No Dojo Research Time`, cheats_fastClanAscension: `Fast Clan Ascension`, cheats_spoofMasteryRank: `Spoofed Mastery Rank (-1 to disable)`, + cheats_nightwaveStandingMultiplier: `Nightwave Standing Multiplier`, cheats_saveSettings: `Save Settings`, cheats_account: `Account`, cheats_unlockAllFocusSchools: `Unlock All Focus Schools`, diff --git a/static/webui/translations/es.js b/static/webui/translations/es.js index 72d8453b..87d98ca3 100644 --- a/static/webui/translations/es.js +++ b/static/webui/translations/es.js @@ -164,6 +164,7 @@ dict = { cheats_noDojoResearchTime: `Sin tiempo de investigación del dojo`, cheats_fastClanAscension: `Ascenso rápido del clan`, cheats_spoofMasteryRank: `Rango de maestría simulado (-1 para desactivar)`, + cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`, cheats_saveSettings: `Guardar configuración`, cheats_account: `Cuenta`, cheats_unlockAllFocusSchools: `Desbloquear todas las escuelas de enfoque`, diff --git a/static/webui/translations/fr.js b/static/webui/translations/fr.js index bc079ef0..4f039319 100644 --- a/static/webui/translations/fr.js +++ b/static/webui/translations/fr.js @@ -164,6 +164,7 @@ dict = { cheats_noDojoResearchTime: `Aucun temps de recherche (Dojo)`, cheats_fastClanAscension: `Ascension de clan rapide`, cheats_spoofMasteryRank: `Rang de maîtrise personnalisé (-1 pour désactiver)`, + cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`, cheats_saveSettings: `Sauvegarder les paramètres`, cheats_account: `Compte`, cheats_unlockAllFocusSchools: `Débloquer toutes les écoles de focus`, diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js index c99ca154..e159c189 100644 --- a/static/webui/translations/ru.js +++ b/static/webui/translations/ru.js @@ -164,6 +164,7 @@ dict = { cheats_noDojoResearchTime: `Мгновенные Исследование Додзё`, cheats_fastClanAscension: `Мгновенное Вознесение Клана`, cheats_spoofMasteryRank: `Подделанный ранг мастерства (-1 для отключения)`, + cheats_nightwaveStandingMultiplier: `[UNTRANSLATED] Nightwave Standing Multiplier`, cheats_saveSettings: `Сохранить настройки`, cheats_account: `Аккаунт`, cheats_unlockAllFocusSchools: `Разблокировать все школы фокуса`, diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js index d6eb68b3..813c3d38 100644 --- a/static/webui/translations/zh.js +++ b/static/webui/translations/zh.js @@ -164,6 +164,7 @@ dict = { cheats_noDojoResearchTime: `无视道场研究时间`, cheats_fastClanAscension: `快速升级氏族`, cheats_spoofMasteryRank: `伪造精通段位(-1为禁用)`, + cheats_nightwaveStandingMultiplier: `午夜电波声望倍率`, cheats_saveSettings: `保存设置`, cheats_account: `账户`, cheats_unlockAllFocusSchools: `解锁所有专精学派`,