Skip to content

Commit

Permalink
Comestible modern json (name string, int to string) (#37611)
Browse files Browse the repository at this point in the history
  • Loading branch information
snipercup authored Feb 2, 2020
1 parent 3680e7c commit 205f65b
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 95 deletions.
33 changes: 11 additions & 22 deletions data/json/items/chemicals_and_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@
{
"type": "COMESTIBLE",
"id": "bleach",
"name": "bleach",
"name_plural": "bleach",
"name": { "str": "bleach", "str_pl": "bleach" },
"weight": "138 g",
"color": "white",
"use_action": "BLECH",
Expand Down Expand Up @@ -295,8 +294,7 @@
"type": "COMESTIBLE",
"id": "fungicide",
"category": "chems",
"name": "fungicide",
"name_plural": "fungicide",
"name": { "str": "fungicide", "str_pl": "fungicide" },
"weight": "1 g",
"//": "Typically sold in larger quantities, but that's handed in the charge count.",
"color": "pink",
Expand Down Expand Up @@ -344,8 +342,7 @@
{
"type": "COMESTIBLE",
"id": "salt_water",
"name": "salt water",
"name_plural": "salt water",
"name": { "str": "salt water", "str_pl": "salt water" },
"weight": "260 g",
"color": "light_cyan",
"container": "bottle_plastic",
Expand All @@ -364,8 +361,7 @@
{
"type": "COMESTIBLE",
"id": "soapy_water",
"name": "soapy water",
"name_plural": "soapy water",
"name": { "str": "soapy water", "str_pl": "soapy water" },
"weight": "260 g",
"color": "light_cyan",
"container": "bottle_plastic",
Expand Down Expand Up @@ -1108,8 +1104,7 @@
{
"type": "COMESTIBLE",
"id": "water_sewage",
"name": "sewage water",
"name_plural": "sewage water",
"name": { "str": "sewage water", "str_pl": "sewage water" },
"weight": "280 g",
"color": "green",
"container": "bottle_plastic",
Expand Down Expand Up @@ -1160,8 +1155,7 @@
{
"type": "COMESTIBLE",
"id": "lye",
"name": "lye",
"name_plural": "lye",
"name": { "str": "lye", "str_pl": "lye" },
"weight": "125 g",
"color": "white",
"container": "bottle_plastic",
Expand Down Expand Up @@ -1214,8 +1208,7 @@
"id": "ether",
"category": "chems",
"price": 10,
"name": "ether",
"name_plural": "ether",
"name": { "str": "ether", "str_pl": "ether" },
"symbol": "!",
"quench": -96,
"healthy": -20,
Expand All @@ -1231,8 +1224,7 @@
"id": "chem_DMSO",
"category": "chems",
"price": 10,
"name": "dimethyl sulfoxide",
"name_plural": "dimethyl sulfoxide",
"name": { "str": "dimethyl sulfoxide", "str_pl": "dimethyl sulfoxide" },
"symbol": "~",
"quench": -96,
"healthy": -20,
Expand All @@ -1248,8 +1240,7 @@
"id": "chem_chloroform",
"category": "chems",
"price": 20,
"name": "chloroform",
"name_plural": "chloroform",
"name": { "str": "chloroform", "str_pl": "chloroform" },
"symbol": "~",
"color": "light_cyan",
"container": "bottle_glass",
Expand All @@ -1265,8 +1256,7 @@
"id": "chem_phenol",
"category": "chems",
"price": 10,
"name": "phenol",
"name_plural": "phenol",
"name": { "str": "phenol", "str_pl": "phenol" },
"symbol": "~",
"quench": -96,
"healthy": -20,
Expand All @@ -1282,8 +1272,7 @@
"id": "chem_glycerol",
"category": "chems",
"price": 10,
"name": "glycerol",
"name_plural": "glycerol",
"name": { "str": "glycerol", "str_pl": "glycerol" },
"symbol": "~",
"quench": -15,
"healthy": -1,
Expand Down
8 changes: 3 additions & 5 deletions data/json/items/comestibles/carnivore.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
"quench": -5,
"fun": 4,
"vitamins": [ [ "vitA", 7 ], [ "vitC", 7 ], [ "calcium", 25 ], [ "iron", 21 ], [ "vitB", 617 ] ],
"proportional": { "price": 2, "volume": 0.28, "weight": 0.28 },
"proportional": { "price": 2.0, "volume": 0.28, "weight": 0.28 },
"delete": { "flags": [ "RAW" ] }
},
{
Expand Down Expand Up @@ -543,8 +543,7 @@
{
"type": "COMESTIBLE",
"id": "blood",
"name": "blood",
"name_plural": "blood",
"name": { "str": "blood", "str_pl": "blood" },
"weight": "265 g",
"color": "red",
"container": "bag_iv",
Expand Down Expand Up @@ -577,8 +576,7 @@
{
"type": "COMESTIBLE",
"id": "fat",
"name": "chunk of fat",
"name_plural": "chunks of fat",
"name": { "str": "chunk of fat", "str_pl": "chunks of fat" },
"weight": "220 g",
"color": "pink",
"spoils_in": "7 days",
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/comestibles/dairy.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@
{
"type": "COMESTIBLE",
"id": "butter",
"name": "butter",
"name_plural": "butter",
"name": { "str": "butter", "str_pl": "butter" },
"weight": "14180 mg",
"color": "yellow",
"spoils_in": "14 days",
Expand All @@ -111,8 +110,7 @@
{
"type": "COMESTIBLE",
"id": "raw_butter",
"name": "raw butter",
"name_plural": "raw butter",
"name": { "str": "raw butter", "str_pl": "raw butter" },
"weight": "14 g",
"color": "white",
"spoils_in": "10 days",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/drink.json
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,7 @@
{
"type": "COMESTIBLE",
"id": "sweet_water",
"name": "sweet water",
"name_plural": "sweet water",
"name": { "str": "sweet water", "str_pl": "sweet water" },
"weight": "260 g",
"color": "light_cyan",
"container": "bottle_plastic",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/comestibles/drink_other.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
"type": "COMESTIBLE",
"symbol": "~",
"color": "yellow",
"name": "mustard",
"name_plural": "mustard",
"name": { "str": "mustard", "str_pl": "mustard" },
"description": "A condiment made from the seeds of a mustard plant (/Brassica/ or /Sinapis/), vinegar, salt, and spices.",
"price": 50,
"material": "junk",
Expand Down Expand Up @@ -163,8 +162,7 @@
{
"type": "COMESTIBLE",
"id": "vinegar",
"name": "vinegar",
"name_plural": "vinegar",
"name": { "str": "vinegar", "str_pl": "vinegar" },
"weight": "15 g",
"color": "white",
"container": "jug_plastic",
Expand Down Expand Up @@ -241,8 +239,7 @@
"type": "COMESTIBLE",
"symbol": "~",
"color": "white",
"name": "horseradish",
"name_plural": "horseradish",
"name": { "str": "horseradish", "str_pl": "horseradish" },
"description": "A spicy grated root vegetable packed in vinegared brine.",
"price": 75,
"material": "veggy",
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/comestibles/fruit_dishes.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
{
"type": "COMESTIBLE",
"id": "can_peach",
"name": "peaches in syrup",
"name_plural": "peaches in syrup",
"name": { "str": "peaches in syrup", "str_pl": "peaches in syrup" },
"weight": "277 g",
"color": "yellow",
"spoils_in": "1 day 6 hours",
Expand Down Expand Up @@ -185,8 +184,7 @@
{
"type": "COMESTIBLE",
"id": "rehydrated_fruit",
"name": "rehydrated fruit",
"name_plural": "rehydrated fruit",
"name": { "str": "rehydrated fruit", "str_pl": "rehydrated fruit" },
"weight": "150 g",
"color": "pink",
"spoils_in": "18 hours",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/comestibles/junkfood.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@
{
"type": "COMESTIBLE",
"id": "syrup",
"name": "maple syrup",
"name_plural": "maple syrup",
"name": { "str": "maple syrup", "str_pl": "maple syrup" },
"weight": "21 g",
"color": "brown",
"container": "bottle_glass",
Expand All @@ -428,8 +427,7 @@
{
"type": "COMESTIBLE",
"id": "beet_syrup",
"name": "sugar beet syrup",
"name_plural": "sugar beet syrup",
"name": { "str": "sugar beet syrup", "str_pl": "sugar beet syrup" },
"weight": "15 g",
"color": "brown",
"container": "bottle_glass",
Expand Down Expand Up @@ -603,8 +601,7 @@
{
"type": "COMESTIBLE",
"id": "sugar_fried",
"name": "caramel",
"name_plural": "caramel",
"name": { "str": "caramel", "str_pl": "caramel" },
"weight": "67 g",
"color": "white",
"container": "box_small",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/comestibles/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
{
"type": "COMESTIBLE",
"id": "wax",
"name": "wax",
"name_plural": "waxes",
"name": { "str_pl": "waxes", "str": "wax" },
"weight": "97 g",
"color": "white",
"comestible_type": "FOOD",
Expand Down Expand Up @@ -348,8 +347,7 @@
{
"type": "COMESTIBLE",
"id": "dry_tofu",
"name": "dehydrated tofu",
"name_plural": "dehydrated tofu",
"name": { "str": "dehydrated tofu", "str_pl": "dehydrated tofu" },
"weight": "65 g",
"color": "white",
"spoils_in": "360 days",
Expand Down Expand Up @@ -479,8 +477,7 @@
"type": "COMESTIBLE",
"symbol": "~",
"color": "yellow",
"name": "candied honey",
"name_plural": "candied honey",
"name": { "str": "candied honey", "str_pl": "candied honey" },
"description": "Honey, that stuff the bees make. This variant is \"candied honey\", a variant of very thick consistence. This honey won't spoil and is good for your digestion.",
"price": 800,
"material": "honey",
Expand Down
3 changes: 1 addition & 2 deletions data/json/items/comestibles/raw_veggy.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@
{
"type": "COMESTIBLE",
"id": "cotton_boll",
"name": "cotton boll",
"name_plural": "cotton bolls",
"name": { "str": "cotton boll" },
"category": "other",
"weight": "26 g",
"color": "light_green",
Expand Down
32 changes: 11 additions & 21 deletions data/json/items/comestibles/sandwich.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_cheese",
"name": "cheese sandwich",
"name_plural": "cheese sandwiches",
"name": { "str": "cheese sandwich", "str_pl": "cheese sandwiches" },
"weight": "106 g",
"color": "brown",
"spoils_in": "1 day 12 hours",
Expand All @@ -96,8 +95,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_jam",
"name": "jam sandwich",
"name_plural": "jam sandwiches",
"name": { "str": "jam sandwich", "str_pl": "jam sandwiches" },
"weight": "97 g",
"color": "brown",
"spoils_in": "1 day 13 hours",
Expand All @@ -117,8 +115,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_fairy",
"name": "fairy bread",
"name_plural": "fairy bread",
"name": { "str": "fairy bread", "str_pl": "fairy bread" },
"weight": "114 g",
"color": "brown",
"spoils_in": "3 days",
Expand All @@ -136,8 +133,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_honey",
"name": "honey sandwich",
"name_plural": "honey sandwiches",
"name": { "str": "honey sandwich", "str_pl": "honey sandwiches" },
"weight": "192 g",
"color": "brown",
"spoils_in": "10 days",
Expand All @@ -161,7 +157,7 @@
"name": "boring sandwich",
"name_plural": "boring sandwiches",
"copy-from": "bread",
"proportional": { "weight": 2, "calories": 2, "volume": 2 },
"proportional": { "weight": 2.0, "calories": 2.0, "volume": 2.0 },
"color": "brown",
"spoils_in": "1 day 22 hours",
"container": "wrapper",
Expand Down Expand Up @@ -219,8 +215,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_pb",
"name": "peanut butter sandwich",
"name_plural": "peanut butter sandwiches",
"name": { "str": "peanut butter sandwich", "str_pl": "peanut butter sandwiches" },
"weight": "204 g",
"color": "brown",
"spoils_in": "1 day 12 hours",
Expand All @@ -239,8 +234,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_pbj",
"name": "PB&J sandwich",
"name_plural": "PB&J sandwiches",
"name": { "str": "PB&J sandwich", "str_pl": "PB&J sandwiches" },
"weight": "102 g",
"color": "brown",
"spoils_in": "1 day 12 hours",
Expand All @@ -260,8 +254,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_pbh",
"name": "PB&H sandwich",
"name_plural": "PB&H sandwiches",
"name": { "str": "PB&H sandwich", "str_pl": "PB&H sandwiches" },
"weight": "97 g",
"color": "brown",
"spoils_in": "1 day 12 hours",
Expand All @@ -281,8 +274,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_pbm",
"name": "PB&M sandwich",
"name_plural": "PB&M sandwiches",
"name": { "str": "PB&M sandwich", "str_pl": "PB&M sandwiches" },
"weight": "225 g",
"color": "brown",
"spoils_in": "1 day 12 hours",
Expand All @@ -301,8 +293,7 @@
{
"type": "COMESTIBLE",
"id": "fish_sandwich",
"name": "fish sandwich",
"name_plural": "fish sandwiches",
"name": { "str": "fish sandwich", "str_pl": "fish sandwiches" },
"weight": "201 g",
"color": "yellow",
"spoils_in": "1 day",
Expand All @@ -320,8 +311,7 @@
{
"type": "COMESTIBLE",
"id": "fish_bagel",
"name": "fish and spinach bagel",
"name_plural": "fish and spinach bagels",
"name": { "str": "fish and spinach bagel" },
"weight": "201 g",
"color": "magenta",
"spoils_in": "1 day",
Expand Down
Loading

0 comments on commit 205f65b

Please sign in to comment.