fix: subtract standing gained in missions from daily bin
All checks were successful
Build / build (20) (push) Successful in 1m16s
Build / build (22) (push) Successful in 1m18s
Build / build (18) (push) Successful in 1m21s
Build / build (18) (pull_request) Successful in 39s
Build / build (22) (pull_request) Successful in 55s
Build / build (20) (pull_request) Successful in 44s
All checks were successful
Build / build (20) (push) Successful in 1m16s
Build / build (22) (push) Successful in 1m18s
Build / build (18) (push) Successful in 1m21s
Build / build (18) (pull_request) Successful in 39s
Build / build (22) (pull_request) Successful in 55s
Build / build (20) (pull_request) Successful in 44s
This commit is contained in:
parent
0f250c6103
commit
cb7ead6817
@ -41,6 +41,7 @@ import {
|
||||
ExportRecipes,
|
||||
ExportResources,
|
||||
ExportSentinels,
|
||||
ExportSyndicates,
|
||||
ExportUpgrades,
|
||||
ExportWeapons,
|
||||
TStandingLimitBin
|
||||
@ -1049,12 +1050,11 @@ export const addBooster = (ItemType: string, time: number, inventory: TInventory
|
||||
export const updateSyndicate = (
|
||||
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>,
|
||||
syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"]
|
||||
) => {
|
||||
): void => {
|
||||
syndicateUpdate?.forEach(affiliation => {
|
||||
const syndicate = inventory.Affiliations.find(x => x.Tag == affiliation.Tag);
|
||||
if (syndicate !== undefined) {
|
||||
syndicate.Standing =
|
||||
syndicate.Standing === undefined ? affiliation.Standing : syndicate.Standing + affiliation.Standing;
|
||||
syndicate.Standing += affiliation.Standing;
|
||||
syndicate.Title = syndicate.Title === undefined ? affiliation.Title : syndicate.Title + affiliation.Title;
|
||||
} else {
|
||||
inventory.Affiliations.push({
|
||||
@ -1065,8 +1065,8 @@ export const updateSyndicate = (
|
||||
FreeFavorsUsed: []
|
||||
});
|
||||
}
|
||||
updateStandingLimit(inventory, ExportSyndicates[affiliation.Tag].dailyLimitBin, affiliation.Standing);
|
||||
});
|
||||
return { AffiliationMods: [] };
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user