From 9ecece6428abb8e4013d898c9ceef41995f14298 Mon Sep 17 00:00:00 2001 From: Sab Pyrope Date: Wed, 26 Jun 2024 12:43:15 +0800 Subject: [PATCH] fix extractor comments --- lang/string_extractor/parsers/gun.py | 7 +++---- lang/string_extractor/parsers/gunmod.py | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lang/string_extractor/parsers/gun.py b/lang/string_extractor/parsers/gun.py index 530a77d446bfd..f246b6826ae63 100644 --- a/lang/string_extractor/parsers/gun.py +++ b/lang/string_extractor/parsers/gun.py @@ -31,12 +31,12 @@ def parse_gun(json, origin): if "modes" in json: for mode in json["modes"]: write_text(mode[1], origin, - comment="Firing mode of gun \"{}\"".format(name)) + comment="Firing mode of gun") if "skill" in json: if json["skill"] != "archery": write_text(json["skill"], origin, context="gun_type_type", - comment="Skill associated with gun \"{}\"".format(name)) + comment="Skill associated with gun") if "reload_noise" in json: write_text(json["reload_noise"], origin, @@ -45,5 +45,4 @@ def parse_gun(json, origin): if "valid_mod_locations" in json: for loc in json["valid_mod_locations"]: write_text(loc[0], origin, - comment="Valid mod location of gun \"{}\"" - .format(name)) + comment="Valid mod location of gun") diff --git a/lang/string_extractor/parsers/gunmod.py b/lang/string_extractor/parsers/gunmod.py index e7bd063e38356..f5e87aaa28ddf 100644 --- a/lang/string_extractor/parsers/gunmod.py +++ b/lang/string_extractor/parsers/gunmod.py @@ -13,7 +13,7 @@ def parse_gunmod(json, origin): if "mode_modifier" in json: for mode in json["mode_modifier"]: write_text(mode[1], origin, - comment="Firing mode of gun mod \"{}\"".format(name)) + comment="Firing mode of gun mod") if "variants" in json: for variant in json["variants"]: @@ -28,9 +28,9 @@ def parse_gunmod(json, origin): if "location" in json: write_text(json["location"], origin, - comment="Location of gun mod \"{}\"".format(name)) + comment="Location of gun mod") if "mod_targets" in json: for target in json["mod_targets"]: write_text(target, origin, context="gun_type_type", - comment="Target of gun mod \"{}\"".format(name)) + comment="Target of gun mod")