fix: 5.7适配
This commit is contained in:
@@ -156,7 +156,7 @@ async function tryForgeOre(oreType, skipCheckOres = []) {
|
|||||||
const ocrRegion = { x: 660, y: 495, width: 1250 - 660, height: 550 - 495 };
|
const ocrRegion = { x: 660, y: 495, width: 1250 - 660, height: 550 - 495 };
|
||||||
let clickAttempts = 0;
|
let clickAttempts = 0;
|
||||||
let forgingTriggered = false;
|
let forgingTriggered = false;
|
||||||
while (clickAttempts < 3 && !forgingTriggered) {
|
while (clickAttempts < 4 && !forgingTriggered) {
|
||||||
let ConfirmButton = captureGameRegion().find(ConfirmDeployButtonRo);
|
let ConfirmButton = captureGameRegion().find(ConfirmDeployButtonRo);
|
||||||
if (ConfirmButton.isExist()) {
|
if (ConfirmButton.isExist()) {
|
||||||
ConfirmButton.click();
|
ConfirmButton.click();
|
||||||
@@ -190,7 +190,7 @@ async function tryForgeOre(oreType, skipCheckOres = []) {
|
|||||||
return false; // 跳过当前矿石
|
return false; // 跳过当前矿石
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (clickAttempts === 3) {
|
if (clickAttempts === 4) {
|
||||||
return true; // 达到点击上限,终止锻造流程
|
return true; // 达到点击上限,终止锻造流程
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 1,
|
"manifest_version": 1,
|
||||||
"name": "自动锻造魔矿",
|
"name": "自动锻造魔矿",
|
||||||
"version": "2.00523\n(2025.05.23版)",
|
"version": "2.1",
|
||||||
"bgi_version": "0.44.0",
|
"bgi_version": "0.44.0",
|
||||||
"description": "自动选择铁匠铺和使用矿物去锻造精锻矿。\n新增功能:仅领取锻造 - 允许用户仅领取已完成的锻造物品,而不进行新的锻造。\n \n使用前请阅读“readme”文件以获取更多详细信息。 \n---更新说明--- \n- 请查阅readme",
|
"description": "自动选择铁匠铺和使用矿物去锻造精锻矿。\n新增功能:仅领取锻造 - 允许用户仅领取已完成的锻造物品,而不进行新的锻造。\n \n使用前请阅读“readme”文件以获取更多详细信息。 \n---更新说明--- \n- 请查阅readme",
|
||||||
"tags": ["铁匠铺", "锻造", "精锻用矿"],
|
"tags": ["铁匠铺", "锻造", "精锻用矿"],
|
||||||
|
|||||||
@@ -54,6 +54,9 @@
|
|||||||
本脚本目前处于测试阶段,欢迎反馈问题至 QQ:1765137214。
|
本脚本目前处于测试阶段,欢迎反馈问题至 QQ:1765137214。
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
### 2.1
|
||||||
|
- 使用新版版本号
|
||||||
|
- 5.7 提高了锻造上限,因此使用锻造次数从3改成了4
|
||||||
|
|
||||||
### 2.00523(2025.05.23)
|
### 2.00523(2025.05.23)
|
||||||
- 新增仅领取锻造
|
- 新增仅领取锻造
|
||||||
Reference in New Issue
Block a user