mhx: update hunter arts, weapon sharpness

This commit is contained in:
Bryce Allen
2016-02-06 12:09:24 -06:00
parent 6257f2509e
commit ec8e52b99d
10 changed files with 89939 additions and 38522 deletions

View File

@@ -135,7 +135,8 @@ def _main():
("icon_name", "name_jp", "name"), ("name_jp",),
divider_fn=None)
ha_path = os.path.join(_pathfix.project_path, "db", "hunter_arts.json")
ha_path = os.path.join(_pathfix.project_path,
"db", "mhx", "hunter_arts.json")
with open(ha_path) as f:
ha_list = json.load(f)

View File

@@ -46,6 +46,10 @@ def parse_wikia_hunter_arts(f):
if m:
skill["section"] = section
skill["name"] = m.group(1)
if skill["name"].endswith("II"):
# don't need to translate I-III multiple times, and
# descriptions are also the same
continue
skill["name_jp"] = m.group(2)
# next line is description
description = f.readline().strip().replace("</td><td>", "")