This commit is contained in:
parent
0065e3f083
commit
15ddb4ec82
1 changed files with 12 additions and 5 deletions
|
@ -679,19 +679,26 @@ class Arknights数据处理器:
|
|||
print(template_list)
|
||||
|
||||
def 输出_干员战斗技能图标(self):
|
||||
"""读取干员战斗技能并输出至./mower/data/agent.json"""
|
||||
for 干员代码, 干员数据 in self.干员表.items():
|
||||
if not 干员数据["itemObtainApproach"]:
|
||||
continue
|
||||
干员名 = 干员数据["name"]
|
||||
print(干员名)
|
||||
for 技能数,item in enumerate(干员数据["skills"]):
|
||||
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": "宿舍",
|
||||
|
|
Loading…
Reference in a new issue