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

somewhat improved cooking system #6895

Open
wants to merge 155 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
9a27d93
Automatic changelog compile [ci skip]
actions-user Apr 30, 2021
09d6ebf
Automatic changelog compile [ci skip]
actions-user May 1, 2021
8599e74
Automatic changelog compile [ci skip]
actions-user May 2, 2021
efa93d9
Automatic changelog compile [ci skip]
actions-user May 3, 2021
f41b30a
Automatic changelog compile [ci skip]
actions-user May 4, 2021
9d4a867
Automatic changelog compile [ci skip]
actions-user May 5, 2021
e666109
Automatic changelog compile [ci skip]
actions-user May 6, 2021
4956afc
Automatic changelog compile [ci skip]
actions-user May 7, 2021
9a8c398
Automatic changelog compile [ci skip]
actions-user May 8, 2021
1fbc7b1
Automatic changelog compile [ci skip]
actions-user May 9, 2021
cd61f8b
Automatic changelog compile [ci skip]
actions-user May 10, 2021
3c44e11
Automatic changelog compile [ci skip]
actions-user May 13, 2021
ad52dba
Automatic changelog compile [ci skip]
actions-user May 14, 2021
a72c3f7
Automatic changelog compile [ci skip]
actions-user May 15, 2021
ddd289b
Automatic changelog compile [ci skip]
actions-user May 17, 2021
35263bb
Automatic changelog compile [ci skip]
actions-user May 18, 2021
b0db1ca
Automatic changelog compile [ci skip]
actions-user May 20, 2021
84afb5d
Automatic changelog compile [ci skip]
actions-user May 25, 2021
3c0b8cd
Automatic changelog compile [ci skip]
actions-user May 27, 2021
e42ffdb
Automatic changelog compile [ci skip]
actions-user May 30, 2021
938bf86
Automatic changelog compile [ci skip]
actions-user Jun 3, 2021
0429a23
Automatic changelog compile [ci skip]
actions-user Jun 4, 2021
6a0fc16
Automatic changelog compile [ci skip]
actions-user Jun 8, 2021
bc7eaf6
Automatic changelog compile [ci skip]
actions-user Jun 13, 2021
4c94a5d
Automatic changelog compile [ci skip]
actions-user Jun 15, 2021
ac5216d
Automatic changelog compile [ci skip]
actions-user Jun 16, 2021
01b787d
Automatic changelog compile [ci skip]
actions-user Jun 17, 2021
7ea4091
Automatic changelog compile [ci skip]
actions-user Jun 19, 2021
109f893
Automatic changelog compile [ci skip]
actions-user Jun 23, 2021
b739a7a
Automatic changelog compile [ci skip]
actions-user Jun 27, 2021
7302819
Automatic changelog compile [ci skip]
actions-user Jun 28, 2021
0f72a13
Merge remote-tracking branch 'upstream/master'
lolman360 Oct 9, 2021
5bd60e5
Merge remote-tracking branch 'upstream/master'
lolman360 Mar 22, 2022
ddb01ff
ree
lolman360 Mar 22, 2022
de027ed
Automatic changelog compile [ci skip]
actions-user Mar 23, 2022
0a4b895
Merge branch 'master' into master
lolman360 Mar 24, 2022
128b181
Automatic changelog compile [ci skip]
actions-user Mar 25, 2022
8b70440
Automatic changelog compile [ci skip]
actions-user Mar 28, 2022
0577da5
Automatic changelog compile [ci skip]
actions-user Mar 30, 2022
53c6d01
Automatic changelog compile [ci skip]
actions-user Mar 31, 2022
4891e7f
Automatic changelog compile [ci skip]
actions-user Apr 2, 2022
bb65500
Automatic changelog compile [ci skip]
actions-user Apr 3, 2022
1a4303d
Automatic changelog compile [ci skip]
actions-user Apr 10, 2022
be0c5a5
Automatic changelog compile [ci skip]
actions-user Apr 14, 2022
688369f
Automatic changelog compile [ci skip]
actions-user Apr 17, 2022
397d0a7
Automatic changelog compile [ci skip]
actions-user Apr 18, 2022
c9caf15
Automatic changelog compile [ci skip]
actions-user Apr 20, 2022
573c242
Automatic changelog compile [ci skip]
actions-user Apr 21, 2022
6f1f9b4
Automatic changelog compile [ci skip]
actions-user Apr 22, 2022
9fc66ad
Automatic changelog compile [ci skip]
actions-user Apr 23, 2022
0f0384e
Automatic changelog compile [ci skip]
actions-user Apr 24, 2022
3a7728a
Automatic changelog compile [ci skip]
actions-user Apr 27, 2022
624227e
Automatic changelog compile [ci skip]
actions-user Apr 29, 2022
45e29ce
Automatic changelog compile [ci skip]
actions-user Apr 30, 2022
787f350
Automatic changelog compile [ci skip]
actions-user May 1, 2022
2fbabcf
Automatic changelog compile [ci skip]
actions-user May 2, 2022
f0221a2
Automatic changelog compile [ci skip]
actions-user May 3, 2022
17dc465
Automatic changelog compile [ci skip]
actions-user May 6, 2022
125acf8
Automatic changelog compile [ci skip]
actions-user May 9, 2022
2b0932f
Automatic changelog compile [ci skip]
actions-user May 11, 2022
b45df96
Automatic changelog compile [ci skip]
actions-user May 13, 2022
7db77de
Automatic changelog compile [ci skip]
actions-user May 15, 2022
f9bc0a2
Automatic changelog compile [ci skip]
actions-user May 16, 2022
95d5a1a
Automatic changelog compile [ci skip]
actions-user May 17, 2022
14c96d7
Automatic changelog compile [ci skip]
actions-user May 19, 2022
c60d571
Automatic changelog compile [ci skip]
actions-user May 20, 2022
f76a41d
Automatic changelog compile [ci skip]
actions-user May 21, 2022
9384823
Automatic changelog compile [ci skip]
actions-user May 23, 2022
47a39e5
Automatic changelog compile [ci skip]
actions-user May 25, 2022
eed9147
Merge branch 'master' of https://github.com/lolman360/Citadel-Station…
lolman360 Apr 30, 2023
bc355f9
ingredient alpha
lolman360 Dec 22, 2023
87dc4d2
new stuff
lolman360 Dec 24, 2023
95e35c1
processing changes
lolman360 Dec 25, 2023
421889e
framework part 1
lolman360 Dec 29, 2023
b52ad89
Merge branch 'master' into cooking_141
lolman360 Dec 29, 2023
3bfb01e
merging step 1
lolman360 Dec 30, 2023
24870e2
Merge branch 'cooking_141' of https://github.com/lolman360/Citadel-St…
lolman360 Dec 30, 2023
f2c18b6
merging seperation complete
lolman360 Dec 30, 2023
76374af
recipes part1
lolman360 Jan 1, 2024
2dc47da
recipes
lolman360 Jan 1, 2024
6c771b0
recipes done, starting seed conversion
lolman360 Jan 2, 2024
1f783a1
replacement
lolman360 Jan 2, 2024
0aa5977
debug message removal
lolman360 Jan 3, 2024
97a525b
recipes mk2
lolman360 Jan 3, 2024
9a9fe83
bread pt1
lolman360 Jan 6, 2024
8cd6a90
super trooper
lolman360 Jan 7, 2024
22b1fa3
grill
lolman360 Jan 7, 2024
558310c
start work on overlays
lolman360 Jan 12, 2024
564fe1c
Merge remote-tracking branch 'upstream/master' into cooking_141
lolman360 Jan 14, 2024
245f49d
invisible sun
lolman360 Jan 14, 2024
f7323e5
stove sprites done
lolman360 Jan 14, 2024
365384e
potgeometry
lolman360 Jan 14, 2024
8ed3503
colors
lolman360 Jan 15, 2024
cba9d9a
Merge branch 'master' into cooking_141
lolman360 Jan 17, 2024
7393685
reminders so i dont forget
lolman360 Jan 17, 2024
0205eec
chaaaanger
lolman360 Jan 17, 2024
e49ab2d
the Cull
lolman360 Jan 20, 2024
b0abea1
uhhh
lolman360 Jan 20, 2024
1edd7c6
recipe handling
lolman360 Jan 22, 2024
5dee203
recipes fixing final
lolman360 Jan 22, 2024
216319d
Merge remote-tracking branch 'upstream/master' into cooking_141
lolman360 Jan 31, 2024
3cd81a9
fryer recipes fixes
lolman360 Jan 31, 2024
1e4fd06
Merge branch 'master' into cooking_141
lolman360 Feb 2, 2024
be20371
fryer, etc
lolman360 Feb 3, 2024
f957356
plant summary
lolman360 Feb 4, 2024
187b959
oven finalization
lolman360 Feb 4, 2024
094c5b2
meats part 1
lolman360 Feb 7, 2024
18f25e3
meat pt2
lolman360 Feb 11, 2024
0f5df59
todo: grill
lolman360 Feb 17, 2024
f59af37
Merge branch 'master' into cooking_141
lolman360 Mar 4, 2024
ba345d1
Merge branch 'master' into cooking_141
lolman360 Mar 9, 2024
81e2c19
good apple
lolman360 Mar 9, 2024
235780d
Merge branch 'cooking_141' of https://github.com/lolman360/Citadel-St…
lolman360 Mar 9, 2024
ff352fc
slow and low
lolman360 Mar 10, 2024
9ae98ca
no more getflaticon
lolman360 Mar 10, 2024
4a208ae
airlines hold a short asset position
lolman360 Mar 11, 2024
990910f
meaticons1
lolman360 Mar 11, 2024
0b8a93e
rift kitchen update pt1
lolman360 Mar 11, 2024
78bbf51
microwave recipes changes
lolman360 Mar 12, 2024
e94bd3a
microwave changes pt2
lolman360 Mar 12, 2024
b5ca8a7
fugue coding
lolman360 Mar 13, 2024
b947530
she's homeless
lolman360 Mar 13, 2024
15bd119
corn flowering
lolman360 Mar 13, 2024
53a7a3a
lol
lolman360 Mar 14, 2024
0b7e77c
woo
lolman360 Mar 14, 2024
44f2381
single ws change
lolman360 Mar 14, 2024
180e2d2
latchkey neighbor
lolman360 Mar 14, 2024
65d7f50
egg changes
lolman360 Mar 15, 2024
7afd1ae
snack in food?
lolman360 Mar 15, 2024
d9f8dee
dedup compule
lolman360 Mar 15, 2024
bff3b62
cooking recipe
lolman360 Mar 19, 2024
ad5c6b4
CHEESE WOO
lolman360 Mar 20, 2024
487a5f1
Merge branch 'cooking_141' of https://github.com/lolman360/Citadel-St…
lolman360 Mar 21, 2024
60f679d
temp for merge
lolman360 Mar 21, 2024
432091b
Merge remote-tracking branch 'upstream/master' into cooking_141
lolman360 Mar 21, 2024
b0e3d59
woo yeah
lolman360 Mar 21, 2024
a9cd34e
Merge branch 'master' into cooking_141
lolman360 Mar 21, 2024
ff93286
rar
lolman360 Mar 21, 2024
0e2b8a7
merge fix 2
lolman360 Mar 21, 2024
9f3fc12
Merge branch 'master' into cooking_141
lolman360 Mar 21, 2024
257dd12
WHOOPS
lolman360 Mar 21, 2024
e38a179
whoops.
lolman360 Mar 21, 2024
1588b14
local man does 5 morbillion fixes in 1 millisecond
lolman360 Mar 21, 2024
30c8b0e
egg fixes, reagent viz fixes, transformable food fixes
lolman360 Nov 17, 2024
dbe8a19
misc lang changes
lolman360 Nov 23, 2024
69d1e46
servings to weight
lolman360 Nov 24, 2024
e188c06
recipe ports to new system and fixes
lolman360 Nov 27, 2024
e18f6c8
recipe changes, moving most microwave to stove oven fryer
lolman360 Dec 1, 2024
e067572
food weight system fully implemented, recipes fixed and adapted to ne…
lolman360 Dec 4, 2024
ca73010
recipe viz
lolman360 Dec 8, 2024
d296a3f
minor visualize fixes, major transformable fix
lolman360 Dec 11, 2024
8636015
recipe fixes
lolman360 Dec 14, 2024
9d74e77
recipe guidebook
lolman360 Dec 15, 2024
d0a3ad9
tick recipes
lolman360 Dec 15, 2024
10547c7
tgui now opens, but crashes
lolman360 Dec 15, 2024
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
26 changes: 17 additions & 9 deletions citadel.dme
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// BEGIN_INCLUDE
#include "_mapload\_basemap.dm"
#include "_mapload\minitest.dm"
#include "code\___compile_options.dm"
#include "code\__byond_version_compat.dm"
#include "code\__global_init.dm"
Expand Down Expand Up @@ -41,6 +42,7 @@
#include "code\__DEFINES\chemistry.dm"
#include "code\__DEFINES\configuration.dm"
#include "code\__DEFINES\construction.dm"
#include "code\__DEFINES\cooking.dm"
#include "code\__DEFINES\damage_organs.dm"
#include "code\__DEFINES\directional.dm"
#include "code\__DEFINES\dna.dm"
Expand Down Expand Up @@ -2666,6 +2668,7 @@
#include "code\modules\food\recipes_fryer.dm"
#include "code\modules\food\recipes_microwave.dm"
#include "code\modules\food\recipes_oven.dm"
#include "code\modules\food\recipes_stove.dm"
#include "code\modules\food\drinkingglass\extras.dm"
#include "code\modules\food\drinkingglass\glass1.dm"
#include "code\modules\food\drinkingglass\glass2.dm"
Expand All @@ -2691,10 +2694,21 @@
#include "code\modules\food\food\drinks.dm"
#include "code\modules\food\food\ice_cream.dm"
#include "code\modules\food\food\lunch.dm"
#include "code\modules\food\food\sandwich.dm"
#include "code\modules\food\food\snacks.dm"
#include "code\modules\food\food\z_custom_food_vr.dm"
#include "code\modules\food\food\snacks\meat.dm"
#include "code\modules\food\food_2\_cooker.dm"
#include "code\modules\food\food_2\_foodholder.dm"
#include "code\modules\food\food_2\_ingredient.dm"
#include "code\modules\food\food_2\culinary_construct.dm"
#include "code\modules\food\food_2\foodholders.dm"
#include "code\modules\food\food_2\serving.dm"
#include "code\modules\food\food_2\cookers\fryer.dm"
#include "code\modules\food\food_2\cookers\grill.dm"
#include "code\modules\food\food_2\cookers\oven.dm"
#include "code\modules\food\food_2\ingredients\dough_bread.dm"
#include "code\modules\food\food_2\ingredients\meat.dm"
#include "code\modules\food\food_2\ingredients\misc.dm"
#include "code\modules\food\food_2\ingredients\veggies.dm"
#include "code\modules\food\glass\bottle.dm"
#include "code\modules\food\glass\bottle_vr.dm"
#include "code\modules\food\glass\bottle\robot.dm"
Expand All @@ -2703,15 +2717,8 @@
#include "code\modules\food\machinery\smartfridge.dm"
#include "code\modules\food\machinery\smartfridge_vr.dm"
#include "code\modules\food\machinery\appliance\_appliance.dm"
#include "code\modules\food\machinery\appliance\_cooker.dm"
#include "code\modules\food\machinery\appliance\_cooker_output.dm"
#include "code\modules\food\machinery\appliance\_mixer.dm"
#include "code\modules\food\machinery\appliance\candy.dm"
#include "code\modules\food\machinery\appliance\cereal.dm"
#include "code\modules\food\machinery\appliance\container.dm"
#include "code\modules\food\machinery\appliance\fryer.dm"
#include "code\modules\food\machinery\appliance\grill.dm"
#include "code\modules\food\machinery\appliance\oven.dm"
#include "code\modules\food\structures\icecream_cart.dm"
#include "code\modules\gamemaster\controller.dm"
#include "code\modules\gamemaster\defines.dm"
Expand Down Expand Up @@ -2783,6 +2790,7 @@
#include "code\modules\guidebook\guidebook.dm"
#include "code\modules\guidebook\guidebook_section.dm"
#include "code\modules\guidebook\sections\reagents.dm"
#include "code\modules\guidebook\sections\recipes.dm"
#include "code\modules\hardsuits\_rig.dm"
#include "code\modules\hardsuits\activation.dm"
#include "code\modules\hardsuits\rig_attackby.dm"
Expand Down
25 changes: 25 additions & 0 deletions code/__DEFINES/cooking.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#define RAW 1
#define COOKED 2
#define OVERCOOKED 3
#define BURNT 4

