Files
GhomandGitHub 7c703fc712 Food types are now passed down when cooking from recipes. (#89706)
## About The Pull Request
~~I have some beef with the cooking system.~~

Cooking recipes are coded in a way that disregard the possibility for
their components to have different foodtype flags than the ones you
would find normally find.
For example, if I wanted to make corned beef, but instead of a standard
steak, I used a killer tomato "steak", the result would still have the
meat food type, even if none of the components has it.

I've had to resort to a few hacky lines of code to manipulate the food
types from the edible component, but that can be easily fixed if #89687
is merged.

## Why It's Good For The Game
This also makes cooking recipes less strict about their food types and
can help us spot inconsistencies with recipes.

## Changelog

🆑
qol: Food types are now passed down when cooking from recipes. For
example, a plate of corned "beef" made from giant killer tomato slabs no
longer counts as meat but only vegetables now.
fix: Fixed a metric ton of inconsistencies with food types and recipes.
fix: Dank-pockets (the weed variant) can now be microwaved.
/🆑
2025-03-13 20:06:35 +01:00

110 lines
3.7 KiB
Plaintext

// Chili
/obj/item/seeds/chili
name = "chili seed pack"
desc = "These seeds grow into chili plants. HOT! HOT! HOT!"
icon_state = "seed-chili"
species = "chili"
plantname = "Chili Plants"
product = /obj/item/food/grown/chili
lifespan = 20
maturation = 5
production = 5
yield = 4
potency = 20
instability = 30
growing_icon = 'icons/obj/service/hydroponics/growing_vegetables.dmi'
icon_grow = "chili-grow" // Uses one growth icons set for all the subtypes
icon_dead = "chili-dead" // Same for the dead icon
genes = list(/datum/plant_gene/trait/repeated_harvest)
mutatelist = list(/obj/item/seeds/chili/ice, /obj/item/seeds/chili/ghost)
reagents_add = list(/datum/reagent/consumable/capsaicin = 0.25, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.04)
/obj/item/food/grown/chili
seed = /obj/item/seeds/chili
name = "chili"
desc = "It's spicy! Wait... IT'S BURNING ME!!"
icon_state = "chilipepper"
bite_consumption_mod = 2
foodtypes = VEGETABLES
wine_power = 20
// Ice Chili
/obj/item/seeds/chili/ice
name = "chilly pepper seed pack"
desc = "These seeds grow into chilly pepper plants."
icon_state = "seed-icepepper"
species = "chiliice"
plantname = "Chilly Pepper Plants"
product = /obj/item/food/grown/icepepper
lifespan = 25
maturation = 4
production = 4
rarity = PLANT_MODERATELY_RARE
genes = list(/datum/plant_gene/trait/chem_cooling)
mutatelist = null
reagents_add = list(/datum/reagent/consumable/frostoil = 0.25, /datum/reagent/consumable/nutriment/vitamin = 0.02, /datum/reagent/consumable/nutriment = 0.02)
graft_gene = /datum/plant_gene/trait/chem_cooling
/obj/item/food/grown/icepepper
seed = /obj/item/seeds/chili/ice
name = "chilly pepper"
desc = "It's a mutant strain of chili."
icon_state = "icepepper"
bite_consumption_mod = 5
foodtypes = VEGETABLES
wine_power = 30
// Ghost Chili
/obj/item/seeds/chili/ghost
name = "ghost chili seed pack"
desc = "These seeds grow into a chili said to be the hottest in the galaxy."
icon_state = "seed-chilighost"
species = "chilighost"
plantname = "Ghost Chili Plants"
product = /obj/item/food/grown/ghost_chili
endurance = 10
maturation = 10
production = 10
yield = 3
rarity = PLANT_MODERATELY_RARE
genes = list(/datum/plant_gene/trait/chem_heating, /datum/plant_gene/trait/backfire/chili_heat)
mutatelist = null
reagents_add = list(/datum/reagent/consumable/condensedcapsaicin = 0.3, /datum/reagent/consumable/capsaicin = 0.55, /datum/reagent/consumable/nutriment = 0.04)
graft_gene = /datum/plant_gene/trait/chem_heating
/obj/item/food/grown/ghost_chili
seed = /obj/item/seeds/chili/ghost
name = "ghost chili"
desc = "It seems to be vibrating gently."
icon_state = "ghostchilipepper"
bite_consumption_mod = 5
foodtypes = VEGETABLES
wine_power = 50
// Bell Pepper
/obj/item/seeds/chili/bell_pepper
name = "bell pepper seed pack"
desc = "These seeds grow into bell pepper plants. MILD! MILD! MILD!"
icon_state = "seed-bell-pepper"
species = "bellpepper"
plantname = "Bell Pepper Plants"
product = /obj/item/food/grown/bell_pepper
endurance = 10
maturation = 10
production = 10
yield = 3
rarity = PLANT_MODERATELY_RARE
genes = list(/datum/plant_gene/trait/repeated_harvest)
mutatelist = null
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.08, /datum/reagent/consumable/nutriment = 0.04)
/obj/item/food/grown/bell_pepper
seed = /obj/item/seeds/chili/bell_pepper
name = "bell pepper"
desc = "A big mild pepper that's good for many things."
icon_state = "bell_pepper"
foodtypes = VEGETABLES
/obj/item/food/grown/bell_pepper/make_bakeable()
AddComponent(/datum/component/bakeable, /obj/item/food/roasted_bell_pepper, rand(15 SECONDS, 25 SECONDS), TRUE, TRUE)