Skip to content

Commit

Permalink
Fix volume and weight of cornmeal and dry corn kernels (CleverRaven#7…
Browse files Browse the repository at this point in the history
…2297)

* mass and volume of corn

* correct data

* fix test
  • Loading branch information
wwkk222208 committed Mar 11, 2024
1 parent 84b2f37 commit 22a7030
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
22 changes: 11 additions & 11 deletions data/json/items/comestibles/raw_grain.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "COMESTIBLE",
"id": "corn",
"name": { "str": "corn cob" },
"weight": "690 g",
"weight": "140 g",
"color": "light_green",
"spoils_in": "5 days",
"comestible_type": "FOOD",
Expand All @@ -14,7 +14,7 @@
"//": "Thinking this is a single ear here.",
"price_postapoc": 50,
"material": [ "veggy" ],
"volume": "750 ml",
"volume": "195 ml",
"flags": [ "EATEN_HOT", "RAW" ],
"vitamins": [ [ "vitC", 12 ], [ "iron", 4 ] ],
"use_action": { "type": "consume_drug", "used_up_item": "empty_corn_cob", "moves": 500 }
Expand All @@ -23,7 +23,7 @@
"type": "COMESTIBLE",
"id": "corn_kernels",
"name": { "str_sp": "corn kernels" },
"weight": "210 g",
"weight": "60 g",
"color": "yellow",
"spoils_in": "5 days",
"comestible_type": "FOOD",
Expand All @@ -33,7 +33,7 @@
"price": 200,
"price_postapoc": 60,
"material": [ "veggy" ],
"volume": "285 ml",
"volume": "83 ml",
"smoking_result": "dry_corn",
"vitamins": [ [ "vitC", 12 ], [ "iron", 4 ] ],
"petfood": [ "CATTLEFOOD" ],
Expand All @@ -44,7 +44,7 @@
"type": "COMESTIBLE",
"id": "empty_corn_cob",
"name": { "str": "empty corn cob" },
"weight": "480 g",
"weight": "80 g",
"color": "yellow",
"spoils_in": "5 days",
"comestible_type": "FOOD",
Expand All @@ -53,15 +53,15 @@
"price": 1,
"price_postapoc": 1,
"material": [ "veggy", "wood" ],
"volume": "465 ml",
"volume": "111 ml",
"fun": -8,
"flags": [ "RAW" ]
},
{
"type": "COMESTIBLE",
"id": "popcorn_raw",
"name": { "str_sp": "raw popcorn" },
"weight": "153 g",
"weight": "140 g",
"color": "light_green",
"spoils_in": "5 days",
"comestible_type": "FOOD",
Expand All @@ -70,7 +70,7 @@
"description": "A special variety of corn which could be used for making popcorn, after it's dried. Unlike normal corn, it's not sweet and is more dry.",
"price": 170,
"material": [ "veggy" ],
"volume": "750 ml",
"volume": "195 ml",
"fun": -2,
"vitamins": [ [ "vitC", 12 ], [ "iron", 4 ] ],
"smoking_result": "kernels",
Expand All @@ -82,7 +82,7 @@
"type": "COMESTIBLE",
"id": "kernels",
"name": { "str_sp": "popcorn kernels" },
"weight": "32 g",
"weight": "45 g",
"color": "brown",
"container": "bag_plastic",
"comestible_type": "FOOD",
Expand All @@ -92,7 +92,7 @@
"price": 100,
"price_postapoc": 400,
"material": [ "junk" ],
"volume": "250 ml",
"volume": "83 ml",
"fun": -6,
"petfood": [ "CATTLEFOOD", "BIRDFOOD" ],
"flags": [ "NUTRIENT_OVERRIDE", "EDIBLE_FROZEN", "PLANTABLE_SEED", "INEDIBLE", "CATTLE", "BIRD", "RAT", "MOUSE" ],
Expand All @@ -102,7 +102,7 @@
"type": "COMESTIBLE",
"id": "popcorn",
"name": { "str_sp": "popcorn" },
"weight": "8 g",
"weight": "11 g",
"color": "white",
"spoils_in": "360 days",
"container": "bag_plastic",
Expand Down
16 changes: 8 additions & 8 deletions data/json/items/comestibles/veggy_dishes.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@
"id": "corn_on_cob",
"name": { "str_sp": "corn on the cob" },
"comestible_type": "FOOD",
"weight": "178 g",
"weight": "130 g",
"color": "yellow",
"symbol": "%",
"material": [ "veggy" ],
"vitamins": [ [ "vitC", 3 ], [ "iron", 3 ] ],
"spoils_in": "2 days",
"quench": -2,
"calories": 370,
"volume": "250 ml",
"volume": "195 ml",
"description": "An ear of corn cooked in foil.",
"price": 50,
"price_postapoc": 100,
Expand Down Expand Up @@ -337,7 +337,7 @@
"type": "COMESTIBLE",
"id": "cornmeal",
"name": { "str_sp": "cornmeal" },
"weight": "60 g",
"weight": "12500 mg",
"color": "yellow",
"spoils_in": "360 days",
"container": "box_small",
Expand All @@ -350,7 +350,7 @@
"price": "45 cent",
"price_postapoc": "2 cent",
"material": [ "veggy", "powder" ],
"volume": "107 ml",
"volume": "24 ml",
"flags": [ "EDIBLE_FROZEN" ],
"fun": -5
},
Expand Down Expand Up @@ -1116,7 +1116,7 @@
"type": "COMESTIBLE",
"id": "dry_corn",
"name": { "str_sp": "dehydrated corn kernels" },
"weight": "180 g",
"weight": "45 g",
"color": "yellow",
"comestible_type": "FOOD",
"symbol": "%",
Expand All @@ -1127,7 +1127,7 @@
"price_postapoc": 50,
"material": [ "veggy" ],
"milling": { "into": "cornmeal", "recipe": "cornmeal_mill_1_3" },
"volume": "255 ml",
"volume": "83 ml",
"vitamins": [ [ "vitC", 12 ], [ "iron", 4 ] ],
"petfood": [ "CATTLEFOOD" ],
"flags": [ "EDIBLE_FROZEN", "RAW", "INEDIBLE", "CATTLE", "PLANTABLE_SEED" ],
Expand Down Expand Up @@ -1233,14 +1233,14 @@
"id": "rehydrated_corn_kernels",
"name": { "str_sp": "rehydrated corn kernels" },
"copy-from": "veggy",
"weight": "70 g",
"weight": "60 g",
"color": "yellow",
"spoils_in": "1 day",
"description": "Reconstituted corn kernels, much more enjoyable to eat now that they have been rehydrated.",
"price": 900,
"price_postapoc": 50,
"smoking_result": "dry_corn",
"volume": "95 ml",
"volume": "83 ml",
"delete": { "flags": [ "RAW" ] },
"vitamins": [ [ "vitC", 12 ], [ "iron", 4 ] ],
"fun": 2
Expand Down
1 change: 0 additions & 1 deletion data/mods/TEST_DATA/known_bad_density.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@
"confit_meat",
"xl_k_gambeson_vest_loose",
"chem_phenol",
"empty_corn_cob",
"combination_gun_shotgun",
"mask_dust",
"small_relic",
Expand Down

0 comments on commit 22a7030

Please sign in to comment.