From bbd6653081a1267c0e64fa36cf640b210639373d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B7=E4=B8=AA=E5=90=8D=E5=AD=97=E5=A5=BD=E9=9A=BE?= =?UTF-8?q?=E7=9A=84=E5=96=B5?= <25520958+MisakaAldrich@users.noreply.github.com> Date: Tue, 26 Aug 2025 23:01:43 +0800 Subject: [PATCH] archive js --- .../枫丹-炬木-白露区秋分山西侧西南-6个.json | 0 ...枫丹-炬木-苍晶区「很明亮的地方」-10个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界东-4个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界南-6个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界南-9个.json | 0 .../枫丹-炬木-白露区秋分山西侧西南-6个.json | 0 ...枫丹-炬木-苍晶区「很明亮的地方」-10个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界东-4个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界南-6个.json | 0 .../纳塔-桃椰子木-涌流地浮土静界南-9个.json | 0 .../js/AutoWoodCutting-Patch/main.js | 148 +++++++++--------- .../js/AutoWoodCutting-Patch/manifest.json | 0 .../js/AutoWoodCutting-Patch/settings.json | 34 ++-- {repo => archive}/js/海岛活动/main.js | 0 {repo => archive}/js/海岛活动/manifest.json | 0 15 files changed, 91 insertions(+), 91 deletions(-) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-白露区秋分山西侧西南-6个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-苍晶区「很明亮的地方」-10个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界东-4个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-6个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-9个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-白露区秋分山西侧西南-6个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-苍晶区「很明亮的地方」-10个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界东-4个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-6个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-9个.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/main.js (97%) rename {repo => archive}/js/AutoWoodCutting-Patch/manifest.json (100%) rename {repo => archive}/js/AutoWoodCutting-Patch/settings.json (95%) rename {repo => archive}/js/海岛活动/main.js (100%) rename {repo => archive}/js/海岛活动/manifest.json (100%) diff --git a/repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-白露区秋分山西侧西南-6个.json b/archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-白露区秋分山西侧西南-6个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-白露区秋分山西侧西南-6个.json rename to archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-白露区秋分山西侧西南-6个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-苍晶区「很明亮的地方」-10个.json b/archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-苍晶区「很明亮的地方」-10个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-苍晶区「很明亮的地方」-10个.json rename to archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/枫丹-炬木-苍晶区「很明亮的地方」-10个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界东-4个.json b/archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界东-4个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界东-4个.json rename to archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界东-4个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-6个.json b/archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-6个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-6个.json rename to archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-6个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-9个.json b/archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-9个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-9个.json rename to archive/js/AutoWoodCutting-Patch/assets/KeyMouseScript/纳塔-桃椰子木-涌流地浮土静界南-9个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-白露区秋分山西侧西南-6个.json b/archive/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-白露区秋分山西侧西南-6个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-白露区秋分山西侧西南-6个.json rename to archive/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-白露区秋分山西侧西南-6个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-苍晶区「很明亮的地方」-10个.json b/archive/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-苍晶区「很明亮的地方」-10个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-苍晶区「很明亮的地方」-10个.json rename to archive/js/AutoWoodCutting-Patch/assets/pathing/枫丹-炬木-苍晶区「很明亮的地方」-10个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界东-4个.json b/archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界东-4个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界东-4个.json rename to archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界东-4个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-6个.json b/archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-6个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-6个.json rename to archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-6个.json diff --git a/repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-9个.json b/archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-9个.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-9个.json rename to archive/js/AutoWoodCutting-Patch/assets/pathing/纳塔-桃椰子木-涌流地浮土静界南-9个.json diff --git a/repo/js/AutoWoodCutting-Patch/main.js b/archive/js/AutoWoodCutting-Patch/main.js similarity index 97% rename from repo/js/AutoWoodCutting-Patch/main.js rename to archive/js/AutoWoodCutting-Patch/main.js index 86020f468..d22172158 100644 --- a/repo/js/AutoWoodCutting-Patch/main.js +++ b/archive/js/AutoWoodCutting-Patch/main.js @@ -1,74 +1,74 @@ -(async function () { - const RAW_PATHING = ['枫丹-炬木-苍晶区「很明亮的地方」-10个.json', '枫丹-炬木-白露区秋分山西侧西南-6个.json','纳塔-桃椰子木-涌流地浮土静界东-4个.json', '纳塔-桃椰子木-涌流地浮土静界南-6个.json']; - const WOODS = ['炬木', '桃椰子木']; - const BASE_PATH_PATHING = "assets/pathing/"; - const BASE_PATH_SCRIPT = "assets/KeyMouseScript/"; - let wood_num = 2000; - - function get_pathing_num(pathing_name) { - const match = pathing_name.match(/-(\d+)个\.json$/); - return match ? parseInt(match[1], 10) : 0; - } - - function pathing_filter() { - log.info(`<--------当前配置-------->`); - - let temp_pathing = {}; - - if (settings.wood_num !== undefined) { - try { - wood_num = parseInt(settings.wood_num, 10); - } catch (error) { - log.info(`错误:请正确设置伐木数量(0-2000): ${error}`); - } - } - - if (settings.wood_list === "全选" || settings.wood_list === undefined) { - for (const wood of WOODS) { - temp_pathing[wood] = []; - } - - for (const wood of WOODS) { - for (const path of RAW_PATHING) { - if (path.includes(wood)) { - temp_pathing[wood].push(path); - } - } - } - log.info(`炬木: ${wood_num},桃椰子木: ${wood_num}`); - } else { - temp_pathing[settings.wood_list] = []; - for (const path of RAW_PATHING) { - if (path.includes(settings.wood_list)) { - temp_pathing[settings.wood_list].push(path); - } - } - log.info(`${settings.wood_list}: ${wood_num}`); - } - - return temp_pathing; - } - - async function main() { - log.info(`请确保当前的小道具为「王树瑞佑」且使用道具的按键为Z键!`); - const wood_dic = pathing_filter(); - - for (const [wood, paths] of Object.entries(wood_dic)) { - let temp_num = paths.reduce((sum, p) => sum + get_pathing_num(p), 0); - - let num = ((wood_num / (temp_num * 3)) | 0) + 1; - for (let i = 1; i <= num; i++) { - log.info(`正在执行${wood}(${i}/${num})`); - for (const file of paths) { - await pathingScript.runFile(BASE_PATH_PATHING + file); - await sleep(1000); - await keyMouseScript.runFile(BASE_PATH_SCRIPT + file); - await sleep(500); - - } - } - } - } - - await main(); -})(); +(async function () { + const RAW_PATHING = ['枫丹-炬木-苍晶区「很明亮的地方」-10个.json', '枫丹-炬木-白露区秋分山西侧西南-6个.json','纳塔-桃椰子木-涌流地浮土静界东-4个.json', '纳塔-桃椰子木-涌流地浮土静界南-6个.json']; + const WOODS = ['炬木', '桃椰子木']; + const BASE_PATH_PATHING = "assets/pathing/"; + const BASE_PATH_SCRIPT = "assets/KeyMouseScript/"; + let wood_num = 2000; + + function get_pathing_num(pathing_name) { + const match = pathing_name.match(/-(\d+)个\.json$/); + return match ? parseInt(match[1], 10) : 0; + } + + function pathing_filter() { + log.info(`<--------当前配置-------->`); + + let temp_pathing = {}; + + if (settings.wood_num !== undefined) { + try { + wood_num = parseInt(settings.wood_num, 10); + } catch (error) { + log.info(`错误:请正确设置伐木数量(0-2000): ${error}`); + } + } + + if (settings.wood_list === "全选" || settings.wood_list === undefined) { + for (const wood of WOODS) { + temp_pathing[wood] = []; + } + + for (const wood of WOODS) { + for (const path of RAW_PATHING) { + if (path.includes(wood)) { + temp_pathing[wood].push(path); + } + } + } + log.info(`炬木: ${wood_num},桃椰子木: ${wood_num}`); + } else { + temp_pathing[settings.wood_list] = []; + for (const path of RAW_PATHING) { + if (path.includes(settings.wood_list)) { + temp_pathing[settings.wood_list].push(path); + } + } + log.info(`${settings.wood_list}: ${wood_num}`); + } + + return temp_pathing; + } + + async function main() { + log.info(`请确保当前的小道具为「王树瑞佑」且使用道具的按键为Z键!`); + const wood_dic = pathing_filter(); + + for (const [wood, paths] of Object.entries(wood_dic)) { + let temp_num = paths.reduce((sum, p) => sum + get_pathing_num(p), 0); + + let num = ((wood_num / (temp_num * 3)) | 0) + 1; + for (let i = 1; i <= num; i++) { + log.info(`正在执行${wood}(${i}/${num})`); + for (const file of paths) { + await pathingScript.runFile(BASE_PATH_PATHING + file); + await sleep(1000); + await keyMouseScript.runFile(BASE_PATH_SCRIPT + file); + await sleep(500); + + } + } + } + } + + await main(); +})(); diff --git a/repo/js/AutoWoodCutting-Patch/manifest.json b/archive/js/AutoWoodCutting-Patch/manifest.json similarity index 100% rename from repo/js/AutoWoodCutting-Patch/manifest.json rename to archive/js/AutoWoodCutting-Patch/manifest.json diff --git a/repo/js/AutoWoodCutting-Patch/settings.json b/archive/js/AutoWoodCutting-Patch/settings.json similarity index 95% rename from repo/js/AutoWoodCutting-Patch/settings.json rename to archive/js/AutoWoodCutting-Patch/settings.json index 0adfbfab4..d71a9fdae 100644 --- a/repo/js/AutoWoodCutting-Patch/settings.json +++ b/archive/js/AutoWoodCutting-Patch/settings.json @@ -1,17 +1,17 @@ -[ - { - "name": "wood_list", - "type": "select", - "label": "伐木种类", - "options": [ - "全选", - "炬木", - "桃椰子木" - ] - }, - { - "name": "wood_num", - "type": "input-text", - "label": "砍伐数目:不填默认2000(只能填0-2000)" - } -] +[ + { + "name": "wood_list", + "type": "select", + "label": "伐木种类", + "options": [ + "全选", + "炬木", + "桃椰子木" + ] + }, + { + "name": "wood_num", + "type": "input-text", + "label": "砍伐数目:不填默认2000(只能填0-2000)" + } +] diff --git a/repo/js/海岛活动/main.js b/archive/js/海岛活动/main.js similarity index 100% rename from repo/js/海岛活动/main.js rename to archive/js/海岛活动/main.js diff --git a/repo/js/海岛活动/manifest.json b/archive/js/海岛活动/manifest.json similarity index 100% rename from repo/js/海岛活动/manifest.json rename to archive/js/海岛活动/manifest.json