-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
misc.dm
813 lines (707 loc) · 30.1 KB
/
misc.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
////////////////////////////////////////////OTHER////////////////////////////////////////////
/obj/item/food/cheese/wheel
name = "cheese wheel"
desc = "A big wheel of delcious Cheddar."
icon_state = "cheesewheel"
food_reagents = list(/datum/reagent/consumable/nutriment = 10, /datum/reagent/consumable/nutriment/protein = 5, /datum/reagent/consumable/nutriment/vitamin = 5) //Hard cheeses contain about 25% protein
w_class = WEIGHT_CLASS_NORMAL
rat_heal = 35
/obj/item/food/cheese/wheel/Initialize()
. = ..()
AddComponent(/datum/component/food_storage)
/obj/item/food/cheese/wheel/MakeProcessable()
AddElement(/datum/element/processable, TOOL_KNIFE, /obj/item/food/cheese, 5, 30)
/obj/item/food/cheese/royal
name = "royal cheese"
desc = "Ascend the throne. Consume the wheel. Feel the POWER."
icon_state = "royalcheese"
food_reagents = list(/datum/reagent/consumable/nutriment = 15, /datum/reagent/consumable/nutriment/vitamin = 5, /datum/reagent/gold = 20, /datum/reagent/toxin/mutagen = 5)
w_class = WEIGHT_CLASS_BULKY
tastes = list("cheese" = 4, "royalty" = 1)
rat_heal = 70
/obj/item/food/cheese
name = "cheese wedge"
desc = "A wedge of delicious Cheddar. The cheese wheel it was cut from can't have gone far."
icon_state = "cheesewedge"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 1, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("cheese" = 1)
foodtypes = DAIRY
w_class = WEIGHT_CLASS_SMALL
/// used to determine how much health rats/regal rats recover when they eat it.
var/rat_heal = 10
/obj/item/food/cheese/Initialize()
. = ..()
RegisterSignal(src, COMSIG_RAT_INTERACT, .proc/on_rat_eat)
/obj/item/food/cheese/proc/on_rat_eat(mob/living/simple_animal/hostile/regalrat/king)
SIGNAL_HANDLER
king.cheese_heal(src, rat_heal, "<span class='green'>You eat [src], restoring some health.</span>")
/obj/item/food/watermelonslice
name = "watermelon slice"
desc = "A slice of watery goodness."
icon_state = "watermelonslice"
food_reagents = list(/datum/reagent/water = 1, /datum/reagent/consumable/nutriment/vitamin = 0.2, /datum/reagent/consumable/nutriment = 1)
tastes = list("watermelon" = 1)
foodtypes = FRUIT
juice_results = list(/datum/reagent/consumable/watermelonjuice = 5)
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/candy_corn
name = "candy corn"
desc = "It's a handful of candy corn. Can be stored in a detective's hat."
icon_state = "candy_corn"
food_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/sugar = 2)
tastes = list("candy corn" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_TINY
/obj/item/food/candy_corn/prison
name = "desiccated candy corn"
desc = "If this candy corn were any harder Security would confiscate it for being a potential shiv."
force = 1 // the description isn't lying
throwforce = 1 // if someone manages to bust out of jail with candy corn god bless them
tastes = list("bitter wax" = 1)
foodtypes = GROSS
/obj/item/food/chocolatebar
name = "chocolate bar"
desc = "Such, sweet, fattening food."
icon_state = "chocolatebar"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/sugar = 2, /datum/reagent/consumable/coco = 2)
tastes = list("chocolate" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_TINY
/obj/item/food/hugemushroomslice
name = "huge mushroom slice"
desc = "A slice from a huge mushroom."
icon_state = "hugemushroomslice"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("mushroom" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/popcorn
name = "popcorn"
desc = "Now let's find some cinema."
icon_state = "popcorn"
trash_type = /obj/item/trash/popcorn
food_reagents = list(/datum/reagent/consumable/nutriment = 2)
bite_consumption = 0.1 //this snack is supposed to be eating during looooong time. And this it not dinner food! --rastaf0
tastes = list("popcorn" = 3, "butter" = 1)
foodtypes = JUNKFOOD
eatverbs = list("bite","nibble","gnaw","gobble","chomp")
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/loadedbakedpotato
name = "loaded baked potato"
desc = "Totally baked."
icon_state = "loadedbakedpotato"
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("potato" = 1)
foodtypes = VEGETABLES | DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/fries
name = "space fries"
desc = "AKA: French Fries, Freedom Fries, etc."
icon_state = "fries"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 4)
tastes = list("fries" = 3, "salt" = 1)
foodtypes = VEGETABLES | GRAIN | FRIED
w_class = WEIGHT_CLASS_SMALL
venue_value = FOOD_PRICE_CHEAP
/obj/item/food/fries/Initialize()
. = ..()
AddElement(/datum/element/dunkable, 10)
/obj/item/food/tatortot
name = "tator tot"
desc = "A large fried potato nugget that may or may not try to valid you."
icon_state = "tatortot"
food_reagents = list(/datum/reagent/consumable/nutriment = 4)
tastes = list("potato" = 3, "valids" = 1)
foodtypes = FRIED | VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/tatortot/Initialize()
. = ..()
AddElement(/datum/element/dunkable, 10)
/obj/item/food/soydope
name = "soy dope"
desc = "Dope from a soy."
icon_state = "soydope"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/protein = 1)
tastes = list("soy" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/cheesyfries
name = "cheesy fries"
desc = "Fries. Covered in cheese. Duh."
icon_state = "cheesyfries"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("fries" = 3, "cheese" = 1)
foodtypes = VEGETABLES | GRAIN | DAIRY
w_class = WEIGHT_CLASS_SMALL
venue_value = FOOD_PRICE_CHEAP
/obj/item/food/cheesyfries/Initialize()
. = ..()
AddElement(/datum/element/dunkable, 10)
/obj/item/food/badrecipe
name = "burned mess"
desc = "Someone should be demoted from cook for this."
icon_state = "badrecipe"
food_reagents = list(/datum/reagent/toxin/bad_food = 30)
foodtypes = GROSS
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/badrecipe/Initialize()
. = ..()
RegisterSignal(src, COMSIG_ITEM_GRILLED, .proc/OnGrill)
///Prevents grilling burnt shit from well, burning.
/obj/item/food/badrecipe/proc/OnGrill()
return COMPONENT_HANDLED_GRILLING
/obj/item/food/carrotfries
name = "carrot fries"
desc = "Tasty fries from fresh Carrots."
icon_state = "carrotfries"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/medicine/oculine = 3, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("carrots" = 3, "salt" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/carrotfries/Initialize()
. = ..()
AddElement(/datum/element/dunkable, 10)
/obj/item/food/candiedapple
name = "candied apple"
desc = "An apple coated in sugary sweetness."
icon_state = "candiedapple"
bite_consumption = 3
food_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/sugar = 3, /datum/reagent/consumable/caramel = 5)
tastes = list("apple" = 2, "caramel" = 3)
foodtypes = JUNKFOOD | FRUIT | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/mint
name = "mint"
desc = "It is only wafer thin."
icon_state = "mint"
bite_consumption = 1
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/toxin/minttoxin = 2)
foodtypes = TOXIC | SUGAR
w_class = WEIGHT_CLASS_TINY
/obj/item/food/eggwrap
name = "egg wrap"
desc = "The precursor to Pigs in a Blanket."
icon_state = "eggwrap"
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/consumable/nutriment/vitamin = 3)
tastes = list("egg" = 1)
foodtypes = MEAT | GRAIN
w_class = WEIGHT_CLASS_TINY
/obj/item/food/spidereggs
name = "spider eggs"
desc = "A cluster of juicy spider eggs. A great side dish for when you care not for your health."
icon_state = "spidereggs"
food_reagents = list(/datum/reagent/consumable/nutriment/protein = 4, /datum/reagent/toxin = 2)
tastes = list("cobwebs" = 1)
foodtypes = MEAT | TOXIC
w_class = WEIGHT_CLASS_TINY
/obj/item/food/spiderling
name = "spiderling"
desc = "It's slightly twitching in your hand. Ew..."
icon_state = "spiderling"
food_reagents = list(/datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/toxin = 4)
tastes = list("cobwebs" = 1, "guts" = 2)
foodtypes = MEAT | TOXIC
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/chewable/spiderlollipop
name = "spider lollipop"
desc = "Still gross, but at least it has a mountain of sugar on it."
icon_state = "spiderlollipop"
worn_icon_state = "lollipop_stick"
food_reagents = list(/datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/toxin = 1, /datum/reagent/iron = 10, /datum/reagent/consumable/sugar = 5, /datum/reagent/medicine/omnizine = 2) //lollipop, but vitamins = toxins
tastes = list("cobwebs" = 1, "sugar" = 2)
foodtypes = JUNKFOOD | SUGAR
/obj/item/food/chococoin
name = "chocolate coin"
desc = "A completely edible but nonflippable festive coin."
icon_state = "chococoin"
food_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/coco = 1, /datum/reagent/consumable/sugar = 1)
tastes = list("chocolate" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/fudgedice
name = "fudge dice"
desc = "A little cube of chocolate that tends to have a less intense taste if you eat too many at once."
icon_state = "chocodice"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/coco = 1, /datum/reagent/consumable/sugar = 1)
trash_type = /obj/item/dice/fudge
tastes = list("fudge" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/chocoorange
name = "chocolate orange"
desc = "A festive chocolate orange."
icon_state = "chocoorange"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/sugar = 1)
tastes = list("chocolate" = 3, "oranges" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/eggplantparm
name = "eggplant parmigiana"
desc = "The only good recipe for eggplant."
icon_state = "eggplantparm"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/consumable/nutriment/vitamin = 4)
tastes = list("eggplant" = 3, "cheese" = 1)
foodtypes = VEGETABLES | DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/tortilla
name = "tortilla"
desc = "The base for all your burritos."
icon = 'icons/obj/food/food_ingredients.dmi'
icon_state = "tortilla"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("tortilla" = 1)
foodtypes = GRAIN
w_class = WEIGHT_CLASS_TINY
/obj/item/food/burrito
name = "burrito"
desc = "Tortilla wrapped goodness."
icon_state = "burrito"
food_reagents = list(/datum/reagent/consumable/nutriment = 2,/datum/reagent/consumable/nutriment/protein = 4, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("torilla" = 2, "meat" = 3)
foodtypes = GRAIN | MEAT
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/cheesyburrito
name = "cheesy burrito"
desc = "It's a burrito filled with cheese."
icon_state = "cheesyburrito"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/protein = 5, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("torilla" = 2, "meat" = 3, "cheese" = 1)
foodtypes = GRAIN | MEAT | DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/carneburrito
name = "carne asada burrito"
desc = "The best burrito for meat lovers."
icon_state = "carneburrito"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 6, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("torilla" = 2, "meat" = 4)
foodtypes = GRAIN | MEAT
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/fuegoburrito
name = "fuego plasma burrito"
desc = "A super spicy burrito."
icon_state = "fuegoburrito"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/consumable/capsaicin = 5, /datum/reagent/consumable/nutriment/vitamin = 3)
tastes = list("torilla" = 2, "meat" = 3, "hot peppers" = 1)
foodtypes = GRAIN | MEAT
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/yakiimo
name = "yaki imo"
desc = "Made with roasted sweet potatoes!"
icon_state = "yakiimo"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/nutriment/vitamin = 4)
tastes = list("sweet potato" = 1)
foodtypes = GRAIN | VEGETABLES | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/roastparsnip
name = "roast parsnip"
desc = "Sweet and crunchy."
icon_state = "roastparsnip"
trash_type = /obj/item/trash/plate
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 4)
tastes = list("parsnip" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/melonfruitbowl
name = "melon fruit bowl"
desc = "For people who wants edible fruit bowls."
icon_state = "melonfruitbowl"
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 4)
w_class = WEIGHT_CLASS_NORMAL
tastes = list("melon" = 1)
foodtypes = FRUIT
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/nachos
name = "nachos"
desc = "Chips from Space Mexico."
icon_state = "nachos"
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("nachos" = 1)
foodtypes = VEGETABLES | FRIED
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/cheesynachos
name = "cheesy nachos"
desc = "The delicious combination of nachos and melting cheese."
icon_state = "cheesynachos"
food_reagents = list(/datum/reagent/consumable/nutriment = 6, /datum/reagent/consumable/nutriment/protein = 1, /datum/reagent/consumable/nutriment/vitamin = 3)
tastes = list("nachos" = 2, "cheese" = 1)
foodtypes = VEGETABLES | FRIED | DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/cubannachos
name = "Cuban nachos"
desc = "That's some dangerously spicy nachos."
icon_state = "cubannachos"
food_reagents = list(/datum/reagent/consumable/nutriment = 7, /datum/reagent/consumable/capsaicin = 8, /datum/reagent/consumable/nutriment/vitamin = 4)
tastes = list("nachos" = 2, "hot pepper" = 1)
foodtypes = VEGETABLES | FRIED | DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/melonkeg
name = "melon keg"
desc = "Who knew vodka was a fruit?"
icon_state = "melonkeg"
food_reagents = list(/datum/reagent/consumable/nutriment = 9, /datum/reagent/consumable/ethanol/vodka = 15, /datum/reagent/consumable/nutriment/vitamin = 4)
max_volume = 80
bite_consumption = 5
tastes = list("grain alcohol" = 1, "fruit" = 1)
foodtypes = FRUIT | ALCOHOL
/obj/item/food/honeybar
name = "honey nut bar"
desc = "Oats and nuts compressed together into a bar, held together with a honey glaze."
icon_state = "honeybar"
food_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/honey = 5)
tastes = list("oats" = 3, "nuts" = 2, "honey" = 1)
foodtypes = GRAIN | SUGAR
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/stuffedlegion
name = "stuffed legion"
desc = "The former skull of a damned human, filled with goliath meat. It has a decorative lava pool made of ketchup and hotsauce."
icon_state = "stuffed_legion"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 5, /datum/reagent/consumable/nutriment/vitamin = 5, /datum/reagent/consumable/capsaicin = 2)
tastes = list("death" = 2, "rock" = 1, "meat" = 1, "hot peppers" = 1)
foodtypes = MEAT
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/powercrepe
name = "Powercrepe"
desc = "With great power, comes great crepes. It looks like a pancake filled with jelly but packs quite a punch."
icon_state = "powercrepe"
food_reagents = list(/datum/reagent/consumable/nutriment = 10, /datum/reagent/consumable/nutriment/vitamin = 5, /datum/reagent/consumable/cherryjelly = 5)
force = 30
throwforce = 15
block_chance = 55
armour_penetration = 80
wound_bonus = -50
attack_verb_continuous = list("slaps", "slathers")
attack_verb_simple = list("slap", "slather")
w_class = WEIGHT_CLASS_BULKY
tastes = list("cherry" = 1, "crepe" = 1)
foodtypes = GRAIN | FRUIT | SUGAR
///Shit typepath to allow you to suck on shit. Like the coder of this code probably did to penis.
/obj/item/food/chewable
slot_flags = ITEM_SLOT_MASK
///How long it lasts before being deleted in seconds
var/succ_dur = 360
///The delay between each time it will handle reagents
var/succ_int = 100
///Stores the time set for the next handle_reagents
var/next_succ = 0
//makes snacks actually wearable as masks and still edible the old-fashioned way.
/obj/item/food/chewable/proc/handle_reagents()
if(reagents.total_volume)
if(iscarbon(loc))
var/mob/living/carbon/C = loc
if (src == C.wear_mask) // if it's in the human/monkey mouth, transfer reagents to the mob
if(!reagents.trans_to(C, REAGENTS_METABOLISM, methods = INGEST))
reagents.remove_any(REAGENTS_METABOLISM)
return
reagents.remove_any(REAGENTS_METABOLISM)
/obj/item/food/chewable/process(delta_time)
if(iscarbon(loc))
if(succ_dur <= 0)
qdel(src)
return
succ_dur -= delta_time
if((reagents?.total_volume) && (next_succ <= world.time))
handle_reagents()
next_succ = world.time + succ_int
/obj/item/food/chewable/equipped(mob/user, slot)
. = ..()
if(slot == ITEM_SLOT_MASK)
START_PROCESSING(SSobj, src)
else
STOP_PROCESSING(SSobj, src)
/obj/item/food/chewable/Destroy()
STOP_PROCESSING(SSobj, src)
. = ..()
/obj/item/food/chewable/lollipop
name = "lollipop"
desc = "A delicious lollipop. Makes for a great Valentine's present."
icon = 'icons/obj/lollipop.dmi'
icon_state = "lollipop_stick"
inhand_icon_state = "lollipop_stick"
food_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/nutriment/vitamin = 1, /datum/reagent/iron = 10, /datum/reagent/consumable/sugar = 5, /datum/reagent/medicine/omnizine = 2) //Honk
var/mutable_appearance/head
var/headcolor = rgb(0, 0, 0)
tastes = list("candy" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_TINY
/obj/item/food/chewable/lollipop/Initialize()
. = ..()
head = mutable_appearance('icons/obj/lollipop.dmi', "lollipop_head")
change_head_color(rgb(rand(0, 255), rand(0, 255), rand(0, 255)))
/obj/item/food/chewable/lollipop/proc/change_head_color(C)
headcolor = C
cut_overlay(head)
head.color = C
add_overlay(head)
/obj/item/food/chewable/lollipop/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
..(hit_atom)
throw_speed = 1
throwforce = 0
/obj/item/food/chewable/lollipop/cyborg
var/spamchecking = TRUE
/obj/item/food/chewable/lollipop/cyborg/Initialize()
. = ..()
addtimer(CALLBACK(src, .proc/spamcheck), 1200)
/obj/item/food/chewable/lollipop/cyborg/equipped(mob/living/user, slot)
. = ..(user, slot)
spamchecking = FALSE
/obj/item/food/chewable/lollipop/cyborg/proc/spamcheck()
if(spamchecking)
qdel(src)
/obj/item/food/chewable/bubblegum
name = "bubblegum"
desc = "A rubbery strip of gum. Not exactly filling, but it keeps you busy."
icon_state = "bubblegum"
inhand_icon_state = "bubblegum"
color = "#E48AB5" // craftable custom gums someday?
food_reagents = list(/datum/reagent/consumable/sugar = 5)
tastes = list("candy" = 1)
succ_dur = 15 * 60
w_class = WEIGHT_CLASS_TINY
/obj/item/food/chewable/bubblegum/nicotine
name = "nicotine gum"
food_reagents = list(/datum/reagent/drug/nicotine = 10, /datum/reagent/consumable/menthol = 5)
tastes = list("mint" = 1)
color = "#60A584"
/obj/item/food/chewable/bubblegum/happiness
name = "HP+ gum"
desc = "A rubbery strip of gum. It smells funny."
food_reagents = list(/datum/reagent/drug/happiness = 15)
tastes = list("paint thinner" = 1)
color = "#EE35FF"
/obj/item/food/chewable/bubblegum/bubblegum
name = "bubblegum gum"
desc = "A rubbery strip of gum. You don't feel like eating it is a good idea."
color = "#913D3D"
food_reagents = list(/datum/reagent/blood = 15)
tastes = list("hell" = 1)
succ_dur = 6 * 60
/obj/item/food/chewable/bubblegum/bubblegum/process()
. = ..()
if(iscarbon(loc))
hallucinate(loc)
/obj/item/food/chewable/bubblegum/bubblegum/MakeEdible()
AddComponent(/datum/component/edible,\
initial_reagents = food_reagents,\
food_flags = food_flags,\
foodtypes = foodtypes,\
volume = max_volume,\
eat_time = eat_time,\
tastes = tastes,\
eatverbs = eatverbs,\
bite_consumption = bite_consumption,\
microwaved_type = microwaved_type,\
junkiness = junkiness,\
on_consume = CALLBACK(src, .proc/OnConsume))
/obj/item/food/chewable/bubblegum/bubblegum/proc/OnConsume(mob/living/eater, mob/living/feeder)
if(iscarbon(eater))
hallucinate(eater)
///This proc has a 5% chance to have a bubblegum line appear, with an 85% chance for just text and 15% for a bubblegum hallucination and scarier text.
/obj/item/food/chewable/bubblegum/bubblegum/proc/hallucinate(mob/living/carbon/victim)
if(!prob(5)) //cursed by bubblegum
return
if(prob(15))
new /datum/hallucination/oh_yeah(victim)
to_chat(victim, "<span class='colossus'><b>[pick("I AM IMMORTAL.","I SHALL TAKE YOUR WORLD.","I SEE YOU.","YOU CANNOT ESCAPE ME FOREVER.","NOTHING CAN HOLD ME.")]</b></span>")
else
to_chat(victim, "<span class='warning'>[pick("You hear faint whispers.","You smell ash.","You feel hot.","You hear a roar in the distance.")]</span>")
/obj/item/food/chewable/gumball
name = "gumball"
desc = "A colorful, sugary gumball."
icon = 'icons/obj/lollipop.dmi'
icon_state = "gumball"
worn_icon_state = "bubblegum"
food_reagents = list(/datum/reagent/consumable/sugar = 5, /datum/reagent/medicine/sal_acid = 2, /datum/reagent/medicine/oxandrolone = 2) //Kek
tastes = list("candy")
foodtypes = JUNKFOOD
w_class = WEIGHT_CLASS_TINY
/obj/item/food/chewable/gumball/Initialize()
. = ..()
color = rgb(rand(0, 255), rand(0, 255), rand(0, 255))
/obj/item/food/chewable/gumball/cyborg
var/spamchecking = TRUE
/obj/item/food/chewable/gumball/cyborg/Initialize()
. = ..()
addtimer(CALLBACK(src, .proc/spamcheck), 1200)
/obj/item/food/chewable/gumball/cyborg/equipped(mob/living/user, slot)
. = ..(user, slot)
spamchecking = FALSE
/obj/item/food/chewable/gumball/cyborg/proc/spamcheck()
if(spamchecking)
qdel(src)
/obj/item/food/taco
name = "taco"
desc = "A traditional taco with meat, cheese, and lettuce."
icon_state = "taco"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 3, /datum/reagent/consumable/nutriment/vitamin = 2)
tastes = list("taco" = 4, "meat" = 2, "cheese" = 2, "lettuce" = 1)
foodtypes = MEAT | DAIRY | GRAIN | VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/taco/plain
desc = "A traditional taco with meat and cheese, minus the rabbit food."
icon_state = "taco_plain"
food_reagents = list(/datum/reagent/consumable/nutriment = 2, /datum/reagent/consumable/nutriment/protein = 2, /datum/reagent/consumable/nutriment/vitamin = 1)
tastes = list("taco" = 4, "meat" = 2, "cheese" = 2)
foodtypes = MEAT | DAIRY | GRAIN
/obj/item/food/branrequests
name = "Bran Requests Cereal"
desc = "A dry cereal that satiates your requests for bran. Tastes uniquely like raisins and salt."
icon_state = "bran_requests"
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/nutriment/vitamin = 2, /datum/reagent/consumable/salt = 8)
tastes = list("bran" = 4, "raisins" = 3, "salt" = 1)
foodtypes = GRAIN | FRUIT | BREAKFAST
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/butter
name = "stick of butter"
desc = "A stick of delicious, golden, fatty goodness."
icon_state = "butter"
food_reagents = list(/datum/reagent/consumable/nutriment = 5)
tastes = list("butter" = 1)
foodtypes = DAIRY
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/butter/examine(mob/user)
. = ..()
. += "<span class='notice'>If you had a rod you could make <b>butter on a stick</b>.</span>"
/obj/item/food/butter/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/stack/rods))
var/obj/item/stack/rods/R = W
if(!R.use(1))//borgs can still fail this if they have no metal
to_chat(user, "<span class='warning'>You do not have enough iron to put [src] on a stick!</span>")
return ..()
to_chat(user, "<span class='notice'>You stick the rod into the stick of butter.</span>")
var/obj/item/food/butter/on_a_stick/new_item = new(usr.loc)
var/replace = (user.get_inactive_held_item() == R)
if(!R && replace)
user.put_in_hands(new_item)
qdel(src)
return TRUE
..()
/obj/item/food/butter/on_a_stick //there's something so special about putting it on a stick.
name = "butter on a stick"
desc = "delicious, golden, fatty goodness on a stick."
icon_state = "butteronastick"
trash_type = /obj/item/stack/rods
/obj/item/food/onionrings
name = "onion rings"
desc = "Onion slices coated in batter."
icon_state = "onionrings"
food_reagents = list(/datum/reagent/consumable/nutriment = 3)
gender = PLURAL
tastes = list("batter" = 3, "onion" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/pineappleslice
name = "pineapple slice"
desc = "A sliced piece of juicy pineapple."
icon_state = "pineapple_slice"
juice_results = list(/datum/reagent/consumable/pineapplejuice = 3)
tastes = list("pineapple" = 1)
foodtypes = FRUIT | PINEAPPLE
w_class = WEIGHT_CLASS_TINY
/obj/item/food/tinychocolate
name = "chocolate"
desc = "A tiny and sweet chocolate."
icon_state = "tiny_chocolate"
food_reagents = list(/datum/reagent/consumable/nutriment = 1, /datum/reagent/consumable/sugar = 1, /datum/reagent/consumable/coco = 1)
tastes = list("chocolate" = 1)
foodtypes = JUNKFOOD | SUGAR
w_class = WEIGHT_CLASS_TINY
/obj/item/food/canned
name = "Canned Air"
desc = "If you ever wondered where air came from..."
food_reagents = list(/datum/reagent/oxygen = 6, /datum/reagent/nitrogen = 24)
icon_state = "peachcan"
food_flags = FOOD_IN_CONTAINER
w_class = WEIGHT_CLASS_NORMAL
max_volume = 30
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/canned/proc/open_can(mob/user)
to_chat(user, "<span class='notice'>You pull back the tab of \the [src].</span>")
playsound(user.loc, 'sound/items/foodcanopen.ogg', 50)
reagents.flags |= OPENCONTAINER
/obj/item/food/canned/attack_self(mob/user)
if(!is_drainable())
open_can(user)
icon_state = "[icon_state]_open"
return ..()
/obj/item/food/canned/attack(mob/living/M, mob/user, def_zone)
if (!is_drainable())
to_chat(user, "<span class='warning'>[src]'s lid hasn't been opened!</span>")
return FALSE
return ..()
/obj/item/food/canned/beans
name = "tin of beans"
desc = "Musical fruit in a slightly less musical container."
icon_state = "beans"
trash_type = /obj/item/trash/can/food/beans
food_reagents = list(/datum/reagent/consumable/nutriment = 4, /datum/reagent/consumable/nutriment/protein = 9, /datum/reagent/consumable/ketchup = 4)
tastes = list("beans" = 1)
foodtypes = VEGETABLES
/obj/item/food/canned/peaches
name = "canned peaches"
desc = "Just a nice can of ripe peaches swimming in their own juices."
icon_state = "peachcan"
trash_type = /obj/item/trash/can/food/peaches
food_reagents = list(/datum/reagent/consumable/peachjuice = 20, /datum/reagent/consumable/sugar = 8, /datum/reagent/consumable/nutriment = 2)
tastes = list("peaches" = 7, "tin" = 1)
foodtypes = FRUIT | SUGAR
/obj/item/food/canned/peaches/maint
name = "Maintenance Peaches"
desc = "I have a mouth and I must eat."
icon_state = "peachcanmaint"
trash_type = /obj/item/trash/can/food/peaches/maint
tastes = list("peaches" = 1, "tin" = 7)
/obj/item/food/crab_rangoon
name = "Crab Rangoon"
desc = "Has many names, like crab puffs, cheese won'tons, crab dumplings? Whatever you call them, they're a fabulous blast of cream cheesy crab."
icon_state = "crabrangoon"
food_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/nutriment/protein = 7, /datum/reagent/consumable/nutriment/vitamin = 5)
w_class = WEIGHT_CLASS_SMALL
tastes = list("cream cheese" = 4, "crab" = 3, "crispiness" = 2)
foodtypes = MEAT | DAIRY | GRAIN
venue_value = FOOD_PRICE_CHEAP
/obj/item/food/cornchips
name = "boritos corn chips"
desc = "Triangular corn chips. They do seem a bit bland but would probably go well with some kind of dipping sauce."
icon_state = "boritos"
trash_type = /obj/item/trash/boritos
bite_consumption = 2
food_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/cooking_oil = 2, /datum/reagent/consumable/salt = 3)
junkiness = 20
tastes = list("fried corn" = 1)
foodtypes = JUNKFOOD | FRIED
w_class = WEIGHT_CLASS_SMALL
/obj/item/food/cornchips/MakeLeaveTrash()
if(trash_type)
AddElement(/datum/element/food_trash, trash_type, FOOD_TRASH_POPABLE)
/obj/item/food/rationpack
name = "ration pack"
desc = "A square bar that sadly <i>looks</i> like chocolate, packaged in a nondescript grey wrapper. Has saved soldiers' lives before - usually by stopping bullets."
icon_state = "rationpack"
bite_consumption = 3
junkiness = 15
tastes = list("cardboard" = 3, "sadness" = 3)
foodtypes = null //Don't ask what went into them. You're better off not knowing.
food_reagents = list(/datum/reagent/consumable/nutriment/stabilized = 10, /datum/reagent/consumable/nutriment = 2) //Won't make you fat. Will make you question your sanity.
///Override for checkliked callback
/obj/item/food/rationpack/MakeEdible()
AddComponent(/datum/component/edible,\
initial_reagents = food_reagents,\
food_flags = food_flags,\
foodtypes = foodtypes,\
volume = max_volume,\
eat_time = eat_time,\
tastes = tastes,\
eatverbs = eatverbs,\
bite_consumption = bite_consumption,\
microwaved_type = microwaved_type,\
junkiness = junkiness,\
check_liked = CALLBACK(src, .proc/check_liked))
/obj/item/food/rationpack/proc/check_liked(fraction, mob/M) //Nobody likes rationpacks. Nobody.
return FOOD_DISLIKED