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 Jun 6, 2024
1 parent 40aad6e commit 92a4b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions data/json/harvest.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@
"id": "mammal_tiny",
"//": "animals so tiny they don't drop chunks of meat",
"type": "harvest",
"entries": [
"entries": [
{ "drop": "blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.5 } ]
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.5 }
]
},
{
"id": "mutant_animal_tiny",
"//": "mutant animals so tiny they don't drop chunks of meat",
"type": "harvest",
"entries": [
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.5 }
]
Expand Down
3 changes: 2 additions & 1 deletion src/harvest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ void harvest_list::check_consistency()
errorlist += ", ";
}
errorlist += "null type";
} else if( !( entry.type == "flesh" || entry.type == "bone" || entry.type == "skin" || entry.type == "blood" ||
} else if( !( entry.type == "flesh" || entry.type == "bone" || entry.type == "skin" ||
entry.type == "blood" ||
entry.type == "offal" || entry.type == "bionic" || entry.type == "bionic_group" ) ) {
if( !item_valid ) {
errorlist += ", ";
Expand Down

0 comments on commit 92a4b1a

Please sign in to comment.