Files
Bubberstation/code/modules/food_and_drinks/recipes/tablecraft/recipes_drink.dm
Ghom 1f3894e793 Crafting refactor, implementing materials (#89465)
My original plan was to just implement materials into crafting so that
items would inherit the materials of their components, allowing for some
interesting stuff if the material flags of the item allow it. However to
my dismay crafting is a pile of old tech debt, starting from the old
`del_reqs` and `CheckParts` which still contain lines about old janky
bandaids that are no longer in use nor reachable, up to the
`customizable_reagent_holder` component which has some harddel issues
when your custom food is sliced, and items used in food recipes not
being deleted and instead stored inside the result with no purpose as
well as other inconsistencies like stack recipes that transfer materials
having counterparts in the UI that don't do that.

EDIT: Several things have come up while working on this, so I apologise
that it ended up changing over 100+ files. I managed to atomize some of
the changes, but it's a bit tedious.

EDIT: TLDR because I was told this section is too vague and there's too
much going on. This PR:
- Improves the dated crafting code (not the UI).
- replaced `atom/CheckParts` and `crafting_recipe/on_craft_completion`
with `atom/on_craft_completion`.
- Reqs used in food recipes are now deleted by default and not stored
inside the result (they did nothing).
- Renames the customizable_reagent_holder comp and improves it (No
harddels/ref issues).
- Adds a unit test that tries to craft all recipes to see what's wrong
(it skips some of the much more specific reqs for now).
- In the unit test is also the code to make sure materials of the
crafted item and a non-crafted item of the same type are roughly the
same, so far only applied to food.
- Some mild material/food refactoring around the fact that food item
code has been changed to support materials.

Improving the backbone of the crafting system. Also materials and food
code.

🆑
refactor: Refactored crafting backend. Report possible pesky bugs.
balance: the MEAT backpack (from the MEAT cargo pack) may be a smidge
different because of code standardization.
/🆑
2025-06-05 20:05:13 -04:00

149 lines
4.5 KiB
Plaintext

// This is the home of drink related tablecrafting recipes, I have opted to only let players bottle fancy boozes to reduce the number of entries.
///////////////// Booze & Bottles ///////////////////
/datum/crafting_recipe/lizardwine
name = "Lizard Wine"
time = 40
reqs = list(
/obj/item/organ/tail/lizard = 1,
/datum/reagent/consumable/ethanol = 100
)
blacklist = list(/obj/item/organ/tail/lizard/fake)
result = /obj/item/reagent_containers/cup/glass/bottle/lizardwine
category = CAT_DRINK
/datum/crafting_recipe/moonshinejug
name = "Moonshine Jug"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/ethanol/moonshine = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/moonshine
category = CAT_DRINK
/datum/crafting_recipe/hoochbottle
name = "Hooch Bottle"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/obj/item/storage/box/papersack = 1,
/datum/reagent/consumable/ethanol/hooch = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/hooch
category = CAT_DRINK
/datum/crafting_recipe/blazaambottle
name = "Blazaam Bottle"
time = 20
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/ethanol/blazaam = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/blazaam
category = CAT_DRINK
/datum/crafting_recipe/champagnebottle
name = "Champagne Bottle"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/ethanol/champagne = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/champagne
category = CAT_DRINK
/datum/crafting_recipe/trappistbottle
name = "Trappist Bottle"
time = 15
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle/small = 1,
/datum/reagent/consumable/ethanol/trappist = 50
)
result = /obj/item/reagent_containers/cup/glass/bottle/trappist
category = CAT_DRINK
/datum/crafting_recipe/goldschlagerbottle
name = "Goldschlager Bottle"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/ethanol/goldschlager = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/goldschlager
category = CAT_DRINK
/datum/crafting_recipe/patronbottle
name = "Patron Bottle"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/ethanol/patron = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/patron
category = CAT_DRINK
////////////////////// Non-alcoholic recipes ///////////////////
/datum/crafting_recipe/holybottle
name = "Holy Water Flask"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/water/holywater = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/holywater
category = CAT_DRINK
//flask of unholy water is a beaker for some reason, I will try making it a bottle and add it here once the antag freeze is over. t. kryson
/datum/crafting_recipe/nothingbottle
name = "Nothing Bottle"
time = 30
reqs = list(
/obj/item/reagent_containers/cup/glass/bottle = 1,
/datum/reagent/consumable/nothing = 100
)
result = /obj/item/reagent_containers/cup/glass/bottle/bottleofnothing
category = CAT_DRINK
/datum/crafting_recipe/smallcarton
name = "Small Carton"
result = /obj/item/reagent_containers/cup/glass/bottle/juice/smallcarton
time = 10
reqs = list(/obj/item/stack/sheet/cardboard = 1)
category = CAT_CONTAINERS
/datum/crafting_recipe/candycornliquor
name = "candy corn liquor"
result = /obj/item/reagent_containers/cup/glass/bottle/candycornliquor
time = 30
reqs = list(/datum/reagent/consumable/ethanol/whiskey = 100,
/obj/item/food/candy_corn = 1,
/obj/item/reagent_containers/cup/glass/bottle = 1)
category = CAT_DRINK
/datum/crafting_recipe/kong
name = "Kong"
result = /obj/item/reagent_containers/cup/glass/bottle/kong
time = 30
reqs = list(/datum/reagent/consumable/ethanol/whiskey = 100,
/obj/item/food/monkeycube = 1,
/obj/item/reagent_containers/cup/glass/bottle = 1)
category = CAT_DRINK
/datum/crafting_recipe/pruno
name = "pruno mix"
result = /obj/item/reagent_containers/cup/glass/bottle/pruno
time = 30
reqs = list(/obj/item/storage/bag/trash = 1,
/obj/item/food/breadslice/moldy = 1,
/obj/item/food/grown = 4,
/obj/item/food/candy_corn = 2,
/datum/reagent/water = 15,
)
//We can't spawn the abstract food/grown path
unit_test_spawn_extras = list(/obj/item/food/grown/banana = 4)
category = CAT_DRINK