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

fix(content): Fix inappropriate vitamin extensions #5861

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
17 changes: 16 additions & 1 deletion data/json/items/comestibles/drink_other.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,24 @@
"type": "COMESTIBLE",
"id": "cooking_oil2",
"name": { "str_sp": "animal cooking oil" },
"copy-from": "cooking_oil",
"//": "Can't copy-from the vegetable oil because it extends vitamins instead of overwriting them",
"weight": "15 g",
"color": "yellow",
"container": "jug_plastic",
"comestible_type": "DRINK",
"symbol": "~",
"quench": -1,
"healthy": -2,
"calories": 127,
"description": "Thin yellow animal oil used for cooking.",
"price": "40 cent",
"price_postapoc": "5 USD",
"material": [ "flesh", "oil" ],
"volume": "250 ml",
"charges": 16,
"phase": "liquid",
"fun": -25,
"flags": [ "NUTRIENT_OVERRIDE" ],
"vitamins": [ [ "meat_allergen", 1 ] ]
},
{
Expand Down
57 changes: 34 additions & 23 deletions data/json/items/comestibles/sandwich.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
[
{
"type": "COMESTIBLE",
"id": "sandwich_generic",
"name": { "str": "GENERIC SANDWICH", "str_pl": "GENERIC SANDWICHES" },
"weight": "300 g",
"healthy": 1,
"calories": 300,
"color": "brown",
"spoils_in": "1 day 12 hours",
"container": "wrapper",
"comestible_type": "FOOD",
"symbol": "%",
"description": "If you can see this, you shouldn't be able to. This is to solve dumb copy-from issues.",
"price": "2 USD",
"price_postapoc": "2 USD",
"primary_material": "wheat",
"volume": "500 ml",
"material": [ "wheat" ],
"fun": 12,
"charges": 4
},
{
"type": "COMESTIBLE",
"id": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "deluxe sandwich", "str_pl": "deluxe sandwiches" },
"conditional_names": [
{
Expand All @@ -23,21 +45,11 @@
{ "type": "COMPONENT_ID", "condition": "soysauce", "name": "%s with soy sauce" },
{ "type": "COMPONENT_ID", "condition": "seasoning_salt", "name": "%s with seasoned salt" }
],
"weight": "300 g",
"healthy": 1,
"calories": 300,
"color": "brown",
"spoils_in": "1 day 12 hours",
"container": "wrapper",
"comestible_type": "FOOD",
"symbol": "%",
"description": "A sandwich of meat, vegetables, and cheese with condiments. Tasty and nutritious!",
"price": "12 USD",
"price_postapoc": "3 USD",
"primary_material": "wheat",
"volume": "500 ml",
"material": [ "flesh", "veggy", "wheat", "milk" ],
"fun": 12,
"vitamins": [
[ "vitA", 8 ],
[ "vitC", 26 ],
Expand All @@ -48,13 +60,12 @@
[ "veggy_allergen", 1 ],
[ "wheat_allergen", 1 ],
[ "milk_allergen", 1 ]
],
"charges": 4
]
},
{
"type": "COMESTIBLE",
"id": "sandwich_cheese_grilled",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "grilled cheese sandwich", "str_pl": "grilled cheese sandwiches" },
"calories": 160,
"description": "A delicious grilled cheese sandwich, because everything is better with melted cheese.",
Expand All @@ -68,7 +79,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_cheese",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "cheese sandwich", "str_pl": "cheese sandwiches" },
"calories": 160,
"description": "A simple cheese sandwich.",
Expand All @@ -81,7 +92,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_jam",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "jam sandwich", "str_pl": "jam sandwiches" },
"conditional_names": [
{ "type": "COMPONENT_ID", "condition": "apple", "name": "apple %s" },
Expand Down Expand Up @@ -122,7 +133,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_fairy",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str_sp": "fairy bread" },
"calories": 200,
"description": "An 'open-faced sandwich' consisting of sliced white bread, a healthy crust-to-crust slathering of butter, and sprinkles. Supposedly a staple of birthday parties in Australia.",
Expand All @@ -135,7 +146,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_honey",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "honey sandwich", "str_pl": "honey sandwiches" },
"calories": 200,
"description": "A delicious honey sandwich.",
Expand All @@ -148,7 +159,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_sauce",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "sauce sandwich", "str_pl": "sauce sandwiches" },
"conditional_names": [
{
Expand Down Expand Up @@ -208,7 +219,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_veggy",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "vegetable sandwich", "str_pl": "vegetable sandwiches" },
"calories": 180,
"description": "Bread and vegetables, that's it.",
Expand All @@ -222,7 +233,7 @@
{
"type": "COMESTIBLE",
"id": "sandwich_t",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "meat sandwich", "str_pl": "meat sandwiches" },
"conditional_names": [
{
Expand Down Expand Up @@ -295,7 +306,7 @@
{
"type": "COMESTIBLE",
"id": "fish_sandwich",
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"name": { "str": "fish sandwich", "str_pl": "fish sandwiches" },
"calories": 200,
"description": "A delicious fish sandwich.",
Expand All @@ -309,7 +320,7 @@
"type": "COMESTIBLE",
"id": "sandwich_okay",
"name": { "str": "okay sandwich", "str_pl": "okay sandwiches" },
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"looks_like": "sandwich_deluxe",
"description": "A simple sandwich, little more than meat and veggies on bread. Rather dry.",
"price": "2 USD",
Expand All @@ -322,7 +333,7 @@
"type": "COMESTIBLE",
"id": "sandwich_deluxe_nocheese",
"name": { "str": "dairy-free deluxe sandwich", "str_pl": "dairy-free deluxe sandwiches" },
"copy-from": "sandwich_deluxe",
"copy-from": "sandwich_generic",
"looks_like": "sandwich_deluxe",
"conditional_names": [
{
Expand Down
9 changes: 8 additions & 1 deletion data/json/items/comestibles/veggy_dishes.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,12 +908,19 @@
"type": "COMESTIBLE",
"id": "veggy_sausage",
"name": "smoked veggy sausage",
"copy-from": "sausage",
"weight": "148 g",
"comestible_type": "FOOD",
"symbol": "%",
"quench": -1,
"calories": 56,
"healthy": 1,
"material": [ "veggy" ],
"description": "A plant based sausage that has been cured and smoked for long term storage.",
"price": "16 USD",
"volume": "250 ml",
"price_postapoc": "3 USD",
"fun": 4,
"flags": [ "EATEN_HOT", "SMOKED" ],
"vitamins": [ [ "veggy_allergen", 1 ] ]
},
{
Expand Down
Loading