Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(content): fruit products (jam, juice, cooked) will inherit name from component used #4737

Merged
merged 9 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 60 additions & 2 deletions data/json/items/comestibles/drink.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
{
"type": "COMESTIBLE",
"id": "cranberry_juice",
"//": "should not be obsoleted together with its recipe, because generic juice spawns as juice.",
"name": "cranberry juice",
"weight": "250 g",
"color": "magenta",
Expand Down Expand Up @@ -532,7 +533,35 @@
{
"type": "COMESTIBLE",
"id": "juice",
"name": "fruit juice",
"name": "juice",
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "apple", "name": { "str_sp": "apple %s" } },
{ "type": "COMPONENT_ID", "condition": "apricot", "name": { "str_sp": "apricot %s" } },
{ "type": "COMPONENT_ID", "condition": "banana", "name": { "str_sp": "banana %s" } },
{ "type": "COMPONENT_ID", "condition": "blackberries", "name": { "str_sp": "blackberry %s" } },
{ "type": "COMPONENT_ID", "condition": "blueberries", "name": { "str_sp": "blueberry %s" } },
{ "type": "COMPONENT_ID", "condition": "cherries", "name": { "str_sp": "cherry %s" } },
{ "type": "COMPONENT_ID", "condition": "cranberries", "name": { "str_sp": "cranberry %s" } },
{ "type": "COMPONENT_ID", "condition": "grapefruit", "name": { "str_sp": "grapefruit %s" } },
{ "type": "COMPONENT_ID", "condition": "grapes", "name": { "str_sp": "grape %s" } },
{ "type": "COMPONENT_ID", "condition": "kiwi", "name": { "str_sp": "kiwi %s" } },
{ "type": "COMPONENT_ID", "condition": "mango", "name": { "str_sp": "mango %s" } },
{ "type": "COMPONENT_ID", "condition": "melon", "name": { "str_sp": "melon %s" } },
{ "type": "COMPONENT_ID", "condition": "orange", "name": { "str_sp": "orange %s" } },
{ "type": "COMPONENT_ID", "condition": "papaya", "name": { "str_sp": "papaya %s" } },
{ "type": "COMPONENT_ID", "condition": "peach", "name": { "str_sp": "peach %s" } },
{ "type": "COMPONENT_ID", "condition": "pear", "name": { "str_sp": "pear %s" } },
{ "type": "COMPONENT_ID", "condition": "pineapple", "name": { "str_sp": "pineapple %s" } },
{ "type": "COMPONENT_ID", "condition": "plums", "name": { "str_sp": "plum %s" } },
{ "type": "COMPONENT_ID", "condition": "pomegranate", "name": { "str_sp": "pomegranate %s" } },
{ "type": "COMPONENT_ID", "condition": "raspberries", "name": { "str_sp": "raspberry %s" } },
{ "type": "COMPONENT_ID", "condition": "rose_hips", "name": { "str_sp": "rose_hip %s" } },
{ "type": "COMPONENT_ID", "condition": "strawberries", "name": { "str_sp": "strawberry %s" } },
{ "type": "COMPONENT_ID", "condition": "huckleberries", "name": { "str_sp": "huckleberry %s" } },
{ "type": "COMPONENT_ID", "condition": "mulberries", "name": { "str_sp": "mulberry %s" } },
{ "type": "COMPONENT_ID", "condition": "elderberries", "name": { "str_sp": "elderberry %s" } },
{ "type": "COMPONENT_ID", "condition": "watermelon", "name": { "str_sp": "watermelon %s" } }
],
"weight": "125 g",
"color": "light_red",
"spoils_in": "5 days",
Expand All @@ -558,6 +587,34 @@
"type": "COMESTIBLE",
"id": "kompot",
"name": "kompot",
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "apple", "name": { "str_sp": "apple %s" } },
{ "type": "COMPONENT_ID", "condition": "apricot", "name": { "str_sp": "apricot %s" } },
{ "type": "COMPONENT_ID", "condition": "banana", "name": { "str_sp": "banana %s" } },
{ "type": "COMPONENT_ID", "condition": "blackberries", "name": { "str_sp": "blackberry %s" } },
{ "type": "COMPONENT_ID", "condition": "blueberries", "name": { "str_sp": "blueberry %s" } },
{ "type": "COMPONENT_ID", "condition": "cherries", "name": { "str_sp": "cherry %s" } },
{ "type": "COMPONENT_ID", "condition": "cranberries", "name": { "str_sp": "cranberry %s" } },
{ "type": "COMPONENT_ID", "condition": "grapefruit", "name": { "str_sp": "grapefruit %s" } },
{ "type": "COMPONENT_ID", "condition": "grapes", "name": { "str_sp": "grape %s" } },
{ "type": "COMPONENT_ID", "condition": "kiwi", "name": { "str_sp": "kiwi %s" } },
{ "type": "COMPONENT_ID", "condition": "mango", "name": { "str_sp": "mango %s" } },
{ "type": "COMPONENT_ID", "condition": "melon", "name": { "str_sp": "melon %s" } },
{ "type": "COMPONENT_ID", "condition": "orange", "name": { "str_sp": "orange %s" } },
{ "type": "COMPONENT_ID", "condition": "papaya", "name": { "str_sp": "papaya %s" } },
{ "type": "COMPONENT_ID", "condition": "peach", "name": { "str_sp": "peach %s" } },
{ "type": "COMPONENT_ID", "condition": "pear", "name": { "str_sp": "pear %s" } },
{ "type": "COMPONENT_ID", "condition": "pineapple", "name": { "str_sp": "pineapple %s" } },
{ "type": "COMPONENT_ID", "condition": "plums", "name": { "str_sp": "plum %s" } },
{ "type": "COMPONENT_ID", "condition": "pomegranate", "name": { "str_sp": "pomegranate %s" } },
{ "type": "COMPONENT_ID", "condition": "raspberries", "name": { "str_sp": "raspberry %s" } },
{ "type": "COMPONENT_ID", "condition": "rose_hips", "name": { "str_sp": "rose_hip %s" } },
{ "type": "COMPONENT_ID", "condition": "strawberries", "name": { "str_sp": "strawberry %s" } },
{ "type": "COMPONENT_ID", "condition": "huckleberries", "name": { "str_sp": "huckleberry %s" } },
{ "type": "COMPONENT_ID", "condition": "mulberries", "name": { "str_sp": "mulberry %s" } },
{ "type": "COMPONENT_ID", "condition": "elderberries", "name": { "str_sp": "elderberry %s" } },
{ "type": "COMPONENT_ID", "condition": "watermelon", "name": { "str_sp": "watermelon %s" } }
],
"weight": "250 g",
"color": "red",
"spoils_in": "7 days 12 hours",
Expand Down Expand Up @@ -761,6 +818,7 @@
{
"type": "COMESTIBLE",
"id": "oj",
"//": "should not be obsoleted together with its recipe, because generic juice spawns as juice.",
"name": "orange juice",
"weight": "263 g",
"color": "yellow",
Expand All @@ -779,7 +837,7 @@
"volume": "250 ml",
"phase": "liquid",
"flags": [ "EATEN_COLD" ],
"//": "most store-bought oj is fortified with calcium.",
"//2": "most store-bought oj is fortified with calcium.",
"vitamins": [ [ "vitA", 2 ], [ "vitC", 146 ], [ "calcium", 28 ], [ "iron", 2 ] ],
"fun": 3
},
Expand Down
10 changes: 5 additions & 5 deletions data/json/items/comestibles/egg.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@
"id": "boiled_egg_condiment",
"name": { "str": "boiled egg with condiment" },
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "ketchup", "name": "boiled egg with ketchup" },
{ "type": "COMPONENT_ID", "condition": "mayonnaise", "name": "boiled egg with mayonnaise" },
{ "type": "COMPONENT_ID", "condition": "mustard", "name": "boiled egg with mustard" },
{ "type": "COMPONENT_ID", "condition": "horseradish", "name": "boiled egg with horseradish" },
{ "type": "COMPONENT_ID", "condition": "salt", "name": "salted boiled egg" }
{ "type": "COMPONENT_ID", "condition": "ketchup", "name": { "str": "%s with ketchup" } },
{ "type": "COMPONENT_ID", "condition": "mayonnaise", "name": { "str": "%s with mayonnaise" } },
{ "type": "COMPONENT_ID", "condition": "mustard", "name": { "str": "%s with mustard" } },
{ "type": "COMPONENT_ID", "condition": "horseradish", "name": { "str": "%s with horseradish" } },
{ "type": "COMPONENT_ID", "condition": "salt", "name": { "str": "salted boiled egg" } }
],
"copy-from": "boiled_egg",
"quench": 0,
Expand Down
56 changes: 56 additions & 0 deletions data/json/items/comestibles/frozen.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
"type": "COMESTIBLE",
"id": "milkshake",
"name": { "str": "milkshake" },
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "apple", "name": { "str_sp": "apple %s" } },
{ "type": "COMPONENT_ID", "condition": "apricot", "name": { "str_sp": "apricot %s" } },
{ "type": "COMPONENT_ID", "condition": "banana", "name": { "str_sp": "banana %s" } },
{ "type": "COMPONENT_ID", "condition": "blackberries", "name": { "str_sp": "blackberry %s" } },
{ "type": "COMPONENT_ID", "condition": "blueberries", "name": { "str_sp": "blueberry %s" } },
{ "type": "COMPONENT_ID", "condition": "cherries", "name": { "str_sp": "cherry %s" } },
{ "type": "COMPONENT_ID", "condition": "cranberries", "name": { "str_sp": "cranberry %s" } },
{ "type": "COMPONENT_ID", "condition": "grapefruit", "name": { "str_sp": "grapefruit %s" } },
{ "type": "COMPONENT_ID", "condition": "grapes", "name": { "str_sp": "grape %s" } },
{ "type": "COMPONENT_ID", "condition": "kiwi", "name": { "str_sp": "kiwi %s" } },
{ "type": "COMPONENT_ID", "condition": "mango", "name": { "str_sp": "mango %s" } },
{ "type": "COMPONENT_ID", "condition": "melon", "name": { "str_sp": "melon %s" } },
{ "type": "COMPONENT_ID", "condition": "orange", "name": { "str_sp": "orange %s" } },
{ "type": "COMPONENT_ID", "condition": "papaya", "name": { "str_sp": "papaya %s" } },
{ "type": "COMPONENT_ID", "condition": "peach", "name": { "str_sp": "peach %s" } },
{ "type": "COMPONENT_ID", "condition": "pear", "name": { "str_sp": "pear %s" } },
{ "type": "COMPONENT_ID", "condition": "pineapple", "name": { "str_sp": "pineapple %s" } },
{ "type": "COMPONENT_ID", "condition": "plums", "name": { "str_sp": "plum %s" } },
{ "type": "COMPONENT_ID", "condition": "pomegranate", "name": { "str_sp": "pomegranate %s" } },
{ "type": "COMPONENT_ID", "condition": "raspberries", "name": { "str_sp": "raspberry %s" } },
{ "type": "COMPONENT_ID", "condition": "rose_hips", "name": { "str_sp": "rose_hip %s" } },
{ "type": "COMPONENT_ID", "condition": "strawberries", "name": { "str_sp": "strawberry %s" } },
{ "type": "COMPONENT_ID", "condition": "huckleberries", "name": { "str_sp": "huckleberry %s" } },
{ "type": "COMPONENT_ID", "condition": "mulberries", "name": { "str_sp": "mulberry %s" } },
{ "type": "COMPONENT_ID", "condition": "elderberries", "name": { "str_sp": "elderberry %s" } },
{ "type": "COMPONENT_ID", "condition": "watermelon", "name": { "str_sp": "watermelon %s" } }
],
"//": "they bring the boys to the yard",
"description": "An all-natural cold beverage made with milk and sweeteners. Tastes great when frozen.",
"weight": "160 g",
Expand Down Expand Up @@ -42,6 +70,34 @@
"type": "COMESTIBLE",
"copy-from": "milkshake",
"id": "milkshake_deluxe",
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "apple", "name": { "str_sp": "apple %s" } },
{ "type": "COMPONENT_ID", "condition": "apricot", "name": { "str_sp": "apricot %s" } },
{ "type": "COMPONENT_ID", "condition": "banana", "name": { "str_sp": "banana %s" } },
{ "type": "COMPONENT_ID", "condition": "blackberries", "name": { "str_sp": "blackberry %s" } },
{ "type": "COMPONENT_ID", "condition": "blueberries", "name": { "str_sp": "blueberry %s" } },
{ "type": "COMPONENT_ID", "condition": "cherries", "name": { "str_sp": "cherry %s" } },
{ "type": "COMPONENT_ID", "condition": "cranberries", "name": { "str_sp": "cranberry %s" } },
{ "type": "COMPONENT_ID", "condition": "grapefruit", "name": { "str_sp": "grapefruit %s" } },
{ "type": "COMPONENT_ID", "condition": "grapes", "name": { "str_sp": "grape %s" } },
{ "type": "COMPONENT_ID", "condition": "kiwi", "name": { "str_sp": "kiwi %s" } },
{ "type": "COMPONENT_ID", "condition": "mango", "name": { "str_sp": "mango %s" } },
{ "type": "COMPONENT_ID", "condition": "melon", "name": { "str_sp": "melon %s" } },
{ "type": "COMPONENT_ID", "condition": "orange", "name": { "str_sp": "orange %s" } },
{ "type": "COMPONENT_ID", "condition": "papaya", "name": { "str_sp": "papaya %s" } },
{ "type": "COMPONENT_ID", "condition": "peach", "name": { "str_sp": "peach %s" } },
{ "type": "COMPONENT_ID", "condition": "pear", "name": { "str_sp": "pear %s" } },
{ "type": "COMPONENT_ID", "condition": "pineapple", "name": { "str_sp": "pineapple %s" } },
{ "type": "COMPONENT_ID", "condition": "plums", "name": { "str_sp": "plum %s" } },
{ "type": "COMPONENT_ID", "condition": "pomegranate", "name": { "str_sp": "pomegranate %s" } },
{ "type": "COMPONENT_ID", "condition": "raspberries", "name": { "str_sp": "raspberry %s" } },
{ "type": "COMPONENT_ID", "condition": "rose_hips", "name": { "str_sp": "rose_hip %s" } },
{ "type": "COMPONENT_ID", "condition": "strawberries", "name": { "str_sp": "strawberry %s" } },
{ "type": "COMPONENT_ID", "condition": "huckleberries", "name": { "str_sp": "huckleberry %s" } },
{ "type": "COMPONENT_ID", "condition": "mulberries", "name": { "str_sp": "mulberry %s" } },
{ "type": "COMPONENT_ID", "condition": "elderberries", "name": { "str_sp": "elderberry %s" } },
{ "type": "COMPONENT_ID", "condition": "watermelon", "name": { "str_sp": "watermelon %s" } }
],
"name": { "str": "deluxe milkshake" },
"description": "This milkshake has been enhanced with added sweeteners, and even has a cherry on top. Tastes great, but is fairly awful for your health.",
"calories": 265,
Expand Down
Loading
Loading