fix: skipTutorial sets ReceivedStartingGear before giving the gear (#1780)
This was raising a warning when creating a new account. Reviewed-on: OpenWF/SpaceNinjaServer#1780 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:
		
							parent
							
								
									3aa853f953
								
							
						
					
					
						commit
						23dafb53d1
					
				@ -87,9 +87,7 @@ export const createInventory = async (
 | 
			
		||||
        const inventory = new Inventory({
 | 
			
		||||
            accountOwnerId: accountOwnerId,
 | 
			
		||||
            LoadOutPresets: defaultItemReferences.loadOutPresetId,
 | 
			
		||||
            Ships: [defaultItemReferences.ship],
 | 
			
		||||
            PlayedParkourTutorial: config.skipTutorial,
 | 
			
		||||
            ReceivedStartingGear: config.skipTutorial
 | 
			
		||||
            Ships: [defaultItemReferences.ship]
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        inventory.LibraryAvailableDailyTaskInfo = createLibraryDailyTask();
 | 
			
		||||
@ -102,6 +100,7 @@ export const createInventory = async (
 | 
			
		||||
        await addItem(inventory, "/Lotus/Types/Friendly/PlayerControllable/Weapons/DuviriDualSwords");
 | 
			
		||||
 | 
			
		||||
        if (config.skipTutorial) {
 | 
			
		||||
            inventory.PlayedParkourTutorial = true;
 | 
			
		||||
            await addStartingGear(inventory);
 | 
			
		||||
            await completeQuest(inventory, "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user