fix: skipTutorial sets ReceivedStartingGear before giving the gear #1780
@ -87,9 +87,7 @@ export const createInventory = async (
 | 
				
			|||||||
        const inventory = new Inventory({
 | 
					        const inventory = new Inventory({
 | 
				
			||||||
            accountOwnerId: accountOwnerId,
 | 
					            accountOwnerId: accountOwnerId,
 | 
				
			||||||
            LoadOutPresets: defaultItemReferences.loadOutPresetId,
 | 
					            LoadOutPresets: defaultItemReferences.loadOutPresetId,
 | 
				
			||||||
            Ships: [defaultItemReferences.ship],
 | 
					            Ships: [defaultItemReferences.ship]
 | 
				
			||||||
            PlayedParkourTutorial: config.skipTutorial,
 | 
					 | 
				
			||||||
            ReceivedStartingGear: config.skipTutorial
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        inventory.LibraryAvailableDailyTaskInfo = createLibraryDailyTask();
 | 
					        inventory.LibraryAvailableDailyTaskInfo = createLibraryDailyTask();
 | 
				
			||||||
@ -102,6 +100,7 @@ export const createInventory = async (
 | 
				
			|||||||
        await addItem(inventory, "/Lotus/Types/Friendly/PlayerControllable/Weapons/DuviriDualSwords");
 | 
					        await addItem(inventory, "/Lotus/Types/Friendly/PlayerControllable/Weapons/DuviriDualSwords");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (config.skipTutorial) {
 | 
					        if (config.skipTutorial) {
 | 
				
			||||||
 | 
					            inventory.PlayedParkourTutorial = true;
 | 
				
			||||||
            await addStartingGear(inventory);
 | 
					            await addStartingGear(inventory);
 | 
				
			||||||
            await completeQuest(inventory, "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain");
 | 
					            await completeQuest(inventory, "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user