Skip to content

Commit

Permalink
Difficulty info: switch to new lang string extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin committed Nov 30, 2021
1 parent d6797d3 commit 2659d27
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lang/string_extractor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from .parsers.construction import parse_construction
from .parsers.construction_category import parse_construction_category
from .parsers.construction_group import parse_construction_group
from .parsers.difficulty_impact import parse_difficulty_impact
from .parsers.difficulty_opt import parse_difficulty_opt
from .parsers.dream import parse_dream
from .parsers.effect_on_condition import parse_effect_on_condition
from .parsers.effect_type import parse_effect_type
Expand Down Expand Up @@ -105,8 +107,10 @@ def dummy_parser(json, origin):
"construction": parse_construction,
"construction_category": parse_construction_category,
"construction_group": parse_construction_group,
"dream": parse_dream,
"difficulty_impact": parse_difficulty_impact,
"difficulty_opt": parse_difficulty_opt,
"disease_type": dummy_parser,
"dream": parse_dream,
"effect_on_condition": parse_effect_on_condition,
"effect_type": parse_effect_type,
"emit": dummy_parser,
Expand Down
5 changes: 5 additions & 0 deletions lang/string_extractor/parsers/difficulty_impact.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..write_text import write_text


def parse_difficulty_impact(json, origin):
write_text(json["name"], origin, comment="Aspect of gameplay affected by difficulty")
5 changes: 5 additions & 0 deletions lang/string_extractor/parsers/difficulty_opt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..write_text import write_text


def parse_difficulty_opt(json, origin):
write_text(json["name"], origin, comment="Difficulty rating")

0 comments on commit 2659d27

Please sign in to comment.