Keep multi-account refresh responsive and batch monster feeding
This commit is contained in:
@@ -14,7 +14,7 @@ apk = next(p for p in root.glob("*.apk") if p.name.endswith("_1.9.68.apk"))
|
||||
tables = {}
|
||||
with zipfile.ZipFile(apk) as archive:
|
||||
tables["tjchannel"] = json.loads(archive.read("assets/tjchannel.json")) if "assets/tjchannel.json" in archive.namelist() else {"tjchannel": "unknow"}
|
||||
for name in ("monster_info", "room_info", "game_setting", "stage_info", "stage_sp", "activity_info", "server_info", "task_info", "gacha_machine", "potential_info", "stack_price", "room_price", "item_info"):
|
||||
for name in ("monster_info", "monster_level", "room_info", "game_setting", "stage_info", "stage_sp", "activity_info", "server_info", "task_info", "gacha_machine", "potential_info", "stack_price", "room_price", "item_info"):
|
||||
path = "data/table/" + name + ".json"
|
||||
raw = zlib.decompress(archive.read("assets/codes/" + hashlib.md5(path.encode()).hexdigest()))
|
||||
reader = Reader(raw)
|
||||
|
||||
Reference in New Issue
Block a user