Skip to content

Commit

Permalink
开荒支持自动点击section clear拿钻
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-bilibili committed Sep 1, 2022
1 parent 702c5d4 commit 34a5b50
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion floatUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -8324,6 +8324,7 @@ function algo_init() {
"newQuest",
"startBtn",
"closeBtn",
"sectionClearMagiaStone",
];

var loadAllImages = syncer.syn(function () {
Expand Down Expand Up @@ -10220,7 +10221,16 @@ function algo_init() {
bottomRight: {
x: 1919, y: 539, pos: "center"
}
}
},
sectionClearMagiaStone: {
//[895,482][1001,589]
topLeft: {
x: 885, y: 472, pos: "center"
},
bottomRight: {
x: 1011, y: 599, pos: "center"
}
},
};
function getButtonArea(type) {
let knownArea = knownButtonCoords[type];
Expand Down Expand Up @@ -10255,6 +10265,9 @@ function algo_init() {
function isMirrorsEntranceButtonPresent(screenshot) {
return isButtonPresent(screenshot, "mirrorsEntranceBtn");
}
function isSectionClear(screenshot) {
return isButtonPresent(screenshot, "sectionClearMagiaStone");
}

//判断是否出现超时回镜层首页按钮
var knownBackToMirrorsTopButtonCoords = {
Expand Down Expand Up @@ -11833,6 +11846,8 @@ function algo_init() {
click(convertCoords(clickSets.levelup));
} else if (isQuestResult(screenshot)) {
click(convertCoords(clickSets.closeFollowPrompt));
} else if (isSectionClear(screenshot)) {
click(convertCoords(clickSets.screenCenter));
}
sleep(1000);
}
Expand Down
Binary file added images/sectionClearMagiaStone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34a5b50

Please sign in to comment.