feat: handle WeaponSkins picked up in missions (#1854)
For sigils. Closes #1839 Reviewed-on: #1854 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
95c0ad7892
commit
4a6a5ea9cc
@ -30,6 +30,7 @@ import {
|
|||||||
addMods,
|
addMods,
|
||||||
addRecipes,
|
addRecipes,
|
||||||
addShipDecorations,
|
addShipDecorations,
|
||||||
|
addSkin,
|
||||||
addStanding,
|
addStanding,
|
||||||
combineInventoryChanges,
|
combineInventoryChanges,
|
||||||
generateRewardSeed,
|
generateRewardSeed,
|
||||||
@ -411,6 +412,11 @@ export const addMissionInventoryUpdates = async (
|
|||||||
upgrade.UpgradeFingerprint = clientUpgrade.UpgradeFingerprint; // primitive way to copy over the riven challenge progress
|
upgrade.UpgradeFingerprint = clientUpgrade.UpgradeFingerprint; // primitive way to copy over the riven challenge progress
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "WeaponSkins":
|
||||||
|
for (const item of value) {
|
||||||
|
addSkin(inventory, item.ItemType);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "Boosters":
|
case "Boosters":
|
||||||
value.forEach(booster => {
|
value.forEach(booster => {
|
||||||
addBooster(booster.ItemType, booster.ExpiryDate, inventory);
|
addBooster(booster.ItemType, booster.ExpiryDate, inventory);
|
||||||
|
@ -20,7 +20,8 @@ import {
|
|||||||
IDiscoveredMarker,
|
IDiscoveredMarker,
|
||||||
ILockedWeaponGroupClient,
|
ILockedWeaponGroupClient,
|
||||||
ILoadOutPresets,
|
ILoadOutPresets,
|
||||||
IInvasionProgressClient
|
IInvasionProgressClient,
|
||||||
|
IWeaponSkinClient
|
||||||
} from "./inventoryTypes/inventoryTypes";
|
} from "./inventoryTypes/inventoryTypes";
|
||||||
import { IGroup } from "./loginTypes";
|
import { IGroup } from "./loginTypes";
|
||||||
|
|
||||||
@ -101,6 +102,7 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
}[];
|
}[];
|
||||||
CollectibleScans?: ICollectibleEntry[];
|
CollectibleScans?: ICollectibleEntry[];
|
||||||
Upgrades?: IUpgradeClient[]; // riven challenge progress
|
Upgrades?: IUpgradeClient[]; // riven challenge progress
|
||||||
|
WeaponSkins?: IWeaponSkinClient[];
|
||||||
StrippedItems?: {
|
StrippedItems?: {
|
||||||
DropTable: string;
|
DropTable: string;
|
||||||
DROP_MOD?: number[];
|
DROP_MOD?: number[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user