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 8146068
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lang/string_extractor/parsers/overmap_special.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
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 overmap and overmap["subtype"] == "mutable":

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

View workflow job for this annotation

GitHub Actions / check

undefined name 'overmap'

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

View workflow job for this annotation

GitHub Actions / check

undefined name 'overmap'
for overmap in json["overmaps"]:
for mutable_overmap, overmap in overmap.items():
parse_camp_name(overmap, origin)
else:
for overmap in json["overmaps"]:
parse_camp_name(overmap, origin)

0 comments on commit 8146068

Please sign in to comment.