Compatibility with 0.50.0 (#1883)

This commit is contained in:
Jamis
2025-09-13 15:48:16 +08:00
committed by GitHub
parent 69239e0afc
commit 07e7097e10
4 changed files with 2 additions and 31 deletions

View File

@@ -25,5 +25,4 @@
- 如果有多个游戏帐号可在最后一个输入框内为每个游戏帐号填写一个唯一的字符串以使他们的刷新时间分开保存互不干扰。这个唯一的字符串并不必须是帐号的UID只要互不相同就可以了。
- 对于因没有完成地图探索任务而无法正常完成某些路线的玩家,如果不想跳过整个区域,可以将脚本文件名称填入`local/disabled_paths.txt`文件中以跳过这些地图追踪脚本,语法请参考`assets/disabled_paths.conf`
- 使用BetterGI `0.49.0`版本的用户请勾选`自动适配DPI缩放`复选框,使用高于`0.49.0`的测试版或正式版的用户,请不要勾选此复选框。
- 如果一定要使用其他角色挖矿,请在自定义挖矿动作中填写相应的角色和挖矿动作,例如`迪希雅 attack(2.0)`。使用此选项可能导致产量下降或其他问题,对此我们不做任何保证,亦不能提供技术支持。

View File

@@ -324,28 +324,6 @@ async function run_pathing_script(name, path_state_change, current_states) {
modified = true;
}
}
// scale underwater mining actions
if (settings.enable_dpi_scaling && statistics[name].tags.includes("fontaine underwater") && genshin.screenDpiScale !== 1.0) {
for (const i of json_obj.positions) {
if (i.action_params) {
const new_actions = [];
for (const a of i.action_params.split(";")) {
if (a.startsWith("moveby(")) {
const [x, y] = a.slice(7, -1).split(",");
const new_val = "moveby(" + String(Math.round(x * genshin.screenDpiScale)) + "," + String(Math.round(y * genshin.screenDpiScale)) + ")";
new_actions.push(new_val);
} else {
new_actions.push(a);
}
}
const new_action_params = new_actions.join(";");
if (new_action_params !== i.action_params) {
i.action_params = new_action_params;
modified = true;
}
}
}
}
if (modified) {
log.debug("Patched mining action");
json_content = JSON.stringify(json_obj);

View File

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

View File

@@ -82,12 +82,6 @@
"type": "checkbox",
"label": "不挖紫晶块👇"
},
{
"name": "enable_dpi_scaling",
"type": "checkbox",
"default": true,
"label": "自动适配DPI缩放👇"
},
{
"name": "custom_mining_action",
"type": "input-text",