From 41686aea88e69149cf6bf6642546c801b4084111 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:08:57 -0700 Subject: [PATCH 1/2] fix: properly cap negative syndicate standing (#2393) Closes #2388 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2393 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/services/inventoryService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 69299ec8..68e6b7cc 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1266,8 +1266,8 @@ export const addStanding = ( const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0); if (syndicate.Standing + gainedStanding > max) gainedStanding = max - syndicate.Standing; - if (syndicate.Title == -2 && syndicate.Standing + gainedStanding < -71000) { - gainedStanding = -71000 + syndicate.Standing; + if (syndicate.Standing + gainedStanding < -71000) { + gainedStanding = -71000 - syndicate.Standing; } if (!isMedallion || syndicateMeta.medallionsCappedByDailyLimit) { From 46d37d36887d17faf69f767e576a473e263fec18 Mon Sep 17 00:00:00 2001 From: Corvus Date: Thu, 3 Jul 2025 11:09:07 -0700 Subject: [PATCH 2/2] chore(webui): update Chinese translation (#2396) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2396 Co-authored-by: Corvus Co-committed-by: Corvus --- static/webui/translations/zh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/webui/translations/zh.js b/static/webui/translations/zh.js index 2e7c1cb2..bb8677ed 100644 --- a/static/webui/translations/zh.js +++ b/static/webui/translations/zh.js @@ -127,7 +127,7 @@ dict = { mods_fingerprintHelp: `需要印记相关的帮助?`, mods_rivens: `裂罅MOD`, mods_mods: `Mods`, - mods_addMax: `设为满级`, + mods_addMax: `添加(满级)`, mods_addMissingUnrankedMods: `添加所有缺失的Mods`, mods_removeUnranked: `删除所有未升级的Mods`, mods_addMissingMaxRankMods: `添加所有缺失的满级Mods`,