mirror of
https://github.com/PaiGramTeam/enkanetwork.py-data.git
synced 2024-11-16 12:51:43 +00:00
Add aritfact sets and Remove character test mode
This commit is contained in:
parent
67cbdb99e2
commit
c007ab77b6
1
.env
1
.env
@ -17,6 +17,7 @@ TALENTS="AvatarTalentExcelConfigData.json" # AKA. Constellations
|
|||||||
# Equipment Data
|
# Equipment Data
|
||||||
ARTIFACTS="ReliquaryExcelConfigData.json"
|
ARTIFACTS="ReliquaryExcelConfigData.json"
|
||||||
WEAPONS="WeaponExcelConfigData.json"
|
WEAPONS="WeaponExcelConfigData.json"
|
||||||
|
ARTIFACTS_SETS="EquipAffixExcelConfigData.json"
|
||||||
|
|
||||||
# Fight Props
|
# Fight Props
|
||||||
FIGHT_PROPS="ManualTextMapConfigData.json"
|
FIGHT_PROPS="ManualTextMapConfigData.json"
|
||||||
|
29
main.py
29
main.py
@ -39,7 +39,8 @@ ENVKEY = [
|
|||||||
"ARTIFACTS",
|
"ARTIFACTS",
|
||||||
"WEAPONS",
|
"WEAPONS",
|
||||||
"FIGHT_PROPS",
|
"FIGHT_PROPS",
|
||||||
"NAMECARDS"
|
"NAMECARDS",
|
||||||
|
"ARTIFACTS_SETS"
|
||||||
]
|
]
|
||||||
|
|
||||||
LANGS = {}
|
LANGS = {}
|
||||||
@ -171,6 +172,18 @@ async def main():
|
|||||||
"mainPropDepotId": artifact["mainPropDepotId"],
|
"mainPropDepotId": artifact["mainPropDepotId"],
|
||||||
"appendPropDepotId": artifact["appendPropDepotId"],
|
"appendPropDepotId": artifact["appendPropDepotId"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Load artifacts sets
|
||||||
|
for artifactSet in DATA["EquipAffixExcelConfigData"]:
|
||||||
|
LOGGER.debug(f"Getting artifact set {artifactSet['id']}...")
|
||||||
|
if not "artifact_sets" in EXPORT_DATA:
|
||||||
|
EXPORT_DATA["artifact_sets"] = {}
|
||||||
|
|
||||||
|
if artifactSet["openConfig"].startswith("Relic_"):
|
||||||
|
EXPORT_DATA["artifact_sets"][artifactSet["id"]] = {
|
||||||
|
"affixId": artifactSet["affixId"],
|
||||||
|
"nameTextMapHash": artifactSet["nameTextMapHash"],
|
||||||
|
}
|
||||||
|
|
||||||
# Load weapons
|
# Load weapons
|
||||||
for weapon in DATA["WeaponExcelConfigData"]:
|
for weapon in DATA["WeaponExcelConfigData"]:
|
||||||
@ -221,7 +234,9 @@ async def main():
|
|||||||
for avatar in DATA["AvatarExcelConfigData"]:
|
for avatar in DATA["AvatarExcelConfigData"]:
|
||||||
AVATAR = {}
|
AVATAR = {}
|
||||||
LOGGER.debug(f"Processing {avatar['id']}...")
|
LOGGER.debug(f"Processing {avatar['id']}...")
|
||||||
if avatar["skillDepotId"] == 101 or avatar["iconName"].endswith("_Kate"):
|
if avatar["skillDepotId"] == 101 or \
|
||||||
|
avatar["iconName"].endswith("_Kate") or \
|
||||||
|
str(avatar['id'])[:2] == "11": # 11 is test character mode
|
||||||
LOGGER.debug(f"Skipping {avatar['id']}...")
|
LOGGER.debug(f"Skipping {avatar['id']}...")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -254,7 +269,7 @@ async def main():
|
|||||||
|
|
||||||
|
|
||||||
AVATAR.update({
|
AVATAR.update({
|
||||||
"talents": depot["talents"]
|
"talents": [x for x in depot["talents"] if x > 0],
|
||||||
})
|
})
|
||||||
|
|
||||||
if not "characters" in EXPORT_DATA:
|
if not "characters" in EXPORT_DATA:
|
||||||
@ -273,10 +288,10 @@ async def main():
|
|||||||
await create_lang(EXPORT_DATA[key], f"{key}.json", False if key in ["fight_props"] else True)
|
await create_lang(EXPORT_DATA[key], f"{key}.json", False if key in ["fight_props"] else True)
|
||||||
|
|
||||||
# Push to github
|
# Push to github
|
||||||
await push_to_github(f"""{last_message}
|
# await push_to_github(f"""{last_message}
|
||||||
- SHA: {last_commit}
|
# - SHA: {last_commit}
|
||||||
- URL: {GITHUB_SITE.format(PATH=f"{USERNAME}/{REPOSITORY}/commit/{last_commit}")}
|
# - URL: {GITHUB_SITE.format(PATH=f"{USERNAME}/{REPOSITORY}/commit/{last_commit}")}
|
||||||
""")
|
# """)
|
||||||
|
|
||||||
# Save lastest commit
|
# Save lastest commit
|
||||||
LOGGER.debug(f"Saving lastest commit...")
|
LOGGER.debug(f"Saving lastest commit...")
|
||||||
|
Loading…
Reference in New Issue
Block a user