fix: skipTutorial sets ReceivedStartingGear before giving the gear
This was raising a warning when creating a new account.
This commit is contained in:
parent
a49edefbd1
commit
11c1c1b49f
@ -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