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,
|
ExportRecipes,
|
||||||
ExportResources,
|
ExportResources,
|
||||||
ExportSentinels,
|
ExportSentinels,
|
||||||
|
ExportSyndicates,
|
||||||
ExportUpgrades,
|
ExportUpgrades,
|
||||||
ExportWeapons,
|
ExportWeapons,
|
||||||
TStandingLimitBin
|
TStandingLimitBin
|
||||||
@ -1049,12 +1050,11 @@ export const addBooster = (ItemType: string, time: number, inventory: TInventory
|
|||||||
export const updateSyndicate = (
|
export const updateSyndicate = (
|
||||||
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>,
|
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>,
|
||||||
syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"]
|
syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"]
|
||||||
) => {
|
): void => {
|
||||||
syndicateUpdate?.forEach(affiliation => {
|
syndicateUpdate?.forEach(affiliation => {
|
||||||
const syndicate = inventory.Affiliations.find(x => x.Tag == affiliation.Tag);
|
const syndicate = inventory.Affiliations.find(x => x.Tag == affiliation.Tag);
|
||||||
if (syndicate !== undefined) {
|
if (syndicate !== undefined) {
|
||||||
syndicate.Standing =
|
syndicate.Standing += affiliation.Standing;
|
||||||
syndicate.Standing === undefined ? affiliation.Standing : syndicate.Standing + affiliation.Standing;
|
|
||||||
syndicate.Title = syndicate.Title === undefined ? affiliation.Title : syndicate.Title + affiliation.Title;
|
syndicate.Title = syndicate.Title === undefined ? affiliation.Title : syndicate.Title + affiliation.Title;
|
||||||
} else {
|
} else {
|
||||||
inventory.Affiliations.push({
|
inventory.Affiliations.push({
|
||||||
@ -1065,8 +1065,8 @@ export const updateSyndicate = (
|
|||||||
FreeFavorsUsed: []
|
FreeFavorsUsed: []
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
updateStandingLimit(inventory, ExportSyndicates[affiliation.Tag].dailyLimitBin, affiliation.Standing);
|
||||||
});
|
});
|
||||||
return { AffiliationMods: [] };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user