From 31a03f57a2dd6a3214579e4a8c04954f472eb5bd Mon Sep 17 00:00:00 2001 From: Sthkm3 Date: Tue, 17 Mar 2026 19:36:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/run2.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/run2.js diff --git a/src/run2.js b/src/run2.js new file mode 100644 index 0000000..ddc4b7c --- /dev/null +++ b/src/run2.js @@ -0,0 +1,29 @@ +while (true) { + + + + + + + // --- 根據 Config 呼叫對應的 Task --- + if (config.sellProduct) Tasks.sellProduct(img); + + if (config.upgradeFacility) Tasks.upgradeFacility(img); + + if (config.upgradeRecipe) Tasks.upgradeRecipe(img); + + if (config.Photo) Tasks.takePhoto(img); + + // 獎勵領取類 + if (config.receiveAFK || config.receiveJar || config.receiveMerchant) { + Tasks.collectRewards(img); + } + + if (config.receiveButterfly || config.receiveFrog) { + Tasks.randomRewards(img); + } + + // --- 結束本輪 --- + img.recycle(); + sleep(200); +}