格式化文档
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
fuyn101 2024-11-12 18:14:28 +08:00
parent 0065e3f083
commit 15ddb4ec82

View file

@ -679,7 +679,6 @@ class Arknights数据处理器:
print(template_list)
def 输出_干员战斗技能图标(self):
"""读取干员战斗技能并输出至./mower/data/agent.json"""
for 干员代码, 干员数据 in self.干员表.items():
if not 干员数据["itemObtainApproach"]:
continue
@ -687,11 +686,19 @@ class Arknights数据处理器:
print(干员名)
for 技能数, item in enumerate(干员数据["skills"]):
技能图标名 = self.战斗技能[item["skillId"]]["iconId"] or item["skillId"]
干员技能路径 = f"./ArknightsGameResource/skill/skill_icon_{技能图标名}.png"
os.makedirs(f"./mower/static/avatar_skill/{干员数据['name']}", exist_ok=True)
目标路径 = f"./mower/static/avatar_skill/{干员数据['name']}/{技能数+1}.png"
干员技能路径 = (
f"./ArknightsGameResource/skill/skill_icon_{技能图标名}.png"
)
os.makedirs(
f"./mower/static/avatar_skill/{干员数据['name']}", exist_ok=True
)
目标路径 = (
f"./mower/static/avatar_skill/{干员数据['name']}/{技能数+1}.png"
)
shutil.copy(干员技能路径, 目标路径)
print(目标路径)
roomType = {
"POWER": "发电站",
"DORMITORY": "宿舍",