fix: give quest completion items from cheated completion too #1376

Merged
Sainan merged 2 commits from cheat-quest-items into main 2025-03-30 08:13:25 -07:00
Showing only changes of commit 2aa8219bf6 - Show all commits

View File

@ -211,8 +211,14 @@ export const completeQuest = async (inventory: TInventoryDatabaseDocument, quest
}
}
}
const questCompletionItems = getQuestCompletionItems(questKey);
logger.debug(`quest completion items`, questCompletionItems);
if (questCompletionItems) {
await addItems(inventory, questCompletionItems);
}
inventory.ActiveQuest = "";
//TODO: handle quest completion items
};
export const giveKeyChainItem = async (