js(战斗好感): 盗宝团优化路线 (#929)

* Add files via upload

* Update main.js
This commit is contained in:
2025-05-26 21:13:52 +08:00
committed by GitHub
parent 64753d75aa
commit 83b152df9a
4 changed files with 37 additions and 36 deletions

View File

@@ -5,40 +5,34 @@
"author": "HZYgrandma", "author": "HZYgrandma",
"version": "1.0", "version": "1.0",
"description": "", "description": "",
"bgi_version": "0.42.0" "map_name": "Teyvat",
"bgi_version": "0.45.0"
}, },
"positions": [ "positions": [
{ {
"id": 1, "id": 1,
"x": -2740.6, "x": -2740.6000000000004,
"y": -3410.69, "y": -3410.6900000000005,
"action": "", "action": "",
"move_mode": "walk", "move_mode": "walk",
"type": "teleport" "type": "teleport"
}, },
{ {
"id": 2, "id": 2,
"x": -2739.48, "x": -2764.4062480249577,
"y": -3437.85, "y": -3465.687530315927,
"action": "", "action": "",
"move_mode": "dash", "move_mode": "dash",
"type": "path" "type": "path"
}, },
{ {
"id": 3, "id": 3,
"x": -2764.44, "x": -2770.4169921875,
"y": -3465.81, "y": -3450.8349609375,
"action": "", "type": "path",
"move_mode": "dash", "move_mode": "dash",
"type": "path"
},
{
"id": 4,
"x": -2771.27,
"y": -3453.23,
"action": "fight", "action": "fight",
"move_mode": "dash", "action_params": ""
"type": "path"
} }
] ]
} }

View File

@@ -5,16 +5,18 @@
"author": "HZYgrandma", "author": "HZYgrandma",
"version": "1.0", "version": "1.0",
"description": "", "description": "",
"bgi_version": "0.43.4" "map_name": "Teyvat",
"bgi_version": "0.45.0"
}, },
"positions": [ "positions": [
{ {
"id": 1, "id": 1,
"x": -2756.67, "x": -2757.28125,
"y": -3467.63, "y": -3468.4376106653963,
"type": "path", "action": "",
"move_mode": "dash", "move_mode": "dash",
"action": "" "action_params": "",
"type": "path"
} }
] ]
} }

View File

@@ -1,36 +1,41 @@
{ {
"info": { "info": {
"name": "触发点", "name": "盗宝团-触发点",
"type": "collect", "type": "collect",
"author": "HZYgrandma", "author": "HZYgrandma",
"version": "1.0", "version": "1.0",
"description": "", "description": "",
"bgi_version": "0.43.4" "map_name": "Teyvat",
"bgi_version": "0.45.0"
}, },
"positions": [ "positions": [
{ {
"id": 1, "id": 1,
"x": -2738.38,
"y": -3414.45,
"action": "", "action": "",
"move_mode": "walk", "move_mode": "walk",
"type": "teleport", "action_params": "",
"x": -2738.38, "type": "teleport"
"y": -3414.45
}, },
{ {
"id": 2, "id": 2,
"x": -2739.72, "x": -2736.6005859375,
"y": -3400.15, "y": -3415.4443359375,
"type": "path", "type": "path",
"move_mode": "walk", "move_mode": "walk",
"action": "exit_and_relogin" "action": "combat_script",
"action_params": "wait(0.5)",
"locked": false
}, },
{ {
"id": 4, "id": 3,
"x": -2738.67, "x": -2736.6005859375,
"y": -3427.38, "y": -3415.4443359375,
"type": "path", "type": "path",
"move_mode": "dash", "move_mode": "walk",
"action": "" "action": "exit_and_relogin",
"action_params": ""
} }
] ]
} }

View File

@@ -232,7 +232,7 @@ function getTargetCoordinates(enemyType) {
return { x: 4840.55, y: -3078.01 }; // 这里需要替换为实际的愚人众战斗点坐标 return { x: 4840.55, y: -3078.01 }; // 这里需要替换为实际的愚人众战斗点坐标
} else { } else {
// 盗宝团战斗点坐标 // 盗宝团战斗点坐标
return { x: -2756.67, y: -3467.63 }; return { x: -2757.281, y: -3468.437 };
} }
} }