mhx: update hunter arts, weapon sharpness
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>", "")
|
||||
Reference in New Issue
Block a user