#define COOKINFO_TIME 1
#define COOKINFO_NUTRIMULT 2
#define COOKINFO_TASTE 3

#define HEAT_LOW 1
#define HEAT_MID 2
#define HEAT_HIGH 3

#define METHOD_OVEN "oven"
#define METHOD_GRILL "grill"
#define METHOD_STOVE "stove"
#define METHOD_DEEPFRY "deep fryer"
#define METHOD_MICROWAVE "microwave"
#define METHOD_BLOWTORCH "blowtorch" //i know a welder isn't actually one but you actually use blowtorches in cooking
#define METHOD_ENERGETIC_ANOMALY "energetic anomaly" //supermatter, tesla, etc

#define WEIGHT_TASTE_DIVISOR 100
#define WEIGHT_TASTE_DIVISION(X) X/WEIGHT_TASTE_DIVISOR

#define INGREDIENT_COOKTIME_MAX_SEPERATION 5 SECONDS
4 changes: 4 additions & 0 deletions code/__DEFINES/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,7 @@ if (!(DATUM.datum_flags & DF_ISPROCESSING)) {\
#define ORION_GAMER_PAMPHLET -1
//game begins to have a chance to warn sec and med
#define ORION_GAMER_REPORT_THRESHOLD 2

#define PROCESS_ON_SSMACHINES 0
#define PROCESS_ON_SSFASTPROCESS 1
#define PROCESS_ON_SSPROCESSING 2
4 changes: 4 additions & 0 deletions code/__DEFINES/tools/functionality.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ GLOBAL_REAL_VAR(_dyntool_image_states) = list(
#define TOOL_USAGE_BUILDING_FRAMEWORK (1<<4)
/// making tables, detailed furnishings, etc
#define TOOL_USAGE_BUILDING_FURNISHINGS (1<<5)
//doing weird stuff that is possibly dangerous and definitely not regulation
#define TOOL_USAGE_INADVISABLE (1<<6)
//doing cooking
#define TOOL_USAGE_COOKING (1<<7)

//? tool_locked var

Expand Down
9 changes: 9 additions & 0 deletions code/__HELPERS/lists/types_typecaches.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
return TRUE
return FALSE

/**
* Checks for specific types in a list.
*/
/proc/is_exact_type_in_list(atom/A, list/L)
for(var/type in L)
if(A.type == type)
return TRUE
return FALSE

/**
* Checks for specific types in a list.
*/
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/sorts/comparators.dm
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ GLOBAL_VAR_INIT(cmp_field, "name")
* Compares complexity of recipes for use in cooking, etc.
* This is for telling which recipe to make, not for showing things to the player.
*/
/proc/cmp_recipe_complexity_dsc(datum/recipe/A, datum/recipe/B)
/proc/cmp_recipe_complexity_dsc(datum/cooking_recipe/A, datum/cooking_recipe/B)
var/a_score = LAZYLEN(A.items) + LAZYLEN(A.reagents) + LAZYLEN(A.fruit)
var/b_score = LAZYLEN(B.items) + LAZYLEN(B.reagents) + LAZYLEN(B.fruit)
return b_score - a_score
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystem/early_init.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ SUBSYSTEM_DEF(early_init)

/datum/controller/subsystem/early_init/Initialize()
init_inventory_slot_meta()
init_cooking_recipes_glob()
init_crayon_decal_meta()
return ..()
2 changes: 1 addition & 1 deletion code/datums/recipe/crafting_recipes/recipes_clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
/datum/crafting_recipe/garlic_necklace
name = "Garlic Necklace"
result = /obj/item/clothing/neck/garlic_necklace
reqs = list(/obj/item/reagent_containers/food/snacks/grown/garlic = 15,
reqs = list(/obj/item/reagent_containers/food/snacks/ingredient/grown/garlic = 15,
/obj/item/stack/cable_coil = 10)
time = 100 //Takes awhile to put all the garlics on the coil and knot it.
category = CAT_CLOTHING
Expand Down
4 changes: 2 additions & 2 deletions code/datums/recipe/crafting_recipes/recipes_misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
result =/obj/structure/closet/crate/coffin/meatcoffin
tools = list(/obj/item/kitchen/knife,
/obj/item/kitchen/rollingpin)
reqs = list(/obj/item/reagent_containers/food/snacks/meat/slab = 5,
reqs = list(/obj/item/reagent_containers/food/snacks/ingredient/meat/slab = 5,
/obj/item/restraints/handcuffs/cable = 1)
time = 150
subcategory = CAT_FURNITURE
Expand Down Expand Up @@ -634,7 +634,7 @@
name = "Coconut Bong"
result = /obj/item/bong/coconut
reqs = list(/obj/item/stack/material/mineral/bamboo = 2,
/obj/item/reagent_containers/food/snacks/grown/coconut = 1)
/obj/item/reagent_containers/food/snacks/ingredient/grown/coconut = 1)
time = 70
subcategory = CAT_MISCELLANEOUS
category = CAT_MISCELLANEOUS
Expand Down
11 changes: 0 additions & 11 deletions code/datums/recipe/crafting_recipes/recipes_primal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -478,17 +478,6 @@
category = CAT_PRIMAL
always_available = FALSE

/datum/crafting_recipe/cooking_spit
name = "Cooking Spit"
result = /obj/machinery/appliance/cooker/grill/spit
time = 200
reqs = list(/obj/item/stack/material/bone = 10,
/obj/item/stack/sinew = 10,
/obj/item/pen/charcoal = 5
)
category = CAT_PRIMAL
always_available = FALSE

/datum/crafting_recipe/stone_dropper
name = "Stone Dropper"
result = /obj/item/reagent_containers/dropper/ashlander
Expand Down
Loading
Loading