多个核桃奖励会显示在任务奖励中
This commit is contained in:
		
							parent
							
								
									1aba63e5dc
								
							
						
					
					
						commit
						b82679315e
					
				@ -1367,8 +1367,20 @@ export const addMissionRewards = async (
 | 
			
		||||
        voidTearWave.Participants[0].QualifiesForReward &&
 | 
			
		||||
        !voidTearWave.Participants[0].HaveRewardResponse
 | 
			
		||||
    ) {
 | 
			
		||||
        const reward = await crackRelic(inventory, voidTearWave.Participants[0], inventoryChanges);
 | 
			
		||||
        MissionRewards.push({ StoreItem: reward.type, ItemCount: reward.itemCount });
 | 
			
		||||
        const relicReturn = await crackRelic(inventory, voidTearWave.Participants[0], inventoryChanges) as any;
 | 
			
		||||
        if (relicReturn.allRewards && Array.isArray(relicReturn.allRewards)) {
 | 
			
		||||
            relicReturn.allRewards.forEach((rewardItem: any) => {
 | 
			
		||||
                MissionRewards.push({ 
 | 
			
		||||
                    StoreItem: rewardItem.type, 
 | 
			
		||||
                    ItemCount: rewardItem.itemCount 
 | 
			
		||||
                });
 | 
			
		||||
            });
 | 
			
		||||
        } else {
 | 
			
		||||
            MissionRewards.push({ 
 | 
			
		||||
                StoreItem: relicReturn.type, 
 | 
			
		||||
                ItemCount: relicReturn.itemCount 
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (strippedItems) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user