fix: 5.7适配

This commit is contained in:
秋云
2025-06-19 07:45:04 +08:00
parent 54e0d23599
commit 3774f43cc8
3 changed files with 91 additions and 88 deletions

View File

@@ -156,7 +156,7 @@ async function tryForgeOre(oreType, skipCheckOres = []) {
const ocrRegion = { x: 660, y: 495, width: 1250 - 660, height: 550 - 495 };
let clickAttempts = 0;
let forgingTriggered = false;
while (clickAttempts < 3 && !forgingTriggered) {
while (clickAttempts < 4 && !forgingTriggered) {
let ConfirmButton = captureGameRegion().find(ConfirmDeployButtonRo);
if (ConfirmButton.isExist()) {
ConfirmButton.click();
@@ -190,7 +190,7 @@ async function tryForgeOre(oreType, skipCheckOres = []) {
return false; // 跳过当前矿石
}
}
if (clickAttempts === 3) {
if (clickAttempts === 4) {
return true; // 达到点击上限,终止锻造流程
}
}

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "自动锻造魔矿",
"version": "2.00523\n(2025.05.23版)",
"version": "2.1",
"bgi_version": "0.44.0",
"description": "自动选择铁匠铺和使用矿物去锻造精锻矿。\n新增功能仅领取锻造 - 允许用户仅领取已完成的锻造物品,而不进行新的锻造。\n \n使用前请阅读“readme”文件以获取更多详细信息。 \n---更新说明--- \n- 请查阅readme",
"tags": ["铁匠铺", "锻造", "精锻用矿"],

View File

@@ -54,6 +54,9 @@
本脚本目前处于测试阶段,欢迎反馈问题至 QQ1765137214。
## 更新日志
### 2.1
- 使用新版版本号
- 5.7 提高了锻造上限因此使用锻造次数从3改成了4
### 2.005232025.05.23
- 新增仅领取锻造