fix giveKeyChainTriggeredItems itemType

This commit is contained in:
Master 2024-06-25 13:35:08 +08:00
parent 1ad3899955
commit 7679ddec16

View File

@ -81,11 +81,9 @@ export const giveKeyChainTriggeredItems = async (accountId: string, keyChain: st
if (quest.chainStages) { if (quest.chainStages) {
const stage = quest.chainStages[chainStage]; const stage = quest.chainStages[chainStage];
if (stage.itemsToGiveWhenTriggered.length > 0) { if (stage.itemsToGiveWhenTriggered.length > 0) {
let itemType = stage.itemsToGiveWhenTriggered[0]; const itemType = stage.itemsToGiveWhenTriggered[0];
if (itemType.indexOf("") > 0) {
itemType = itemType.replace("/Lotus/StoreItems/", "/Lotus/"); await addItem(accountId, itemType.replace("/Lotus/StoreItems/", "/Lotus/"), 1);
}
await addItem(accountId, itemType, 1);
if (itemType in ExportRecipes) { if (itemType in ExportRecipes) {
return { return {