fix: properly cap negative syndicate standing (#2393)
Closes #2388 Reviewed-on: #2393 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
61ac2f8b72
commit
41686aea88
@ -1266,8 +1266,8 @@ export const addStanding = (
|
|||||||
const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0);
|
const max = getMaxStanding(syndicateMeta, syndicate.Title ?? 0);
|
||||||
if (syndicate.Standing + gainedStanding > max) gainedStanding = max - syndicate.Standing;
|
if (syndicate.Standing + gainedStanding > max) gainedStanding = max - syndicate.Standing;
|
||||||
|
|
||||||
if (syndicate.Title == -2 && syndicate.Standing + gainedStanding < -71000) {
|
if (syndicate.Standing + gainedStanding < -71000) {
|
||||||
gainedStanding = -71000 + syndicate.Standing;
|
gainedStanding = -71000 - syndicate.Standing;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isMedallion || syndicateMeta.medallionsCappedByDailyLimit) {
|
if (!isMedallion || syndicateMeta.medallionsCappedByDailyLimit) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user