mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-19 03:59:51 +08:00
js:联机狗粮1.5.17 (#2296)
* js:联机狗粮 回退氨气的修改 * js:锄地一条龙1.10.1 1.提高识别烹饪图标时的阈值 2.对精英和小怪效率计算的权重进行补正 3.修改路径结构
This commit is contained in:
@@ -802,13 +802,14 @@ async function findAndClick(target, maxAttempts = 20) {
|
||||
const gameRegion = captureGameRegion();
|
||||
try {
|
||||
const result = gameRegion.find(target);
|
||||
gameRegion.dispose();
|
||||
if (result.isExist()) {
|
||||
await sleep(250);
|
||||
result.click();
|
||||
return true; // 成功立刻返回
|
||||
}
|
||||
} catch (err) {
|
||||
} finally {
|
||||
gameRegion.dispose();
|
||||
}
|
||||
if (attempts < maxAttempts - 1) { // 最后一次不再 sleep
|
||||
await sleep(250);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "AAA狗粮联机团购",
|
||||
"version": "1.5.16",
|
||||
"version": "1.5.17",
|
||||
"tags": [
|
||||
"狗粮"
|
||||
],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//当前js版本1.10.0
|
||||
//当前js版本1.10.1
|
||||
|
||||
let timeMoveUp;
|
||||
let timeMoveDown;
|
||||
@@ -17,6 +17,8 @@ let frozenTemplate = file.ReadImageMatSync("assets/解除冰冻.png");
|
||||
const frozenRo = RecognitionObject.TemplateMatch(frozenTemplate, 1379, 574, 1463 - 1379, 613 - 574);
|
||||
let cookingTemplate = file.ReadImageMatSync("assets/烹饪界面.png");
|
||||
const cookingRo = RecognitionObject.TemplateMatch(cookingTemplate, 1547, 965, 1815 - 1547, 1059 - 965);
|
||||
cookingRo.Threshold = 0.95;
|
||||
cookingRo.InitTemplate();
|
||||
let whiteFurinaTemplate = file.ReadImageMatSync("assets/白芙图标.png");
|
||||
let whiteFurinaRo = RecognitionObject.TemplateMatch(whiteFurinaTemplate, 1634, 967, 1750 - 1634, 1070 - 967);
|
||||
whiteFurinaRo.Threshold = 0.99;
|
||||
@@ -390,8 +392,8 @@ async function findBestRouteGroups(pathings, k, targetEliteNum, targetMonsterNum
|
||||
p.selected = false;
|
||||
const G1 = p.mora_e + p.mora_m, G2 = p.mora_m;
|
||||
p.G1 = G1; p.G2 = G2;
|
||||
p.E1 = p.e === 0 ? 0 : ((G1 - G2 * f) / p.e) ** k * (G1 / p.t);
|
||||
p.E2 = p.m === 0 ? 0 : (G2 / p.m) ** k * (G2 / p.t);
|
||||
p.E1 = p.e === 0 ? 0 : ((G1 - G2 * f) / p.e) ** (2 * k) * (G1 / p.t);
|
||||
p.E2 = p.m === 0 ? 0 : (G2 / p.m) ** (0.75 * k) * (G2 / p.t);
|
||||
maxE1 = Math.max(maxE1, p.E1);
|
||||
maxE2 = Math.max(maxE2, p.E2);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "锄地一条龙",
|
||||
"version": "1.10.0",
|
||||
"version": "1.10.1",
|
||||
"description": "一站式解决自动化锄地,支持只拾取狗粮,请仔细阅读README.md后使用",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user