mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-10 09:31:52 +00:00
Moves a number of kitchen recipes to utilize table-crafting! - Instead of dumping the ingredients in the microwave, simply collect them on the table to assemble your dish via the table-crafting menu - The option to assemble the dish will only appear if all the ingredients are present on the SAME table section. Table-crafted foods: - Sandwich - Slime Jelly Sandwich - Cherry Jelly Sandwich - Slime Jelly Burger - Cherry Jelly Burger - Not-a-sandwich - Egg Wrap - Herb Salad - Aesir Salad - Valid Salad - Ingredients are unchanged Standardizes the chef's knife usage! - Now the chef can use the Cutlet knife (knife utensil), kitchen knife, butcher knife, or scalpel to cut meat into cutlets! - Now the Cutlet Knife (knife utensil) can be properly used to slice cakes, pizza, bread, flat dough, and so forth instead of scooping up a bit onto the knife. - If a food object cannot be sliced (no slice_path defined), it will scoop up a bit as before. Forks, spoons, and plastic knives will always scoop, regardless of slice_path. Fixes the Toasted Sandwich microwave recipe not working. - It was missing a result, meaning it was not being loaded as an acceptable recipe and causing the microwave to reject sandwiches. BACKEND CODER CRAP: - Tablecrafting recipes now can support botany produce and adjusting chems in the result item. - New fruit list var is used for botany produce - New AdjustChems proc is used to handle final chem adjustments, such as removing or adding chems from the finished product.
97 lines
3.4 KiB
Plaintext
97 lines
3.4 KiB
Plaintext
/* Example for reference when defining recipes
|
|
/datum/table_recipe/food
|
|
name = "" //in-game display name
|
|
reqs[] = list() //type paths of items/reagents consumed associated with how many are needed (equivalent to var/list/items and var/list/reagents combined)
|
|
result //type path of item resulting from this craft
|
|
tools[] = list() //type paths of items needed but not consumed
|
|
time = 30 //time in deciseconds
|
|
parts[] = list() //type paths of items that will be placed in the result
|
|
fruit[] = list() //grown products required by the recipe
|
|
*/
|
|
|
|
/datum/table_recipe/sandwich
|
|
name = "Sandwich"
|
|
reqs = list(
|
|
/obj/item/weapon/reagent_containers/food/snacks/meatsteak = 1,
|
|
/obj/item/weapon/reagent_containers/food/snacks/breadslice = 2,
|
|
/obj/item/weapon/reagent_containers/food/snacks/cheesewedge = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/sandwich
|
|
|
|
/datum/table_recipe/slimesandwich
|
|
name = "Slime Jelly Sandwich"
|
|
reqs = list(
|
|
/datum/reagent/slimejelly = 5,
|
|
/obj/item/weapon/reagent_containers/food/snacks/breadslice = 2,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/jellysandwich/slime
|
|
|
|
/datum/table_recipe/cherrysandwich
|
|
name = "Cherry Jelly Sandwich"
|
|
reqs = list(
|
|
/datum/reagent/cherryjelly = 5,
|
|
/obj/item/weapon/reagent_containers/food/snacks/breadslice = 2,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/jellysandwich/cherry
|
|
|
|
/datum/table_recipe/slimeburger
|
|
name = "Slime Jelly Burger"
|
|
reqs = list(
|
|
/datum/reagent/slimejelly = 5,
|
|
/obj/item/weapon/reagent_containers/food/snacks/bun = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/jellyburger/slime
|
|
|
|
/datum/table_recipe/jellyburger
|
|
name = "Cherry Jelly Burger"
|
|
reqs = list(
|
|
/datum/reagent/cherryjelly = 5,
|
|
/obj/item/weapon/reagent_containers/food/snacks/bun = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/jellyburger/cherry
|
|
|
|
/datum/table_recipe/herbsalad
|
|
name = "herb salad"
|
|
fruit = list("ambrosia" = 3, "apple" = 1)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/herbsalad
|
|
|
|
/datum/table_recipe/herbsalad/AdjustChems(var/obj/resultobj as obj)
|
|
if(istype(resultobj, /obj/item/weapon/reagent_containers))
|
|
var/obj/item/weapon/reagent_containers/RC = resultobj
|
|
RC.reagents.del_reagent("toxin")
|
|
|
|
/datum/table_recipe/aesirsalad
|
|
name = "Aesir salad"
|
|
fruit = list("ambrosiadeus" = 3, "goldapple" = 1)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/aesirsalad
|
|
|
|
/datum/table_recipe/validsalad
|
|
name = "valid salad"
|
|
fruit = list("ambrosia" = 3, "potato" = 1)
|
|
reqs = list(
|
|
/obj/item/weapon/reagent_containers/food/snacks/meatball = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/validsalad
|
|
|
|
/datum/table_recipe/validsalad/AdjustChems(var/obj/resultobj as obj)
|
|
if(istype(resultobj, /obj/item/weapon/reagent_containers))
|
|
var/obj/item/weapon/reagent_containers/RC = resultobj
|
|
RC.reagents.del_reagent("toxin")
|
|
|
|
/datum/table_recipe/notasandwich
|
|
name = "not-a-sandwich"
|
|
reqs = list(
|
|
/obj/item/weapon/reagent_containers/food/snacks/breadslice = 2,
|
|
/obj/item/clothing/mask/fakemoustache = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/notasandwich
|
|
|
|
/datum/table_recipe/wrap
|
|
name = "egg wrap"
|
|
fruit = list("cabbage" = 1)
|
|
reqs = list(
|
|
/datum/reagent/soysauce = 10,
|
|
/obj/item/weapon/reagent_containers/food/snacks/friedegg = 1,
|
|
)
|
|
result = /obj/item/weapon/reagent_containers/food/snacks/wrap
|