auto_get_res_newer 补充levels
This commit is contained in:
parent
709e42ccd3
commit
f379a9518f
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@ from sklearn.neighbors import KNeighborsClassifier
|
|||
|
||||
from mower.utils.character_recognize import fast_keypoints
|
||||
from mower.utils.image import loadimg, thres2
|
||||
from mower.utils.tile_pos import Level
|
||||
from mower.utils.vector import sa
|
||||
from res_class.characters import Chars
|
||||
from res_class.gacha import GachaData
|
||||
|
@ -662,8 +663,9 @@ class Arknights数据处理器:
|
|||
|
||||
def levels(self):
|
||||
levels_json = 加载json("./ArknightsGameResource/levels.json")
|
||||
LEVELS = [Level.from_json(data) for data in levels_json]
|
||||
with lzma.open("mower/static/levels.pkl", "wb") as f:
|
||||
pickle.dump(levels_json, f)
|
||||
pickle.dump(LEVELS, f)
|
||||
|
||||
def 读取模组(self):
|
||||
_ = []
|
||||
|
|
Loading…
Add table
Reference in a new issue