fix: skipTutorial sets ReceivedStartingGear before giving the gear (#1780)
Some checks failed
Build Docker image / docker (push) Has been cancelled
Build / build (push) Has been cancelled

This was raising a warning when creating a new account.

Reviewed-on: #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:
Sainan 2025-04-22 10:00:38 -07:00 committed by Sainan
parent 3aa853f953
commit 23dafb53d1

View File

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