diff --git a/repo/js/使用料理/main.js b/repo/js/使用料理/main.js index 1f215625..ca19f1c8 100644 --- a/repo/js/使用料理/main.js +++ b/repo/js/使用料理/main.js @@ -1,6 +1,7 @@ (async function () { let foodName = settings.foodName ?? 0; if(foodName){ +await genshin.returnMainUi(); await sleep(1000); keyPress("B");//打开背包 await sleep(2000); @@ -12,15 +13,7 @@ click(195, 1020);//重置 await sleep(1000); click(110, 110);//输入名字 await sleep(1000); -//恢复类食物click(75, 265); -//攻击类食物click(75, 350); -//冒险类食物click(75, 435); -//防御类食物click(75, 520); -//药剂click(75, 610); -for (const char of foodName) { - keyPress(char); - await sleep(500); -} +inputText(`${foodName}`); keyPress("SPACE"); await sleep(500); click(490, 1020);//确认筛选 @@ -31,6 +24,7 @@ click(1690, 1015);//使用 await sleep(1000); keyPress("ESCAPE"); await sleep(1500); -}; +await genshin.returnMainUi(); +} })(); diff --git a/repo/js/使用料理/manifest.json b/repo/js/使用料理/manifest.json index aec43194..2d3b87b7 100644 --- a/repo/js/使用料理/manifest.json +++ b/repo/js/使用料理/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 1, "name": "料理使用", - "version": "1.0", - "description": "请输入料理名称常见部分的拼音小写,比如月亮派输入yueliang", + "version": "1.1", + "description": "请输入料理全部名称,需要0.44.6以及以上版本", "authors": [ { "name": "柒叶子", @@ -11,4 +11,4 @@ ], "settings_ui": "settings.json", "main": "main.js" -} \ No newline at end of file +} diff --git a/repo/js/使用料理/settings.json b/repo/js/使用料理/settings.json index 07e320af..122b323e 100644 --- a/repo/js/使用料理/settings.json +++ b/repo/js/使用料理/settings.json @@ -2,6 +2,6 @@ { "name": "foodName", "type": "input-text", - "label": "请输入料理名称常见部分的拼音小写(月亮派,yueliang)" + "label": "请输入料理的正确名称 " }, - ] \ No newline at end of file + ] diff --git a/repo/js/料理制作及食材加工/main.js b/repo/js/料理制作及食材加工/main.js index 35f393d8..c6e6f705 100644 --- a/repo/js/料理制作及食材加工/main.js +++ b/repo/js/料理制作及食材加工/main.js @@ -1,7 +1,7 @@ (async function () { let foodName = settings.foodName ?? 0; -let foodNum = settings.foodNum ?? 0; +let foodNum = settings.foodNum ?? 1; let flourNum = settings.flourNum ?? 0; let creamNum = settings.creamNum ?? 0; let smokedPoultryNum = settings.smokedPoultryNum ?? 0; @@ -30,10 +30,7 @@ click(195, 1020);//重置 await sleep(1000); click(110, 110);//输入名字 await sleep(1000); -for (const char of foodName) { - keyPress(char); - await sleep(500); -} +inputText(`${foodName}`); keyPress("SPACE"); await sleep(500); click(490, 1020);//确认筛选 diff --git a/repo/js/料理制作及食材加工/manifest.json b/repo/js/料理制作及食材加工/manifest.json index b254563a..71f24e89 100644 --- a/repo/js/料理制作及食材加工/manifest.json +++ b/repo/js/料理制作及食材加工/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 1, "name": "料理制作及食材加工", - "version": "1.0", - "description": "自动烹饪料理以及加工食材", + "version": "1.1", + "description": "自动烹饪料理以及加工食材,需要0.44.6及以上版本", "authors": [ { "name": "柒叶子", @@ -11,4 +11,4 @@ ], "settings_ui": "settings.json", "main": "main.js" -} \ No newline at end of file +} diff --git a/repo/js/料理制作及食材加工/settings.json b/repo/js/料理制作及食材加工/settings.json index d4b98d1a..929e9e6a 100644 --- a/repo/js/料理制作及食材加工/settings.json +++ b/repo/js/料理制作及食材加工/settings.json @@ -2,7 +2,7 @@ { "name": "foodName", "type": "input-text", - "label": "请输入料理的拼音小写" + "label": "请输入料理的全名" }, { @@ -84,4 +84,4 @@ }, - ] \ No newline at end of file + ]