fix: always apply negative standing cap
All checks were successful
Build / build (pull_request) Successful in 45s
All checks were successful
Build / build (pull_request) Successful in 45s
This commit is contained in:
parent
8c85cdcd1d
commit
ef6e60fd11
@ -1266,7 +1266,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user