更新JS脚本AbundantOre (#2283)

* suppress error messages

* update  ver

* fix

* upadte README
This commit is contained in:
Jamis
2025-11-01 13:56:01 +08:00
committed by GitHub
parent 4bb5aef1f9
commit 0a4ce3f172
3 changed files with 8 additions and 2 deletions

View File

@@ -29,6 +29,10 @@
## ChangeLog
### 0.18
- 修复坐标监控逻辑中的bug
### 0.16
- 日志实时输出进度

View File

@@ -372,7 +372,7 @@ async function run_pathing_script(name, path_state_change, current_states) {
})();
var character_moved = false;
if (curr_pos[0] === null || last_script_end_pos[0] === null) {
character_moved = curr_pos !== last_script_end_pos;
character_moved = curr_pos[0] !== last_script_end_pos[0] || curr_pos[1] !== last_script_end_pos[1];
log.debug("Character {action}", character_moved ? "moved" : "not moved");
} else {
const dist = Math.sqrt(Math.pow(curr_pos[0] - last_script_end_pos[0], 2) + Math.pow(curr_pos[1] - last_script_end_pos[1], 2));
@@ -403,6 +403,8 @@ async function run_pathing_script(name, path_state_change, current_states) {
async function main() {
await genshin.returnMainUi();
file.writeTextSync("local/disabled_paths.txt", "", true);
file.writeTextSync("local/persistent_data.json", "", true);
load_filename_to_path_map();
load_persistent_data();
load_disabled_paths();

View File

@@ -2,7 +2,7 @@
"bgi_version": "0.50.0",
"manifest_version": 1,
"name": "矿产资源批发",
"version": "0.17",
"version": "0.18",
"description": "自动记录矿石刷新时间,优先选择效率最高的路线,支持按区域、种类、数量自动规划挖矿路线",
"authors": [
{