feat: handle WeaponSkins picked up in missions (#1854)
Some checks failed
Build Docker image / docker (push) Has been cancelled
Build / build (push) Has been cancelled

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:
Sainan 2025-04-26 11:54:38 -07:00 committed by Sainan
parent 95c0ad7892
commit 4a6a5ea9cc
2 changed files with 9 additions and 1 deletions

View File

@ -30,6 +30,7 @@ import {
addMods,
addRecipes,
addShipDecorations,
addSkin,
addStanding,
combineInventoryChanges,
generateRewardSeed,
@ -411,6 +412,11 @@ export const addMissionInventoryUpdates = async (
upgrade.UpgradeFingerprint = clientUpgrade.UpgradeFingerprint; // primitive way to copy over the riven challenge progress
});
break;
case "WeaponSkins":
for (const item of value) {
addSkin(inventory, item.ItemType);
}
break;
case "Boosters":
value.forEach(booster => {
addBooster(booster.ItemType, booster.ExpiryDate, inventory);

View File

@ -20,7 +20,8 @@ import {
IDiscoveredMarker,
ILockedWeaponGroupClient,
ILoadOutPresets,
IInvasionProgressClient
IInvasionProgressClient,
IWeaponSkinClient
} from "./inventoryTypes/inventoryTypes";
import { IGroup } from "./loginTypes";
@ -101,6 +102,7 @@ export type IMissionInventoryUpdateRequest = {
}[];
CollectibleScans?: ICollectibleEntry[];
Upgrades?: IUpgradeClient[]; // riven challenge progress
WeaponSkins?: IWeaponSkinClient[];
StrippedItems?: {
DropTable: string;
DROP_MOD?: number[];