forked from OpenWF/SpaceNinjaServer
		
	give cheeky sprodling items for completing all trips
This commit is contained in:
		
							parent
							
								
									244c6df4f0
								
							
						
					
					
						commit
						6da3e30348
					
				@ -1391,7 +1391,10 @@ export const addStanding = (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// TODO: AffiliationMods support (Nightwave).
 | 
					// TODO: AffiliationMods support (Nightwave).
 | 
				
			||||||
export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise<IUpdateNodeIntrosResponse> => {
 | 
					export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise<IUpdateNodeIntrosResponse> => {
 | 
				
			||||||
    const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems ShipDecorations");
 | 
					    const inventory = await getInventory(
 | 
				
			||||||
 | 
					        accountId,
 | 
				
			||||||
 | 
					        "NodeIntrosCompleted MiscItems ShipDecorations FlavourItems WeaponSkins"
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Make it an array for easier parsing.
 | 
					    // Make it an array for easier parsing.
 | 
				
			||||||
    if (typeof data.NodeIntrosCompleted === "string") {
 | 
					    if (typeof data.NodeIntrosCompleted === "string") {
 | 
				
			||||||
@ -1426,6 +1429,13 @@ export const updateGeneric = async (data: IGenericUpdate, accountId: string): Pr
 | 
				
			|||||||
            await addEmailItem(inventory, "/Lotus/Types/Items/EmailItems/BeatCaliberChicksEmailItem", inventoryChanges);
 | 
					            await addEmailItem(inventory, "/Lotus/Types/Items/EmailItems/BeatCaliberChicksEmailItem", inventoryChanges);
 | 
				
			||||||
        } else if (node == "ClearedFiveLoops") {
 | 
					        } else if (node == "ClearedFiveLoops") {
 | 
				
			||||||
            await addEmailItem(inventory, "/Lotus/Types/Items/EmailItems/ClearedFiveLoopsEmailItem", inventoryChanges);
 | 
					            await addEmailItem(inventory, "/Lotus/Types/Items/EmailItems/ClearedFiveLoopsEmailItem", inventoryChanges);
 | 
				
			||||||
 | 
					        } else if (node == "NokkoVisions_AllCompleted") {
 | 
				
			||||||
 | 
					            addCustomization(
 | 
				
			||||||
 | 
					                inventory,
 | 
				
			||||||
 | 
					                "/Lotus/Types/StoreItems/AvatarImages/Warframes/NokkoBabySecretGlyph",
 | 
				
			||||||
 | 
					                inventoryChanges
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					            addSkin(inventory, "/Lotus/Upgrades/Skins/Clan/NokkoBabySecretEmblemItem", inventoryChanges);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    await inventory.save();
 | 
					    await inventory.save();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user