Add prop map and update to remove passive skill

This commit is contained in:
M307 (Mac) 2022-12-14 01:13:36 +07:00
parent f6a29ca7c3
commit f38b2f74ea

11
main.py
View File

@ -47,7 +47,8 @@ ENVKEY = [
"FIGHT_PROPS",
"NAMECARDS",
"ARTIFACTS_SETS",
"COSTUME"
"COSTUME",
"PROPMAP"
]
LANGS = {}
@ -150,7 +151,9 @@ async def main():
EXPORT_DATA["skills"][skillData["id"]] = {
"nameTextMapHash": skillData["nameTextMapHash"],
"skillIcon": skillData["skillIcon"],
"forceCanDoSkill": skillData.get("forceCanDoSkill", None),
"costElemType": skillData.get("costElemType", ""),
"proudSkillGroupId": skillData.get("proudSkillGroupId","")
}
# Load constellations
@ -347,6 +350,11 @@ async def main():
if skill <= 0:
continue
# Check if skill is alternative
skill_info = EXPORT_DATA["skills"].get(int(skill))
if not skill_info["forceCanDoSkill"] is None:
continue
AVATAR["skills"].append(skill)
energry = EXPORT_DATA["skills"].get(depot.get("energySkill"))
@ -370,6 +378,7 @@ async def main():
_delKey = []
if key == "skills":
_delKey.append("costElemType")
_delKey.append("forceCanDoSkill")
LOGGER.debug(f"Exporting {key}...")
await save_data(EXPORT_DATA[key], f"{key}.json", _delKey)