Skip to content

Commit

Permalink
Merge pull request #38138 from snipercup/Comestible-name-to-object,-f…
Browse files Browse the repository at this point in the history
…lags-to-array

Comestible name to object, flags to array
  • Loading branch information
ZhilkinSerg authored Feb 18, 2020
2 parents ca2e327 + e9b60ca commit 652b8cc
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 38 deletions.
3 changes: 1 addition & 2 deletions data/json/items/chemicals_and_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@
{
"type": "COMESTIBLE",
"id": "water_acid_weak",
"name": "weak acid water",
"name_plural": "weak acid water",
"name": { "str": "weak acid water", "str_pl": "weak acid water" },
"weight": "255 g",
"color": "light_green",
"flags": [ "ACID" ],
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/comestibles/brewing.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
{
"type": "COMESTIBLE",
"id": "wash_whiskey",
"name": "whiskey wash",
"name_plural": "whiskey washes",
"name": { "str": "whiskey wash", "str_pl": "whiskey washes" },
"description": "Fermented, but not distilled whiskey. No longer tastes sweet.",
"weight": "33 g",
"color": "brown",
Expand Down Expand Up @@ -131,8 +130,7 @@
{
"type": "COMESTIBLE",
"id": "wash_vodka",
"name": "vodka wash",
"name_plural": "vodka washes",
"name": { "str": "vodka wash", "str_pl": "vodka washes" },
"description": "Fermented, but not distilled vodka. No longer tastes sweet.",
"weight": "33 g",
"color": "light_cyan",
Expand Down
5 changes: 2 additions & 3 deletions data/json/items/comestibles/drink_other.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@
{
"type": "COMESTIBLE",
"id": "cooking_oil",
"name": "vegetable cooking oil",
"name_plural": "vegetable cooking oil",
"name": { "str": "vegetable cooking oil", "str_pl": "vegetable cooking oil" },
"weight": "15 g",
"color": "yellow",
"container": "jug_plastic",
Expand All @@ -193,7 +192,7 @@
"charges": 16,
"phase": "liquid",
"fun": -25,
"flags": "NUTRIENT_OVERRIDE",
"flags": [ "NUTRIENT_OVERRIDE" ],
"vitamins": [ ],
"freezing_point": 14
},
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/comestibles/junkfood.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,7 @@
{
"type": "COMESTIBLE",
"id": "corndogs_frozen",
"name": "uncooked corn dogs",
"name_plural": "uncooked corn dogs",
"name": { "str": "uncooked corn dogs", "str_pl": "uncooked corn dogs" },
"weight": "78 g",
"color": "yellow",
"spoils_in": "11 days 16 hours",
Expand Down Expand Up @@ -1019,8 +1018,7 @@
{
"type": "COMESTIBLE",
"id": "hotdogs_frozen",
"name": "uncooked hot dog",
"name_plural": "uncooked hot dogs",
"name": { "str": "uncooked hot dog" },
"weight": "43 g",
"color": "red",
"spoils_in": "11 days 16 hours",
Expand Down
5 changes: 2 additions & 3 deletions data/json/items/comestibles/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@
{
"type": "COMESTIBLE",
"id": "underbrush",
"name": "underbrush",
"name_plural": "underbrushes",
"name": { "str": "underbrush", "str_pl": "underbrushes" },
"weight": "100 g",
"color": "green",
"comestible_type": "FOOD",
Expand All @@ -654,7 +653,7 @@
"description": "Some underbrush, edible by ruminants only. Seeing this item is a bug.",
"price": 0,
"material": "veggy",
"flags": "TRADER_AVOID",
"flags": [ "TRADER_AVOID" ],
"volume": "250 ml"
},
{
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/comestibles/raw_veggy.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@
{
"type": "COMESTIBLE",
"id": "carrot_wild",
"name": "wild root",
"name_plural": "wild roots",
"name": { "str": "wild root" },
"copy-from": "carrot",
"color": "white",
"description": "A weed with a cluster of tiny white flowers. These are often wild carrots, but beware of poisonous lookalikes.",
Expand Down Expand Up @@ -664,8 +663,7 @@
{
"type": "COMESTIBLE",
"id": "veggy_wild",
"name": "wild vegetables",
"name_plural": "wild vegetables",
"name": { "str": "wild vegetables", "str_pl": "wild vegetables" },
"copy-from": "veggy",
"description": "An assortment of edible-looking wild plants. Most are quite bitter-tasting. Some are inedible until cooked.",
"//": "In real life many root vegetables are mildly toxic until cooked",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/sandwich.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_veggy",
"name": "vegetable sandwich",
"name_plural": "vegetable sandwiches",
"name": { "str": "vegetable sandwich", "str_pl": "vegetable sandwiches" },
"weight": "289 g",
"color": "light_gray",
"spoils_in": "2 days",
Expand Down
15 changes: 5 additions & 10 deletions data/json/items/comestibles/seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@
"id": "seed_zucchini",
"copy-from": "seed",
"price": 50,
"name": "zucchini seeds",
"name_plural": "zucchini seeds",
"name": { "str": "zucchini seeds", "str_pl": "zucchini seeds" },
"description": "Some zucchini seeds.",
"seed_data": { "plant_name": "zucchini", "fruit": "zucchini", "byproducts": [ "withered" ], "grow": "47 days" }
},
Expand Down Expand Up @@ -277,8 +276,7 @@
"id": "seed_wildcarrot",
"copy-from": "seed",
"price": 50,
"name": "wild root seeds",
"name_plural": "wild root seeds",
"name": { "str": "wild root seeds", "str_pl": "wild root seeds" },
"description": "Some seeds from a white flower.",
"seed_data": { "plant_name": "wild root", "fruit": "carrot_wild", "byproducts": [ "withered" ], "grow": "65 days" }
},
Expand Down Expand Up @@ -551,8 +549,7 @@
"type": "COMESTIBLE",
"id": "seed_wild_herbs",
"copy-from": "seed",
"name": "wild herb seeds",
"name_plural": "wild herb seeds",
"name": { "str": "wild herb seeds", "str_pl": "wild herb seeds" },
"color": "green",
"description": "Some seeds harvested from wild herbs.",
"charges": 2,
Expand All @@ -562,8 +559,7 @@
"type": "COMESTIBLE",
"id": "seed_veggy_wild",
"copy-from": "seed",
"name": "wild vegetable stems",
"name_plural": "wild vegetable stems",
"name": { "str": "wild vegetable stems", "str_pl": "wild vegetable stems" },
"color": "green",
"description": "Some wild vegetable stems.",
"charges": 2,
Expand Down Expand Up @@ -645,8 +641,7 @@
"id": "seed_wheat",
"copy-from": "seed",
"type": "COMESTIBLE",
"name": "wheat seeds",
"name_plural": "wheat seeds",
"name": { "str": "wheat seeds", "str_pl": "wheat seeds" },
"description": "Some wheat seeds.",
"weight": "5 g",
"price": 50,
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/spice.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
{
"type": "COMESTIBLE",
"id": "wild_herbs",
"name": "wild herbs",
"name_plural": "wild herbs",
"name": { "str": "wild herbs", "str_pl": "wild herbs" },
"weight": "7 g",
"color": "green",
"comestible_type": "FOOD",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/veggy_dishes.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@
{
"type": "COMESTIBLE",
"id": "deluxe_veggy_beans",
"name": "vegetarian baked beans",
"name_plural": "vegetarian baked beans",
"name": { "str": "vegetarian baked beans", "str_pl": "vegetarian baked beans" },
"weight": "270 g",
"color": "brown",
"spoils_in": "15 days",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/wheat.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
{
"type": "COMESTIBLE",
"id": "wheat",
"name": "wheat",
"name_plural": "wheat",
"name": { "str": "wheat", "str_pl": "wheat" },
"weight": "203 g",
"color": "brown",
"comestible_type": "FOOD",
Expand Down

0 comments on commit 652b8cc

Please sign in to comment.