Skip to content

Commit

Permalink
fix: 升级影响基地收菜
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebartin committed May 27, 2023
1 parent b802458 commit fd8e64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NIKKE/NIKKE日常.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ function cashShop() {
let target = findImageByFeature(img, cashShopImg, {
region: [0, upperBound, img.width, cashShopImg.height * 5]
});
if (target == null){
if (target == null) {
sleep(1000);
continue;
}
target.text = '礼包图标';
let targetColor = img.pixel(target.bounds.left, target.bounds.centerY());
if (rgbToGray(targetColor) >= 70){
if (rgbToGray(targetColor) >= 70) {
sleep(1000);
continue;
}
Expand Down Expand Up @@ -433,7 +433,7 @@ function 基地收菜(doDailyMission) {
let levelUp = collectDefense(outpostBtn, true);
dispatch(bulletin);
if (doDailyMission)
levelUp = levelUp || collectDefense(outpostBtn, false);
levelUp = collectDefense(outpostBtn, false) || levelUp;
返回首页(levelUp);
}
function 好友() {
Expand Down

0 comments on commit fd8e64b

Please sign in to comment.