/
soup_mixtures.dm
2242 lines (1982 loc) · 78.9 KB
/
soup_mixtures.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// Abstract parent for soup reagents.
/// These are the majority result from soup recipes,
/// but bear in mind it will(should) have other reagents along side it.
/datum/reagent/consumable/nutriment/soup
name = "Soup"
chemical_flags = NONE
nutriment_factor = 12 // Slightly less to that of nutriment as soups will come with nutriments in tow
burning_temperature = 520
default_container = /obj/item/reagent_containers/cup/bowl
glass_price = FOOD_PRICE_CHEAP
fallback_icon = 'icons/obj/food/soupsalad.dmi'
fallback_icon_state = "bowl"
restaurant_order = /datum/custom_order/reagent/soup
/**
* ## Soup base chemical reaction.
*
* Somewhat important note! Keep in mind one serving of soup is roughly 20-25 units. Adjust your results according.
*
* Try to aim to have each reaction worth 3 servings of soup (60u - 90u).
* By default soup reactions require 50 units of water,
* and they will also inherent the reagents of the ingredients used,
* so you might end up with more nutrient than you expect.
*/
/datum/chemical_reaction/food/soup
required_temp = 450
optimal_temp = 480
overheat_temp = SOUP_BURN_TEMP
optimal_ph_min = 1
optimal_ph_max = 14
thermic_constant = 10
required_reagents = null
mob_react = FALSE
required_other = TRUE
required_container_accepts_subtypes = TRUE
required_container = /obj/item/reagent_containers/cup/soup_pot
mix_message = "You smell something good coming from the steaming pot of soup."
reaction_tags = REACTION_TAG_FOOD | REACTION_TAG_EASY
// General soup guideline:
// - Soups should produce 60-90 units (3-4 servings)
// - One serving size is 20-25 units (8-9 sips, with 3u sips)
// - The first index of the result list should be the soup type
/// An assoc list of what ingredients are necessary to how much is needed
var/list/required_ingredients
/// Tracks the total number of ingredient items needed, for calculating multipliers. Only done once in first on_reaction
VAR_FINAL/total_ingredient_max
/// Multiplier applied to all reagents transferred from reagents to pot when the soup is cooked
var/ingredient_reagent_multiplier = 0.8
/// What percent of nutriment is converted to "soup" (what percent does not stay final product)?
/// Raise this if your ingredients have a lot of nutriment and is overpowering your other reagents
/// Lower this if your ingredients have a small amount of nutriment and isn't filling enough per serving
/// (EX: A tomato with 10 nutriment will lose 2.5 nutriment before being added to the pot)
var/percentage_of_nutriment_converted = 0.25
/datum/chemical_reaction/food/soup/pre_reaction_other_checks(datum/reagents/holder)
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
if(!istype(pot))
return FALSE
if(!length(required_ingredients))
return TRUE
//copy of all ingredients to check out
var/list/reqs_copy = required_ingredients.Copy()
//number of ingredients who's requested amounts has been satisfied
var/completed_ingredients = 0
for(var/obj/item/ingredient as anything in pot.added_ingredients)
var/ingredient_type = ingredient.type
do
{
var/ingredient_count = reqs_copy[ingredient_type]
//means we still have left over ingredients
if(ingredient_count)
//decode ingredient type i.e. stack or not and fulfill request
if(ispath(ingredient_type, /obj/item/stack))
var/obj/item/stack/stack_ingredient = ingredient
ingredient_count -= stack_ingredient.amount
else
ingredient_count -= 1
//assign final values
if(ingredient_count <= 0)
completed_ingredients += 1
ingredient_count = 0
reqs_copy[ingredient_type] = ingredient_count
//work complete
break
//means we have to look for subtypes
else if(isnull(ingredient_count))
ingredient_type = type2parent(ingredient_type)
//means we have no more remaining ingredients so bail, can happen if multiple ingredients of the same type/subtype are in the pot
else
break
}
while(ingredient_type != /obj/item)
return completed_ingredients == reqs_copy.len
/datum/chemical_reaction/food/soup/on_reaction(datum/reagents/holder, datum/equilibrium/reaction, created_volume)
if(!length(required_ingredients))
return
// If a food item is supposed to be made, remove relevant ingredients from the pot, then make the item
if(!isnull(resulting_food_path))
var/list/tracked_ingredients
LAZYINITLIST(tracked_ingredients)
var/ingredient_max_multiplier = INFINITY
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
// Tracked ingredients are indexed by type and point to a list containing the actual items
for(var/obj/item/ingredient as anything in pot.added_ingredients)
if(is_type_in_list(ingredient, required_ingredients))
LAZYADD(tracked_ingredients[ingredient.type],ingredient)
// Find the max number of ingredients that may be used for making the food item
for(var/list/ingredient_type as anything in tracked_ingredients)
ingredient_max_multiplier = min(ingredient_max_multiplier,LAZYLEN(tracked_ingredients[ingredient_type]))
// Create the food items, removing the relavent ingredients at the same time
for(var/i in 1 to (min(created_volume,ingredient_max_multiplier)))
for(var/list/ingredient_type as anything in tracked_ingredients)
var/ingredient = tracked_ingredients[ingredient_type][i]
LAZYREMOVE(pot.added_ingredients,ingredient)
qdel(ingredient)
var/obj/item/created = new resulting_food_path(get_turf(pot))
created.pixel_y += 8
// Re-add required reagents that were not used in this step
if(created_volume > ingredient_max_multiplier)
for(var/reagent_path as anything in required_reagents)
holder.add_reagent(reagent_path,(required_reagents[reagent_path])*(created_volume-ingredient_max_multiplier))
// This only happens if we're being instant reacted so let's just skip to what we really want
if(isnull(reaction))
testing("Soup reaction of type [type] instant reacted, cleaning up.")
clean_up(holder)
return
if(isnull(total_ingredient_max))
total_ingredient_max = 0
// We only need to calculate this once, effectively static per-type
for(var/ingredient_type in required_ingredients)
total_ingredient_max += required_ingredients[ingredient_type]
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
var/list/tracked_ingredients = list()
for(var/obj/item/ingredient as anything in pot.added_ingredients)
// Track all ingredients in data. Assoc list of weakref to ingredient to initial total volume.
tracked_ingredients[WEAKREF(ingredient)] = ingredient.reagents?.total_volume || 1
// Equalize temps. Otherwise when we add ingredient temps in, it'll lower reaction temp
ingredient.reagents?.chem_temp = holder.chem_temp
// Store a list of weakrefs to ingredients as
reaction.data["ingredients"] = tracked_ingredients
testing("Soup reaction started of type [type]! [length(pot.added_ingredients)] inside.")
/datum/chemical_reaction/food/soup/reaction_step(datum/reagents/holder, datum/equilibrium/reaction, delta_t, delta_ph, step_reaction_vol)
if(!length(required_ingredients))
return
testing("Soup reaction step progressing with an increment volume of [step_reaction_vol] and delta_t of [delta_t].")
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
var/list/cached_ingredients = reaction.data["ingredients"]
var/num_current_ingredients = length(pot.added_ingredients)
var/num_cached_ingredients = length(cached_ingredients)
// Clamp multiplier to ingredient number
reaction.multiplier = min(reaction.multiplier, num_current_ingredients / total_ingredient_max)
// An ingredient was removed during the mixing process.
// Stop reacting immediately, we can't verify the reaction is correct still.
// If it is still correct it will restart shortly.
if(num_current_ingredients < num_cached_ingredients)
testing("Soup reaction ended due to losing ingredients.")
return END_REACTION
// An ingredient was added mid mix.
// Throw it in the ingredients list
else if(num_current_ingredients > num_cached_ingredients)
for(var/obj/item/new_ingredient as anything in pot.added_ingredients)
var/datum/weakref/new_ref = WEAKREF(new_ingredient)
if(cached_ingredients[new_ref])
continue
new_ingredient.reagents?.chem_temp = holder.chem_temp
cached_ingredients[new_ref] = new_ingredient.reagents?.total_volume || 1
var/turf/below_pot = get_turf(pot)
for(var/datum/weakref/ingredient_ref as anything in cached_ingredients)
var/obj/item/ingredient = ingredient_ref.resolve()
// An ingredient has gone missing, stop the reaction
if(QDELETED(ingredient) || ingredient.loc != holder.my_atom)
testing("Soup reaction ended due to having an invalid ingredient present.")
return END_REACTION
// Transfer 20% of the initial reagent volume of the ingredient to the soup.
if(!transfer_ingredient_reagents(ingredient, holder, max(cached_ingredients[ingredient_ref] * 0.2, 2)))
continue //all reagents were transfered
// Uh oh we reached the top of the pot, the soup's gonna boil over.
if(holder.total_volume >= holder.maximum_volume * 0.95)
below_pot.visible_message(span_warning("[pot] starts to boil over!"))
// Create a spread of dirty foam
var/datum/effect_system/fluid_spread/foam/dirty/soup_mess = new()
soup_mess.reagent_scale = 0.1 // (Just a little)
soup_mess.set_up(range = 1, holder = pot, location = below_pot, carry = holder, stop_reactions = TRUE)
soup_mess.start()
// Loses a bit from the foam
for(var/datum/reagent/reagent as anything in holder.reagent_list)
reagent.volume *= 0.5
holder.update_total()
/datum/chemical_reaction/food/soup/reaction_finish(datum/reagents/holder, datum/equilibrium/reaction, react_vol)
. = ..()
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
if(!istype(pot))
CRASH("[pot ? "Non-pot atom" : "Null pot"]) made it to the end of the [type] reaction chain.")
testing("Soup reaction finished with a total react volume of [react_vol] and [length(pot.added_ingredients)] ingredients. Cleaning up.")
clean_up(holder, reaction, react_vol)
/**
* Cleans up the ingredients and adds whatever leftover reagents to the mixture
*
* * holder: The soup pot
* * reaction: The reaction being cleaned up, note this CAN be null if being instant reacted
* * react_vol: How much soup was produced
*/
/datum/chemical_reaction/food/soup/proc/clean_up(datum/reagents/holder, datum/equilibrium/reaction, react_vol)
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
reaction?.data["ingredients"] = null
// If soup is made, remove ingredients as their reagents were added to the soup
if(react_vol)
for(var/obj/item/ingredient as anything in pot.added_ingredients)
// Let's not mess with indestructible items.
// Chef doesn't need more ways to delete things with cooking.
if(ingredient.resistance_flags & INDESTRUCTIBLE)
continue
// Everything else will just get fried
if(isnull(ingredient.reagents) && !is_type_in_list(ingredient, required_ingredients))
ingredient.AddElement(/datum/element/fried_item, 30)
continue
// Things that had reagents or ingredients in the soup will get deleted
LAZYREMOVE(pot.added_ingredients, ingredient)
// Send everything left behind
transfer_ingredient_reagents(ingredient, holder)
// Delete, it's done
qdel(ingredient)
// Anything left in the ingredient list will get dumped out
pot.dump_ingredients(get_turf(pot), y_offset = 8)
// Blackbox log the chemical reaction used, to account for soup reaction that don't produce typical results
BLACKBOX_LOG_FOOD_MADE(type)
/**
* Transfers reagents from the passed reagent to the soup pot, as a "result"
* Also handles deleting a portion of nutriment reagents present, pseudo-converting
* it into soup reagent. Returns TRUE if any reagents were transfered FALSE if there is
* nothing to transfer
*
* Arguments
* * obj/item/ingredient - The ingredient to transfer reagents from
* * datum/reagentsholder - The reagent holder of the soup pot the reaction is taking place in
* * amount - The amount of reagents to transfer, if null will transfer all reagents
*/
/datum/chemical_reaction/food/soup/proc/transfer_ingredient_reagents(obj/item/ingredient, datum/reagents/holder, amount)
if(ingredient_reagent_multiplier <= 0)
return FALSE
var/datum/reagents/ingredient_pool = ingredient.reagents
// Some ingredients are purely flavor (no pun intended) and will have reagents
if(isnull(ingredient_pool) || ingredient_pool.total_volume <= 0)
return FALSE
if(isnull(amount))
amount = ingredient_pool.total_volume
testing("Soup reaction has made it to the finishing step with ingredients that still contain reagents. [amount] reagents left in [ingredient].")
// Some of the nutriment goes into "creating the soup reagent" itself, gets deleted.
// Mainly done so that nutriment doesn't overpower the main course
var/remove_amount = amount * percentage_of_nutriment_converted
ingredient_pool.remove_reagent(/datum/reagent/consumable/nutriment, remove_amount)
ingredient_pool.remove_reagent(/datum/reagent/consumable/nutriment/vitamin, remove_amount)
// The other half of the nutriment, and the rest of the reagents, will get put directly into the pot
ingredient_pool.trans_to(holder, amount, ingredient_reagent_multiplier, no_react = TRUE)
return TRUE
/// Adds text to the requirements list of the recipe
/// Return a list of strings, each string will be a new line in the requirements list
/datum/chemical_reaction/food/soup/proc/describe_recipe_details()
return
/// Adds text to the results list of the recipe
/// Return a list of strings, each string will be a new line in the results list
/datum/chemical_reaction/food/soup/proc/describe_result()
return
#ifdef TESTING
/obj/item/soup_test_kit/Initialize(mapload)
..()
new /obj/item/food/meatball(loc)
new /obj/item/food/grown/carrot(loc)
new /obj/item/food/grown/potato(loc)
new /obj/item/reagent_containers/cup/soup_pot(loc)
return INITIALIZE_HINT_QDEL
#endif
/// This subtype is only for easy mapping / spawning in specific types of soup.
/// Do not use it anywhere else.
/obj/item/reagent_containers/cup/bowl/soup
var/initial_reagent
var/initial_portion = SOUP_SERVING_SIZE
/obj/item/reagent_containers/cup/bowl/soup/Initialize(mapload)
. = ..()
if(initial_reagent)
reagents.add_reagent(initial_reagent, initial_portion)
/// This style runs dual purpose -
/// Primarily it's just a bowl style for water,
/// but secondarily it lets chefs know if their soup had too much water in it
/datum/glass_style/has_foodtype/soup/watery_soup
required_drink_type = /datum/reagent/water
name = "Bowl of water"
desc = "A very wet bowl."
icon_state = "wishsoup"
/datum/glass_style/has_foodtype/soup/watery_soup/set_name(obj/item/thing)
if(length(thing.reagents.reagent_list) <= 2)
return ..()
thing.name = "Watery bowl of something"
/datum/glass_style/has_foodtype/soup/watery_soup/set_desc(obj/item/thing)
if(length(thing.reagents.reagent_list) <= 2)
return ..()
thing.desc = "Looks like whatever's in there is very watered down."
/// So this one's kind of a "failed" result, but also a "custom" result
/// Getting to this temperature and having no other soup reaction made means you're either messing something up
/// or you simply aren't following a recipe. So it'll just combine
/datum/chemical_reaction/food/soup/custom
required_temp = SOUP_BURN_TEMP + 40 // Only done if it's been burning for a little bit
optimal_temp = SOUP_BURN_TEMP + 50
overheat_temp = SOUP_BURN_TEMP + 60
thermic_constant = 0
mix_message = span_warning("You smell something gross coming from the pot of soup.")
required_reagents = list(/datum/reagent/water = 30)
results = list(/datum/reagent/water = 10)
ingredient_reagent_multiplier = 1
percentage_of_nutriment_converted = 0
/// Custom recipes will not start mixing until at least this many solid ingredients are present
var/num_ingredients_needed = 3
/datum/chemical_reaction/food/soup/custom/pre_reaction_other_checks(datum/reagents/holder)
var/obj/item/reagent_containers/cup/soup_pot/pot = holder.my_atom
if(!istype(pot))
return FALSE // Not a pot
if(holder.is_reacting)
return FALSE // Another soup is being made
if(length(pot.added_ingredients) <= num_ingredients_needed)
return FALSE // Not a lot here to go off of
return TRUE
/datum/chemical_reaction/food/soup/custom/describe_recipe_details()
return list("Created from burning soup with at least [num_ingredients_needed] ingredients present")
/datum/chemical_reaction/food/soup/custom/describe_result()
return list("Whatever's in the pot")
// Meatball Soup
/datum/reagent/consumable/nutriment/soup/meatball_soup
name = "Meatball Soup"
description = "You've got balls kid, BALLS!"
data = list("meat" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#FFFDCF"
/datum/glass_style/has_foodtype/soup/meatball_soup
required_drink_type = /datum/reagent/consumable/nutriment/soup/meatball_soup
icon_state = "meatballsoup"
drink_type = MEAT
/obj/item/reagent_containers/cup/bowl/soup/meatball_soup
initial_reagent = /datum/reagent/consumable/nutriment/soup/meatball_soup
/datum/chemical_reaction/food/soup/meatballsoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/meatball = 1,
/obj/item/food/grown/carrot = 1,
/obj/item/food/grown/potato = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/meatball_soup = 30,
/datum/reagent/water = 9,
)
// Vegetable Soup
/datum/reagent/consumable/nutriment/soup/vegetable_soup
name = "Vegetable Soup"
description = "A true vegan meal."
data = list("vegetables" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#FAA810"
/datum/glass_style/has_foodtype/soup/vegetable_soup
required_drink_type = /datum/reagent/consumable/nutriment/soup/vegetable_soup
icon_state = "vegetablesoup"
drink_type = VEGETABLES
/datum/chemical_reaction/food/soup/vegetable_soup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/grown/carrot = 1,
/obj/item/food/grown/corn = 1,
/obj/item/food/grown/eggplant = 1,
/obj/item/food/grown/potato = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/vegetable_soup = 30,
/datum/reagent/water = 9,
)
// Nettle soup - gains some omnizine to offset the acid damage
/datum/reagent/consumable/nutriment/soup/nettle
name = "Nettle Soup"
description = "To think, the botanist would've beat you to death with one of these."
data = list("nettles" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#C1E212"
/datum/glass_style/has_foodtype/soup/nettle
required_drink_type = /datum/reagent/consumable/nutriment/soup/nettle
icon_state = "nettlesoup"
drink_type = VEGETABLES
/obj/item/reagent_containers/cup/bowl/soup/nettle
initial_reagent = /datum/reagent/consumable/nutriment/soup/nettle
/datum/chemical_reaction/food/soup/nettlesoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/grown/nettle = 1,
/obj/item/food/grown/potato = 1,
/obj/item/food/boiledegg = 1
)
results = list(
/datum/reagent/consumable/nutriment/soup/nettle = 30,
/datum/reagent/water = 9,
/datum/reagent/medicine/omnizine = 6,
)
ingredient_reagent_multiplier = 0.2 // Too much acid
percentage_of_nutriment_converted = 0
// Wing Fang Chu
/datum/reagent/consumable/nutriment/soup/wingfangchu
name = "Wing Fang Chu"
description = "A savory dish of alien wing wang in soy."
data = list("soy" = 1)
color = "#C1E212"
/datum/glass_style/has_foodtype/soup/wingfangchu
required_drink_type = /datum/reagent/consumable/nutriment/soup/wingfangchu
icon_state = "wingfangchu"
drink_type = MEAT
/datum/chemical_reaction/food/soup/wingfangchu
required_reagents = list(
/datum/reagent/water = 50,
/datum/reagent/consumable/soysauce = 5,
)
required_ingredients = list(
/obj/item/food/meat/cutlet/xeno = 2,
)
results = list(
/datum/reagent/consumable/nutriment/soup/wingfangchu = 30,
/datum/reagent/consumable/soysauce = 10,
)
// Chili (Hot, not cold)
/datum/reagent/consumable/nutriment/soup/hotchili
name = "Hot Chili"
description = "A five alarm Texan Chili!"
data = list("hot peppers" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#E23D12"
/datum/glass_style/has_foodtype/soup/hotchili
required_drink_type = /datum/reagent/consumable/nutriment/soup/hotchili
icon_state = "hotchili"
drink_type = VEGETABLES | MEAT
/obj/item/reagent_containers/cup/bowl/soup/hotchili
initial_reagent = /datum/reagent/consumable/nutriment/soup/hotchili
/datum/chemical_reaction/food/soup/hotchili
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/meat/cutlet = 2,
/obj/item/food/grown/chili = 1,
/obj/item/food/grown/tomato = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/hotchili = 30,
/datum/reagent/consumable/tomatojuice = 10,
// Capsaicin comes from the chillis, meaning you can make tame chili.
/*
/datum/reagent/consumable/nutriment = 4,
/datum/reagent/consumable/nutriment/protein = 6,
/datum/reagent/consumable/nutriment/vitamin = 4
*/
)
ingredient_reagent_multiplier = 0.33 // Chilis have a TON of capsaicin naturally
percentage_of_nutriment_converted = 0
// Chili (Cold)
/datum/reagent/consumable/nutriment/soup/coldchili
name = "Cold Chili"
description = "This slush is barely a liquid!"
data = list("tomato" = 1, "mint" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#3861C2"
/datum/glass_style/has_foodtype/soup/coldchili
required_drink_type = /datum/reagent/consumable/nutriment/soup/coldchili
icon_state = "coldchili"
drink_type = VEGETABLES | MEAT
/datum/chemical_reaction/food/soup/coldchili
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/meat/cutlet = 2,
/obj/item/food/grown/icepepper = 1,
/obj/item/food/grown/tomato = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/coldchili = 30,
/datum/reagent/consumable/tomatojuice = 10,
// Frost Oil comes from the chilis
)
ingredient_reagent_multiplier = 0.33 // Chilis have a TON of frost oil naturally
percentage_of_nutriment_converted = 0
// Chili (Clownish)
/datum/reagent/consumable/nutriment/soup/clownchili
name = "Chili Con Carnival"
description = "A delicious stew of meat, chiles, and salty, salty clown tears."
data = list(
"tomato" = 1,
"hot peppers" = 2,
"clown feet" = 2,
"kind of funny" = 2,
"someone's parents" = 2,
)
glass_price = FOOD_PRICE_EXOTIC
color = COLOR_RED
/datum/glass_style/has_foodtype/soup/clownchili
required_drink_type = /datum/reagent/consumable/nutriment/soup/clownchili
icon_state = "clownchili"
drink_type = VEGETABLES | MEAT
/datum/chemical_reaction/food/soup/clownchili
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/meat/cutlet = 2,
/obj/item/food/grown/chili = 1,
/obj/item/food/grown/tomato = 1,
/obj/item/clothing/shoes/clown_shoes = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/clownchili = 30,
/datum/reagent/consumable/tomatojuice = 8,
/datum/reagent/consumable/laughter = 4,
/datum/reagent/consumable/banana = 4,
)
percentage_of_nutriment_converted = 0.15
// Vegan Chili
/datum/reagent/consumable/nutriment/soup/chili_sin_carne
name = "Chili Sin Carne"
description = "For the hombres who don't want carne."
data = list("bitterness" = 1, "sourness" = 1)
color = "#E23D12"
/datum/glass_style/has_foodtype/soup/chili_sin_carne
required_drink_type = /datum/reagent/consumable/nutriment/soup/chili_sin_carne
icon_state = "hotchili"
drink_type = VEGETABLES
/datum/chemical_reaction/food/soup/chili_sin_carne
required_reagents = list(
/datum/reagent/water = 30,
/datum/reagent/water/salt = 10,
)
required_ingredients = list(
/obj/item/food/grown/chili = 1,
/obj/item/food/grown/tomato = 1
)
results = list(
/datum/reagent/consumable/nutriment/soup/chili_sin_carne = 30,
/datum/reagent/consumable/tomatojuice = 10,
)
// Tomato soup
/datum/reagent/consumable/nutriment/soup/tomato
name = "Tomato Soup"
description = "Drinking this feels like being a vampire! A tomato vampire..."
data = list("tomato" = 1)
color = COLOR_RED
/datum/glass_style/has_foodtype/soup/tomato
required_drink_type = /datum/reagent/consumable/nutriment/soup/tomato
name = "Tomato Soup"
icon_state = "tomatosoup"
drink_type = VEGETABLES | FRUIT // ??
/datum/chemical_reaction/food/soup/tomatosoup
required_reagents = list(
/datum/reagent/water = 50,
/datum/reagent/consumable/cream = 5
)
required_ingredients = list(
/obj/item/food/grown/tomato = 2,
)
results = list(
/datum/reagent/consumable/nutriment/soup/tomato = 30,
/datum/reagent/consumable/tomatojuice = 20,
/*
/datum/reagent/consumable/nutriment = 6,
/datum/reagent/consumable/tomatojuice = 10,
/datum/reagent/consumable/nutriment/vitamin = 3
*/
)
percentage_of_nutriment_converted = 0.1
// Tomato-eyeball soup
/datum/reagent/consumable/nutriment/soup/eyeball
name = "Eyeball Soup"
description = "It looks back at you..."
data = list("tomato" = 1, "squirming" = 1)
color = "#FF1C1C"
/datum/glass_style/has_foodtype/soup/eyeball
required_drink_type = /datum/reagent/consumable/nutriment/soup/eyeball
icon_state = "eyeballsoup"
drink_type = VEGETABLES | FRUIT | MEAT | GORE // Tomato soup + an eyeball
/datum/chemical_reaction/food/soup/eyeballsoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/grown/tomato = 2,
/obj/item/organ/internal/eyes = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/eyeball = 20,
// Logically this would be more but we wouldn't get the eyeball icon state if it was.
/datum/reagent/consumable/nutriment/soup/tomato = 10,
/datum/reagent/consumable/nutriment = 2,
/datum/reagent/consumable/nutriment/protein = 6,
/datum/reagent/consumable/tomatojuice = 6,
/datum/reagent/consumable/liquidgibs = 6,
)
percentage_of_nutriment_converted = 0.1
// Miso soup
/datum/reagent/consumable/nutriment/soup/miso
name = "Miso Soup"
description = "The universes best soup! Yum!!!"
data = list("miso" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#E2BD12"
/datum/glass_style/has_foodtype/soup/miso
required_drink_type = /datum/reagent/consumable/nutriment/soup/miso
icon_state = "misosoup"
drink_type = VEGETABLES | BREAKFAST
/datum/chemical_reaction/food/soup/misosoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/soydope = 2,
/obj/item/food/tofu = 2,
)
results = list(
/datum/reagent/consumable/nutriment/soup/miso = 30,
/datum/reagent/water = 10,
)
percentage_of_nutriment_converted = 0 // Soy has very low nutrients.
// Blood soup
// Fake tomato soup.
// Can also appear by pouring blood into a bowl!
/datum/glass_style/has_foodtype/soup/tomato/blood
required_drink_type = /datum/reagent/blood
name = "Tomato Soup"
desc = "Smells like copper."
drink_type = GROSS
/datum/chemical_reaction/food/soup/bloodsoup
required_reagents = list(
/datum/reagent/water = 10,
/datum/reagent/blood = 10,
)
required_ingredients = list(
/obj/item/food/grown/tomato/blood = 2,
)
results = list(
// Blood tomatos will give us like 30u blood, so just add in the 10 from the recipe
/datum/reagent/blood = 10,
/datum/reagent/water = 8,
/datum/reagent/consumable/nutriment/protein = 7,
)
percentage_of_nutriment_converted = 0.1
// Slime soup
// Made with a slime extract, toxic to non-slime-people.
// Can also be created by mixing water and slime jelly.
/datum/reagent/consumable/nutriment/soup/slime
name = "Slime Soup"
description = "If no water is available, you may substitute tears."
data = list("slime" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#41C0C0"
/datum/glass_style/has_foodtype/soup/slime
required_drink_type = /datum/reagent/consumable/nutriment/soup/slime
icon_state = "slimesoup"
drink_type = GROSS
/datum/chemical_reaction/food/soup/slimesoup
required_reagents = list(
/datum/reagent/water = 40,
)
required_ingredients = list(
/obj/item/slime_extract = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/slime = 30,
/datum/reagent/toxin/slimejelly = 20,
// Comes out of thin air, as none of our ingredients contain nutrients naturally.
/datum/reagent/consumable/nutriment = 7,
/datum/reagent/consumable/nutriment/vitamin = 7,
/datum/reagent/water = 6,
)
/datum/chemical_reaction/food/soup/slimesoup/alt
// Alt recipe that allows you to create a slime soup by just mixing slime jelly and water.
// Pretty much just a normal chemical reaction.
// This also creates nutrients out of thin air.
required_other = FALSE
required_reagents = list(
/datum/reagent/water = 40,
/datum/reagent/toxin/slimejelly = 20,
)
required_ingredients = null
// Clown Tear soup
/datum/reagent/consumable/nutriment/soup/clown_tears
name = "Clown's Tears"
description = "The sorrow and melancholy of a thousand bereaved clowns, forever denied their Honkmechs."
nutriment_factor = 5
ph = 9.2
data = list("a bad joke" = 1, "mournful honking" = 1)
color = "#EEF442"
/datum/glass_style/has_foodtype/soup/clown_tears
required_drink_type = /datum/reagent/consumable/nutriment/soup/clown_tears
name = "clown's tears"
desc = "Not very funny."
icon_state = "clownstears"
drink_type = FRUIT | SUGAR
/datum/chemical_reaction/food/soup/clownstears
required_reagents = list(
/datum/reagent/lube = 30,
)
required_ingredients = list(
/obj/item/food/grown/banana = 1,
/obj/item/stack/sheet/mineral/bananium = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/clown_tears = 30,
/datum/reagent/consumable/banana = 8,
/datum/reagent/consumable/nutriment/vitamin = 12,
/datum/reagent/lube = 5,
)
percentage_of_nutriment_converted = 0 // Bananas have a small amount of nutrition naturally
// Mystery soup
// Acts a little funny, because when it's mixed it gains a new random reagent as well
/datum/reagent/consumable/nutriment/soup/mystery
name = "Mystery Soup"
description = "The mystery is, why aren't you eating it?"
data = list("chaos" = 1)
color = "#4C2A18"
/datum/glass_style/has_foodtype/soup/mystery
required_drink_type = /datum/reagent/consumable/nutriment/soup/mystery
icon_state = "mysterysoup"
/datum/chemical_reaction/food/soup/mysterysoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/badrecipe = 1,
/obj/item/food/tofu = 1,
/obj/item/food/boiledegg = 1,
/obj/item/food/cheese/wedge = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/mystery = 30,
)
percentage_of_nutriment_converted = 0.33 // Full of garbage
/// Number of units of bonus reagent added
var/num_bonus = 10
/// A list of reagent types we can randomly gain in the soup on creation
var/list/extra_reagent_types = list(
/datum/reagent/blood,
/datum/reagent/carbon,
/datum/reagent/consumable/banana,
/datum/reagent/consumable/capsaicin,
/datum/reagent/consumable/frostoil,
/datum/reagent/medicine/oculine,
/datum/reagent/medicine/omnizine,
/datum/reagent/toxin,
/datum/reagent/toxin/slimejelly,
)
/datum/chemical_reaction/food/soup/mysterysoup/reaction_finish(datum/reagents/holder, datum/equilibrium/reaction, react_vol)
. = ..()
holder.add_reagent(pick(extra_reagent_types), num_bonus)
/datum/chemical_reaction/food/soup/mysterysoup/describe_result()
var/list/extra_sublist = list()
for(var/datum/reagent/extra_type as anything in extra_reagent_types)
extra_sublist += "[initial(extra_type.name)]"
return list("Will also contain [num_bonus] units of one randomly: [jointext(extra_sublist, ", ")]")
// Monkey Soup
/datum/reagent/consumable/nutriment/soup/monkey
name = "Monkey's Delight"
description = "A delicious soup with dumplings and hunks of monkey meat simmered to perfection, in a broth that tastes faintly of bananas."
data = list("the jungle" = 1, "banana" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#4C2A18"
/datum/glass_style/has_foodtype/soup/monkey
required_drink_type = /datum/reagent/consumable/nutriment/soup/monkey
icon_state = "monkeysdelight"
drink_type = FRUIT
/obj/item/reagent_containers/cup/bowl/soup/monkey
initial_reagent = /datum/reagent/consumable/nutriment/soup/monkey
/datum/chemical_reaction/food/soup/monkey
required_reagents = list(
/datum/reagent/water = 20,
/datum/reagent/consumable/flour = 5,
/datum/reagent/water/salt = 10,
/datum/reagent/consumable/blackpepper = 5,
)
required_ingredients = list(
/obj/item/food/monkeycube = 1, // This will make a monkey if a batch of 2 is made
/obj/item/food/grown/banana = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/monkey = 30,
/datum/reagent/consumable/nutriment = 12,
/datum/reagent/consumable/salt = 4,
/datum/reagent/consumable/blackpepper = 4,
)
/datum/chemical_reaction/food/soup/monkey/describe_result()
return list("May contain a monkey.")
// Cream of mushroom soup
/datum/reagent/consumable/nutriment/soup/mushroom
name = "Chantrelle Soup"
description = "A delicious and hearty mushroom soup."
data = list("mushroom" = 1)
color = "#CEB1B0"
/datum/glass_style/has_foodtype/soup/mushroom
required_drink_type = /datum/reagent/consumable/nutriment/soup/mushroom
icon_state = "mushroomsoup"
drink_type = VEGETABLES | DAIRY
/datum/chemical_reaction/food/soup/mushroomsoup
required_reagents = list(
/datum/reagent/water = 40,
/datum/reagent/consumable/milk = 10,
)
required_ingredients = list(
/obj/item/food/grown/mushroom/chanterelle = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/mushroom = 30,
/datum/reagent/consumable/nutriment = 9,
/datum/reagent/consumable/nutriment/vitamin = 8,
/datum/reagent/consumable/milk = 2,
)
// Beet soup (Borscht)
// This has a gimmick where it randomizes its name based on common mispellings on Borsch
/datum/reagent/consumable/nutriment/soup/white_beet
name = "Beet Soup"
description = "Wait, how do you spell it again..?"
data = list("beet" = 1)
color = "#E00000"
/datum/glass_style/has_foodtype/soup/white_beet
required_drink_type = /datum/reagent/consumable/nutriment/soup/white_beet
icon_state = "beetsoup"
drink_type = VEGETABLES | DAIRY
/datum/glass_style/has_foodtype/soup/white_beet/set_name(obj/item/thing)
var/how_do_you_spell_it = pick("borsch", "bortsch", "borstch", "borsh", "borshch", "borscht")
thing.name = how_do_you_spell_it
var/datum/reagent/soup = locate(required_drink_type) in thing.reagents
if(!soup)
// Shouldn't happen but things are weird
return
// Update tastes with the new name
LAZYSET(soup.data, how_do_you_spell_it, 1)
// Not perfect. Doesn't clear when the bowl type is unset. But it'll do well enough
/obj/item/reagent_containers/cup/bowl/soup/white_beet
initial_reagent = /datum/reagent/consumable/nutriment/soup/white_beet
/datum/chemical_reaction/food/soup/beetsoup
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/grown/whitebeet = 1,
/obj/item/food/grown/cabbage = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/white_beet = 30,
/datum/reagent/water = 10,
)
percentage_of_nutriment_converted = 0.1
/datum/chemical_reaction/food/soup/beetsoup/describe_result()
return list("Changes name randomly to a common misspelling of \"Borscht\".")
// Stew
/datum/reagent/consumable/nutriment/soup/stew
name = "Stew"
description = "A nice and warm stew. Healthy and strong."
data = list("tomato" = 1, "carrot" = 1)
glass_price = FOOD_PRICE_NORMAL
color = "#EB7C82"
/datum/glass_style/has_foodtype/soup/stew
required_drink_type = /datum/reagent/consumable/nutriment/soup/stew
icon_state = "stew"
drink_type = VEGETABLES | FRUIT | MEAT
/obj/item/reagent_containers/cup/bowl/soup/stew
initial_reagent = /datum/reagent/consumable/nutriment/soup/stew
/datum/chemical_reaction/food/soup/stew
required_reagents = list(/datum/reagent/water = 50)
required_ingredients = list(
/obj/item/food/grown/tomato = 1,
/obj/item/food/meat/cutlet = 3,
/obj/item/food/grown/potato = 1,
/obj/item/food/grown/carrot = 1,
/obj/item/food/grown/eggplant = 1,
/obj/item/food/grown/mushroom = 1,
)
results = list(
/datum/reagent/consumable/nutriment/soup/stew = 30,
/datum/reagent/consumable/tomatojuice = 10,
// Gains a ton of nutriments from the variety of ingredients.
)
// Sweet potato soup
/datum/reagent/consumable/nutriment/soup/sweetpotato
name = "Sweet Potato Soup"
description = "Delicious sweet potato in soup form."
data = list("sweet potato" = 1)
color = "#903E22"
/datum/glass_style/has_foodtype/soup/sweetpotato