fix: skipTutorial sets ReceivedStartingGear before giving the gear
All checks were successful
Build / build (push) Successful in 1m31s
Build / build (pull_request) Successful in 50s

This was raising a warning when creating a new account.
This commit is contained in:
Sainan 2025-04-22 03:43:48 +02:00
parent a49edefbd1
commit 11c1c1b49f

View File

@ -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");