Skip to content

Commit

Permalink
style(autofix.ci): automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 2, 2025
1 parent 0b1decf commit d5dcaa2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data/json/deconstruction.json
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,7 @@
"required_skills": [ [ "electronics", 4 ] ],
"time": "55 m",
"using": [ [ "advanced_electronics_high_voltage", 1 ] ],
"byproducts": [
],
"byproducts": [ ],
"pre_terrain": "t_potential_trans",
"pre_special": "check_deconstruct",
"post_flags": [ "keep_items" ],
Expand Down
4 changes: 3 additions & 1 deletion doc/src/content/docs/en/mod/json/reference/json_flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,9 @@ List of known flags, used in both `terrain.json` and `furniture.json`.
| O
```

- `ADV_DECONSTRUCT` This cannot be deconstructed using normal deconstruction; a specially-defined construction action is necessary. Most of these fall under the "``advanced_object_deconstruction``" group.
- `ADV_DECONSTRUCT` This cannot be deconstructed using normal deconstruction; a specially-defined
construction action is necessary. Most of these fall under the "`advanced_object_deconstruction`"
group.
- `BARRICADABLE_DOOR_DAMAGED`
- `BARRICADABLE_DOOR_REINFORCED_DAMAGED`
- `BARRICADABLE_DOOR_REINFORCED`
Expand Down
3 changes: 2 additions & 1 deletion src/construction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,8 @@ void construction::load( const JsonObject &jo, const std::string &/*src*/ )
auto it = post_special_map.find( s );
if( it != post_special_map.end() ) {
if( s == "done_deconstruct" && ( !post_terrain.is_empty() || !post_furniture.is_empty() ) ) {
jo.throw_error( "Can't use post_special function \"done_deconstruct\" alongside post_terrain/post_furniture fields", s );
jo.throw_error( "Can't use post_special function \"done_deconstruct\" alongside post_terrain/post_furniture fields",
s );
} else {
post_special = it->second;
}
Expand Down

0 comments on commit d5dcaa2

Please sign in to comment.