Files
bettergi-scripts-list/repo/js/AutoLeyLineOutcrop/orphan_handling.py
214-hanyan 5f5249b348 识别体力与树脂数量 (#981)
* 识别体力与树脂数量

* 璃月6-奥藏山

* update repo.json

* 地图追踪 星银矿石 (#1025)

* Add files via upload

* 自动修复 JSON 格式和版本号 [ci skip]

* Delete repo/pathing/矿物/星银矿石/desktop.ini

* Add files via upload

---------

Co-authored-by: GitHub Actions Bot <actions@github.com>

* Update main.js (#1024)

手动终止夹断

* update repo.json

* 6.7 富Abpro (#1022)

* Add files via upload

* Add files via upload

* Delete repo/js/AutoArtifactsPro/assets/ArtifactsPath/A路线/01普通/000【激活程序】稻妻大炮.json

* Delete repo/js/AutoArtifactsPro/assets/ArtifactsPath/A路线/01普通/404须弥-天臂池七天神像4.json

* Delete repo/js/AutoArtifactsPro/assets/ArtifactsPath/A路线/01普通/601纳塔-流泉之众4.json

* Delete repo/js/AutoArtifactsPro/assets/ArtifactsPath/A路线/01普通/602纳塔-悬木人声望2.json

* Delete repo/js/AutoArtifactsPro/assets/ArtifactsPath/A路线/01普通/603纳塔-花羽会西2.json

* Add files via upload

* update repo.json

* `七圣召唤七日历练`: 修复牌币已满时卡在出战界面的问题 (#1017)

* update repo.json

* js:狗粮重置版1.2更新 (#1026)

* update repo.json

* fix: 修复部分情况下未找到图标直接结束

* temp

* add: 璃月7

* feat: 新的数据结构

* add: 合并代码,功能待实现

---------

Co-authored-by: 寒烟 <2841974482@qq.com>
Co-authored-by: physligl <181079228+physligl@users.noreply.github.com>
Co-authored-by: Tooltingsu <143606015+Tooltingsu@users.noreply.github.com>
Co-authored-by: GitHub Actions Bot <actions@github.com>
Co-authored-by: JJMdzh <jjjjedyx@qq.com>
Co-authored-by: 汐 <121607261+jiegedabaobei@users.noreply.github.com>
Co-authored-by: Patrick-Ze <19711799+Patrick-Ze@users.noreply.github.com>
Co-authored-by: mno <718135749@qq.com>
Co-authored-by: 秋云 <physligl@gmail.com>
2025-06-09 06:13:27 +08:00

29 lines
1.3 KiB
Python

if not region_edges:
print(f" 区域 {region} 没有现有路径,无法连接孤立目标点")
continue
# 从每条边的路径中提取区域和编号
route_info = []
for edge in region_edges:
route = edge["route"]
file_name = os.path.basename(route)
result = parse_region_area_number(file_name)
if len(result) == 5: # 特殊格式
region_name, region_num, area, route_num, route_sub_num = result
else: # 标准格式
region_name, region_num, area, route_num = result
route_sub_num = None
if region_name and region_num and area and route_num:
info = {
"edge": edge,
"region_name": region_name,
"region_num": region_num,
"area": area,
"route_num": route_num,
"file_name": file_name
}
if route_sub_num is not None:
info["route_sub_num"] = route_sub_num
route_info.append(info)