返回提交历史
Modified
src/services/inventoryService.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
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>
41686aea
代码差异
1 个文件
+2
-2
@@ -1266,8 +1266,8 @@ export const addStanding = (
1266
1266
const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0);
1267
1267
if (syndicate.Standing + gainedStanding > max) gainedStanding = max - syndicate.Standing;
1268
1268
1269
if (syndicate.Title == -2 && syndicate.Standing + gainedStanding < -71000) {
1270
gainedStanding = -71000 + syndicate.Standing;
1269
if (syndicate.Standing + gainedStanding < -71000) {
1270
gainedStanding = -71000 - syndicate.Standing;
1271
1271
}
1272
1272
1273
1273
if (!isMedallion || syndicateMeta.medallionsCappedByDailyLimit) {