Skip to content

Commit

Permalink
🐛 修复资源不存在导致ba查询失效
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Apr 3, 2024
1 parent 4b486ac commit ea68df9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions BlueArchiveUID/tools/make_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@
studentSkill2Icon_path = MAP / "studentSkill2Icon_map.json"
weaponId2Nmae_path = MAP / "weaponId2Nmae_map.json"

with open(student_data_path, 'r', encoding='UTF-8') as f:
student_data = msgjson.decode(
f.read(),
type=List[Dict[str, Any]],
)

with open(equip_data_path, 'r', encoding='UTF-8') as f:
equip_data = msgjson.decode(
f.read(),
type=List[Dict[str, Any]],
)


def make_id2name():
result = {}
Expand Down Expand Up @@ -93,4 +81,16 @@ def make_map():


if __name__ == '__main__':
with open(student_data_path, 'r', encoding='UTF-8') as f:
student_data = msgjson.decode(
f.read(),
type=List[Dict[str, Any]],
)

with open(equip_data_path, 'r', encoding='UTF-8') as f:
equip_data = msgjson.decode(
f.read(),
type=List[Dict[str, Any]],
)

make_map()

0 comments on commit ea68df9

Please sign in to comment.