From fd8e64bd6dfb9b9b36ad095ee3c433990ac23b55 Mon Sep 17 00:00:00 2001 From: Zebartin <1500012724@pku.edu.cn> Date: Sat, 27 May 2023 12:25:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=87=E7=BA=A7=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E6=94=B6=E8=8F=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "NIKKE/NIKKE\346\227\245\345\270\270.js" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/NIKKE/NIKKE\346\227\245\345\270\270.js" "b/NIKKE/NIKKE\346\227\245\345\270\270.js" index e8bdf4b..08fd624 100644 --- "a/NIKKE/NIKKE\346\227\245\345\270\270.js" +++ "b/NIKKE/NIKKE\346\227\245\345\270\270.js" @@ -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; } @@ -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 好友() {