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] 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) {