XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified src/services/inventoryService.ts +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) {