Skip to content

Commit

Permalink
fix extractor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwuewsky committed Jun 26, 2024
1 parent f0d983a commit 7fa0ccc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lang/string_extractor/parsers/gun.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -45,5 +45,5 @@ 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 \"{}\""
comment="Valid mod location of gun"

Check failure on line 48 in lang/string_extractor/parsers/gun.py

View workflow job for this annotation

GitHub Actions / check

'...'.format(...) has unused arguments at position(s): 0
.format(name))
6 changes: 3 additions & 3 deletions lang/string_extractor/parsers/gunmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand All @@ -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")

0 comments on commit 7fa0ccc

Please sign in to comment.