Add support for Bounama's grocery in Natlan (#1496)
This commit is contained in:
57
repo/js/OCR购买食材/assets/Pathing/纳塔杂货铺布纳马.json
Normal file
57
repo/js/OCR购买食材/assets/Pathing/纳塔杂货铺布纳马.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"info": {
|
||||||
|
"name": "纳塔杂货铺布纳马",
|
||||||
|
"type": "collect",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "芝士贝果"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": "1.0",
|
||||||
|
"description": "",
|
||||||
|
"map_name": "Teyvat",
|
||||||
|
"bgi_version": "0.47.3",
|
||||||
|
"tags": [],
|
||||||
|
"last_modified_time": 1754489424074,
|
||||||
|
"enable_monster_loot_split": false,
|
||||||
|
"map_match_method": ""
|
||||||
|
},
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"action": "",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"type": "teleport",
|
||||||
|
"x": 9060.5419921875,
|
||||||
|
"y": -1847.5107421875,
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"x": 9089.0361328125,
|
||||||
|
"y": -1852.42919921875,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"x": 9088.6552734375,
|
||||||
|
"y": -1856.89306640625,
|
||||||
|
"type": "target",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"x": 9089.8935546875,
|
||||||
|
"y": -1857.2724609375,
|
||||||
|
"type": "target",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -37,24 +37,25 @@ const sumiCityFishPath = `assets/Pathing/须弥城鱼贩珀姆.json`;
|
|||||||
const sumiGroceryFilePath = `assets/Pathing/须弥杂货铺哈马维.json`;
|
const sumiGroceryFilePath = `assets/Pathing/须弥杂货铺哈马维.json`;
|
||||||
const omosPortFishPath = `assets/Pathing/须弥奥摩斯港鱼贩布特罗斯.json`;
|
const omosPortFishPath = `assets/Pathing/须弥奥摩斯港鱼贩布特罗斯.json`;
|
||||||
const azaleVillMerPath = `assets/Pathing/须弥阿如村商人阿扎莱.json`;
|
const azaleVillMerPath = `assets/Pathing/须弥阿如村商人阿扎莱.json`;
|
||||||
|
const natlanGroceryFilePath = `assets/Pathing/纳塔杂货铺布纳马.json`;
|
||||||
|
|
||||||
const ingredientPaths = {
|
const ingredientPaths = {
|
||||||
"枫达": [fengdanGroceryFilePath, cafeLuzheFilePath],
|
"枫达": [fengdanGroceryFilePath, cafeLuzheFilePath],
|
||||||
"盐": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"盐": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"洋葱": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"洋葱": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"牛奶": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"牛奶": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"番茄": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"番茄": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"卷心菜": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"卷心菜": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"土豆": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"土豆": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"小麦": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"小麦": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"胡椒": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
"胡椒": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||||
"稻米": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],//
|
"稻米": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],//
|
||||||
"虾仁": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, sumiCityFishPath, omosPortFishPath],
|
"虾仁": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, sumiCityFishPath, omosPortFishPath],
|
||||||
"豆腐": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],
|
"豆腐": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],
|
||||||
"杏仁": [liyueGroceryFilePath, fengdanGroceryFilePath],
|
"杏仁": [liyueGroceryFilePath, fengdanGroceryFilePath],
|
||||||
"鱼肉": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath, azaleVillMerPath],
|
"鱼肉": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath, azaleVillMerPath],
|
||||||
"螃蟹": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath],
|
"螃蟹": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath],
|
||||||
"秃秃豆": [fengdanGroceryFilePath, azaleVillMerPath],
|
"秃秃豆": [fengdanGroceryFilePath, azaleVillMerPath, natlanGroceryFilePath],
|
||||||
"咖啡豆": [sumiCitycafeFilePath, cafeLuzheFilePath],
|
"咖啡豆": [sumiCitycafeFilePath, cafeLuzheFilePath],
|
||||||
"香辛料": [azaleVillMerPath],
|
"香辛料": [azaleVillMerPath],
|
||||||
"发酵果实汁": [fengdanGroceryFilePath]
|
"发酵果实汁": [fengdanGroceryFilePath]
|
||||||
@@ -103,6 +104,7 @@ const npcNames = {
|
|||||||
[omosPortFishPath]: ["布特罗斯"],
|
[omosPortFishPath]: ["布特罗斯"],
|
||||||
[azaleVillMerPath]: ["阿扎莱"],
|
[azaleVillMerPath]: ["阿扎莱"],
|
||||||
[sumiGroceryFilePath]: ["哈马维"],
|
[sumiGroceryFilePath]: ["哈马维"],
|
||||||
|
[natlanGroceryFilePath]: ["布纳马"],
|
||||||
};
|
};
|
||||||
|
|
||||||
// 筛选出用户选择的食材及其对应的路径文件和 NPC
|
// 筛选出用户选择的食材及其对应的路径文件和 NPC
|
||||||
@@ -297,6 +299,12 @@ async function clickSelectedIngredients(selectedIngredients, filePath, npcNames)
|
|||||||
await click(1300, 660); await sleep(1000);
|
await click(1300, 660); await sleep(1000);
|
||||||
await click(1300, 660); await sleep(1000);
|
await click(1300, 660); await sleep(1000);
|
||||||
await click(1300, 660); await sleep(1000);
|
await click(1300, 660); await sleep(1000);
|
||||||
|
} else if (filePath === natlanGroceryFilePath) {
|
||||||
|
log.info("执行纳塔杂货商等的点击操作");
|
||||||
|
await click(1300, 580); await sleep(1000);
|
||||||
|
await click(1300, 580); await sleep(1000);
|
||||||
|
await click(1300, 580); await sleep(1000);
|
||||||
|
await click(1300, 580); await sleep(1000);
|
||||||
} else {
|
} else {
|
||||||
log.info("执行其他路径文件的点击操作");
|
log.info("执行其他路径文件的点击操作");
|
||||||
await click(1300, 580); await sleep(500);
|
await click(1300, 580); await sleep(500);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 1,
|
"manifest_version": 1,
|
||||||
"name": "选择购买食材OCR",
|
"name": "选择购买食材OCR",
|
||||||
"version": "1.30513",
|
"version": "1.30514",
|
||||||
"description": "至少需要0.44版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
"description": "至少需要0.48版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "吉吉喵",
|
"name": "吉吉喵",
|
||||||
@@ -16,4 +16,4 @@
|
|||||||
],
|
],
|
||||||
"settings_ui": "settings.json",
|
"settings_ui": "settings.json",
|
||||||
"main": "main.js"
|
"main": "main.js"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user