feat: adjust server-side vendor prices according to syndicate standings #2076

Merged
Sainan merged 4 commits from vendor-syndicate-factor into main 2025-05-16 20:01:20 -07:00
Showing only changes of commit 12bdfae1cf - Show all commits

View File

@ -157,9 +157,7 @@ export const applyStandingToVendorManifest = (
if (offer.Affiliation && offer.ReductionPerPositiveRank && offer.IncreasePerNegativeRank) {
const title: number = inventory.Affiliations.find(x => x.Tag == offer.Affiliation)?.Title ?? 0;
const factor =
1 +
(title < 0 ? offer.IncreasePerNegativeRank * title : offer.ReductionPerPositiveRank * title) *
-1;
1 + (title < 0 ? offer.IncreasePerNegativeRank : offer.ReductionPerPositiveRank) * title * -1;
//console.log(offer.Affiliation, title, factor);
if (factor) {
offer = { ...offer };