feat: handle WeaponSkins picked up in missions
For boss sigils
This commit is contained in:
		
							parent
							
								
									c7c416c100
								
							
						
					
					
						commit
						7c75182a4a
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
@ -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[];
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user