Skip to content

Commit

Permalink
Hopefully extract the mutable faction camp names
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jun 7, 2024
1 parent 60f4b4e commit 6317563
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lang/string_extractor/parsers/overmap_special.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from ..write_text import write_text

def parse_camp_name(overmap, origin):

Check failure on line 3 in lang/string_extractor/parsers/overmap_special.py

View workflow job for this annotation

GitHub Actions / check

expected 2 blank lines, found 1
if "camp_name" in overmap:
write_text(overmap["camp_name"], origin,
comment="Name of NPC faction camp")

Check failure on line 6 in lang/string_extractor/parsers/overmap_special.py

View workflow job for this annotation

GitHub Actions / check

continuation line under-indented for visual indent

def parse_overmap_special(json, origin):

Check failure on line 8 in lang/string_extractor/parsers/overmap_special.py

View workflow job for this annotation

GitHub Actions / check

expected 2 blank lines, found 1
for overmap in json["overmaps"]:
if "camp_name" in overmap:
write_text(overmap["camp_name"], origin,
comment="Name of NPC faction camp")
if "subtype" in json and json["subtype"] == "mutable":
for mutable_overmap, overmap in json["overmaps"]:
parse_camp_name(overmap, origin)
else:
for overmap in json["overmaps"]:
parse_camp_name(overmap, origin)

0 comments on commit 6317563

Please sign in to comment.