Skip to content

Commit

Permalink
Update string extraction script and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrox committed Oct 3, 2020
1 parent 7673b4f commit 605e75e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -1464,10 +1464,10 @@ request](https://github.com/CleverRaven/Cataclysm-DDA/pull/36657) and the

### Constructions
```C++
"description": "Spike Pit", // Description string displayed in the construction menu
"group": "spike_pit", // Construction group, used to group related constructions in UI
"category": "DIG", // Construction category
"required_skills": [ [ "survival", 1 ] ], // Skill levels required to undertake construction
"time": "30 m", // Time required to complete construction. Integers will be read as minutes or a time string can be used.
"time": "30 m", // Time required to complete construction. Integers will be read as minutes or a time string can be used.
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ] ] ], // Items used in construction
"pre_terrain": "t_pit", // Required terrain to build on
"post_terrain": "t_pit_spiked" // Terrain type after construction is complete
Expand Down
2 changes: 1 addition & 1 deletion lang/extract_json_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def warning_supressed(filename):
"BOOK",
"COMESTIBLE",
"construction_category",
"construction_group",
"dream",
"ENGINE",
"event_statistic",
Expand Down Expand Up @@ -254,7 +255,6 @@ def extract_clothing_mod(item):

def extract_construction(item):
outfile = get_outfile("construction")
writestr(outfile, item["description"])
if "pre_note" in item:
writestr(outfile, item["pre_note"])

Expand Down

0 comments on commit 605e75e

Please sign in to comment.