feat(auto-tool): 添加锄地队伍配置功能

- 新增 HoeGroundMap 用于存储锄地队伍映射关系
- 添加 team_hoe_ground 配置项用于设置锄地队伍规则
- 实现 switchTeamByName 函数按名称切换队伍
- 修改 runPath 函数支持传递父级和当前名称参数
- 在路径执行时根据锄地配置自动切换对应队伍
- 更新设置界面添加锄地队伍配置输入框
- 移除废弃的方案2注释代码
This commit is contained in:
yan
2026-01-19 00:18:26 +08:00
parent 696bad0245
commit 545fbaa9ef
2 changed files with 103 additions and 82 deletions

View File

@@ -5,6 +5,9 @@
"label": "密钥",
"default": ""
},
{
"type": "separator"
},
{
"name": "config_run",
"type": "select",
@@ -29,7 +32,7 @@
{
"name": "order_rules",
"type": "input-text",
"label": "执行顺序规则(可留空){语法:父文件夹名称->文件夹名称=顺序请填整数,.....}",
"label": "执行顺序规则(可留空)\n{语法:父文件夹名称->文件夹名称=顺序请填整数,.....}",
"default": ""
},
{
@@ -57,11 +60,14 @@
"default": false
},
{
"name": "http_api",
"name": "http_api",
"type": "input-text",
"label": "[默认CD算法api]\ncron解析Http地址\n[请部署bettergi-scripts-tools可支持]",
"default": "http://<ip:port>/bgi/cron/next-timestamp"
},
{
"type": "separator"
},
{
"name": "real_time_missions",
"type": "multi-checkbox",
@@ -109,6 +115,12 @@
"type": "input-text",
"label": "战斗队伍配置(同时也是行走队伍配置)"
},
{
"name": "team_hoe_ground",
"type": "input-text",
"label": "锄地队伍配置\n{语法:父文件夹名称->文件夹名称=队伍名称,.....}\n如:敌人与魔物->蕈兽=队伍名称",
"default": ""
},
{
"name": "team_seven_elements",
"type": "input-text",