forked from OpenWF/SpaceNinjaServer
		
	fix: converting storeitems in missionRewards (#1017)
Fixes the acquisition of blueprints as rewards, such as those rewarded by the Junctions. Reviewed-on: OpenWF/SpaceNinjaServer#1017 Co-authored-by: VampireKitten <dynamightkobold@gmail.com> Co-committed-by: VampireKitten <dynamightkobold@gmail.com>
This commit is contained in:
		
							parent
							
								
									93afc2645c
								
							
						
					
					
						commit
						a27f1c5e01
					
				@ -351,7 +351,7 @@ export const addFixedLevelRewards = (
 | 
				
			|||||||
    if (rewards.items) {
 | 
					    if (rewards.items) {
 | 
				
			||||||
        for (const item of rewards.items) {
 | 
					        for (const item of rewards.items) {
 | 
				
			||||||
            MissionRewards.push({
 | 
					            MissionRewards.push({
 | 
				
			||||||
                StoreItem: `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
 | 
					                StoreItem: item.includes(`/StoreItems/`) ? item : `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
 | 
				
			||||||
                ItemCount: 1
 | 
					                ItemCount: 1
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -359,7 +359,9 @@ export const addFixedLevelRewards = (
 | 
				
			|||||||
    if (rewards.countedItems) {
 | 
					    if (rewards.countedItems) {
 | 
				
			||||||
        for (const item of rewards.countedItems) {
 | 
					        for (const item of rewards.countedItems) {
 | 
				
			||||||
            MissionRewards.push({
 | 
					            MissionRewards.push({
 | 
				
			||||||
                StoreItem: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
 | 
					                StoreItem: item.ItemType.includes(`/StoreItems/`)
 | 
				
			||||||
 | 
					                    ? item.ItemType
 | 
				
			||||||
 | 
					                    : `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
 | 
				
			||||||
                ItemCount: item.ItemCount
 | 
					                ItemCount: item.ItemCount
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user