From 83b152df9a99b5dc8aa46bcaae404059d2bf7136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90?= <121607261+jiegedabaobei@users.noreply.github.com> Date: Mon, 26 May 2025 21:13:52 +0800 Subject: [PATCH] =?UTF-8?q?js(=E6=88=98=E6=96=97=E5=A5=BD=E6=84=9F):=20?= =?UTF-8?q?=E7=9B=97=E5=AE=9D=E5=9B=A2=E4=BC=98=E5=8C=96=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=20(#929)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add files via upload * Update main.js --- .../assets/AutoPath/盗宝团-准备.json | 26 ++++++--------- .../assets/AutoPath/盗宝团-战斗点.json | 12 ++++--- .../assets/AutoPath/盗宝团-触发点.json | 33 +++++++++++-------- repo/js/AutoFriendshipFight/main.js | 2 +- 4 files changed, 37 insertions(+), 36 deletions(-) diff --git a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-准备.json b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-准备.json index 91ba4e1d..74930bfa 100644 --- a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-准备.json +++ b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-准备.json @@ -5,40 +5,34 @@ "author": "HZYgrandma", "version": "1.0", "description": "", - "bgi_version": "0.42.0" + "map_name": "Teyvat", + "bgi_version": "0.45.0" }, "positions": [ { "id": 1, - "x": -2740.6, - "y": -3410.69, + "x": -2740.6000000000004, + "y": -3410.6900000000005, "action": "", "move_mode": "walk", "type": "teleport" }, { "id": 2, - "x": -2739.48, - "y": -3437.85, + "x": -2764.4062480249577, + "y": -3465.687530315927, "action": "", "move_mode": "dash", "type": "path" }, { "id": 3, - "x": -2764.44, - "y": -3465.81, - "action": "", + "x": -2770.4169921875, + "y": -3450.8349609375, + "type": "path", "move_mode": "dash", - "type": "path" - }, - { - "id": 4, - "x": -2771.27, - "y": -3453.23, "action": "fight", - "move_mode": "dash", - "type": "path" + "action_params": "" } ] } \ No newline at end of file diff --git a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-战斗点.json b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-战斗点.json index d4c793bb..82f98bda 100644 --- a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-战斗点.json +++ b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-战斗点.json @@ -5,16 +5,18 @@ "author": "HZYgrandma", "version": "1.0", "description": "", - "bgi_version": "0.43.4" + "map_name": "Teyvat", + "bgi_version": "0.45.0" }, "positions": [ { "id": 1, - "x": -2756.67, - "y": -3467.63, - "type": "path", + "x": -2757.28125, + "y": -3468.4376106653963, + "action": "", "move_mode": "dash", - "action": "" + "action_params": "", + "type": "path" } ] } \ No newline at end of file diff --git a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-触发点.json b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-触发点.json index 38e89dee..2d6ab148 100644 --- a/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-触发点.json +++ b/repo/js/AutoFriendshipFight/assets/AutoPath/盗宝团-触发点.json @@ -1,36 +1,41 @@ -{ +{ "info": { - "name": "触发点", + "name": "盗宝团-触发点", "type": "collect", "author": "HZYgrandma", "version": "1.0", "description": "", - "bgi_version": "0.43.4" + "map_name": "Teyvat", + "bgi_version": "0.45.0" }, "positions": [ { "id": 1, + "x": -2738.38, + "y": -3414.45, "action": "", "move_mode": "walk", - "type": "teleport", - "x": -2738.38, - "y": -3414.45 + "action_params": "", + "type": "teleport" }, { "id": 2, - "x": -2739.72, - "y": -3400.15, + "x": -2736.6005859375, + "y": -3415.4443359375, "type": "path", "move_mode": "walk", - "action": "exit_and_relogin" + "action": "combat_script", + "action_params": "wait(0.5)", + "locked": false }, { - "id": 4, - "x": -2738.67, - "y": -3427.38, + "id": 3, + "x": -2736.6005859375, + "y": -3415.4443359375, "type": "path", - "move_mode": "dash", - "action": "" + "move_mode": "walk", + "action": "exit_and_relogin", + "action_params": "" } ] } \ No newline at end of file diff --git a/repo/js/AutoFriendshipFight/main.js b/repo/js/AutoFriendshipFight/main.js index bd303fbc..ea32e737 100644 --- a/repo/js/AutoFriendshipFight/main.js +++ b/repo/js/AutoFriendshipFight/main.js @@ -232,7 +232,7 @@ function getTargetCoordinates(enemyType) { return { x: 4840.55, y: -3078.01 }; // 这里需要替换为实际的愚人众战斗点坐标 } else { // 盗宝团战斗点坐标 - return { x: -2756.67, y: -3467.63 }; + return { x: -2757.281, y: -3468.437 }; } }