-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathmedicine_reagents.dm
1903 lines (1661 loc) · 68.8 KB
/
medicine_reagents.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
#define PERF_BASE_DAMAGE 0.5
/// Required strange reagent for revival.
#define REQUIRED_STRANGE_REAGENT_FOR_REVIVAL 2
///maximum volume for touch chemicals to heal with
#define TOUCH_CHEM_MAX 60
/////////////////////////////////////////////////////////////////////////////////////////
// MEDICINE REAGENTS
//////////////////////////////////////////////////////////////////////////////////////
// where all the reagents related to medicine go.
/datum/reagent/medicine
name = "Medicine"
taste_description = "bitterness"
/datum/reagent/medicine/on_mob_life(mob/living/carbon/M)
current_cycle++
holder.remove_reagent(type, metabolization_rate / M.metabolism_efficiency) //medicine reagents stay longer if you have a better metabolism
/datum/reagent/medicine/leporazine
name = "Leporazine"
description = "Leporazine will effectively regulate a patient's body temperature, ensuring it never leaves safe levels."
color = "#C8A5DC" // rgb: 200, 165, 220
/datum/reagent/medicine/leporazine/on_mob_life(mob/living/carbon/M)
if(M.bodytemperature > BODYTEMP_NORMAL)
M.adjust_bodytemperature(-40 * TEMPERATURE_DAMAGE_COEFFICIENT, BODYTEMP_NORMAL)
else if(M.bodytemperature < (BODYTEMP_NORMAL + 1))
M.adjust_bodytemperature(40 * TEMPERATURE_DAMAGE_COEFFICIENT, 0, BODYTEMP_NORMAL)
..()
/datum/reagent/medicine/adminordrazine //An OP chemical for admins
name = "Adminordrazine"
description = "It's magic. We don't have to explain it."
color = "#C8A5DC" // rgb: 200, 165, 220
can_synth = FALSE
taste_description = "badmins"
/datum/reagent/medicine/adminordrazine/on_mob_life(mob/living/carbon/M)
M.reagents.remove_all_type(/datum/reagent/toxin, 5*REM, 0, 1)
M.setCloneLoss(0, 0)
M.setOxyLoss(0, 0)
M.radiation = 0
M.heal_bodypart_damage(5,5)
M.adjustToxLoss(-5, 0, TRUE)
M.remove_status_effect(/datum/status_effect/hallucination)
REMOVE_TRAITS_NOT_IN(M, list(SPECIES_TRAIT, ROUNDSTART_TRAIT, ORGAN_TRAIT))
M.set_eye_blur(0)
M.set_blindness(0)
M.SetKnockdown(0, FALSE)
M.SetStun(0, FALSE)
M.SetUnconscious(0, FALSE)
M.SetParalyzed(0, FALSE)
M.SetImmobilized(0, FALSE)
M.silent = FALSE
M.remove_status_effect(/datum/status_effect/dizziness)
M.disgust = 0
M.remove_status_effect(/datum/status_effect/drowsiness)
M.remove_status_effect(/datum/status_effect/speech/stutter)
M.remove_status_effect(/datum/status_effect/speech/slurring)
M.remove_status_effect(/datum/status_effect/confusion)
M.SetSleeping(0, 0)
M.remove_status_effect(/datum/status_effect/jitter)
if(M.blood_volume < BLOOD_VOLUME_NORMAL(M))
M.blood_volume = BLOOD_VOLUME_NORMAL(M)
M.cure_all_traumas(TRAUMA_RESILIENCE_MAGIC)
for(var/organ in M.internal_organs)
var/obj/item/organ/O = organ
O.setOrganDamage(0)
for(var/thing in M.diseases)
var/datum/disease/D = thing
if(D.severity == DISEASE_SEVERITY_POSITIVE)
continue
D.cure()
..()
. = 1
/datum/reagent/medicine/adminordrazine/quantum_heal
name = "Quantum Medicine"
description = "Rare and experimental particles, that apparently swap the user's body with one from an alternate dimension where it's completely healthy."
taste_description = "science"
/datum/reagent/medicine/synaptizine
name = "Synaptizine"
description = "Increases resistance to stuns as well as reducing drowsiness and hallucinations."
color = "#FF00FF"
/datum/reagent/medicine/synaptizine/on_mob_life(mob/living/carbon/affected_mob)
affected_mob.adjust_drowsiness(-10 SECONDS * REM)
affected_mob.AdjustStun(-20, FALSE)
affected_mob.AdjustKnockdown(-20, FALSE)
affected_mob.AdjustUnconscious(-20, FALSE)
affected_mob.AdjustImmobilized(-20, FALSE)
affected_mob.AdjustParalyzed(-20, FALSE)
if(holder.has_reagent(/datum/reagent/toxin/mindbreaker))
holder.remove_reagent(/datum/reagent/toxin/mindbreaker, 5)
affected_mob.adjust_hallucinations(-20 SECONDS * REM)
if(prob(30))
affected_mob.adjustToxLoss(1, 0)
. = 1
..()
/datum/reagent/medicine/synaphydramine
name = "Diphen-Synaptizine"
description = "Reduces drowsiness, hallucinations, and Histamine from body."
color = "#EC536D" // rgb: 236, 83, 109
/datum/reagent/medicine/synaphydramine/on_mob_life(mob/living/carbon/M)
M.adjust_drowsiness(-10 SECONDS * REM)
if(holder.has_reagent(/datum/reagent/toxin/mindbreaker))
holder.remove_reagent(/datum/reagent/toxin/mindbreaker, 5)
if(holder.has_reagent(/datum/reagent/toxin/histamine))
holder.remove_reagent(/datum/reagent/toxin/histamine, 5)
M.adjust_hallucinations(-20 SECONDS * REM)
if(prob(30))
M.adjustToxLoss(1, 0)
. = 1
..()
/datum/reagent/medicine/inacusiate
name = "Inacusiate"
description = "Instantly restores all hearing to the patient, but does not cure deafness."
color = "#6600FF" // rgb: 100, 165, 255
/datum/reagent/medicine/inacusiate/on_mob_life(mob/living/carbon/M)
M.restoreEars()
..()
/datum/reagent/medicine/cryoxadone
name = "Cryoxadone"
description = "A chemical mixture with almost magical healing powers. Its main limitation is that the patient's body temperature must be under 270K for it to metabolise correctly."
color = "#0000C8"
taste_description = "sludge"
overdose_threshold = 100 //no chugging
/datum/reagent/medicine/cryoxadone/on_mob_life(mob/living/carbon/M)
var/power = -0.00006 * (M.bodytemperature ** 2) + 6
if(M.bodytemperature < T0C)
M.adjustOxyLoss(-3 * power, 0)
M.adjustBruteLoss(-power, 0)
M.adjustFireLoss(-power, 0)
M.adjustToxLoss(-power, 0, TRUE) //heals TOXINLOVERs
M.adjustCloneLoss(-power, 0)
if(prob(10))
M.Knockdown(2 SECONDS)
to_chat(M, span_danger("You feel woozy."))
if(prob(10))
M.drop_all_held_items()
to_chat(M, span_danger("You lose concentration."))
for(var/i in M.all_wounds)
var/datum/wound/iter_wound = i
iter_wound.on_xadone(power)
REMOVE_TRAIT(M, TRAIT_DISFIGURED, TRAIT_GENERIC) //fixes common causes for disfiguration
. = 1
metabolization_rate = REAGENTS_METABOLISM * (0.00001 * (M.bodytemperature ** 2) + 0.5)
..()
/datum/reagent/medicine/clonexadone
name = "Clonexadone"
description = "A chemical that derives from Cryoxadone. It specializes in healing clone damage, but nothing else."
color = "#0000C8"
taste_description = "muscle"
metabolization_rate = 1.5 * REAGENTS_METABOLISM
/datum/reagent/medicine/clonexadone/on_mob_life(mob/living/carbon/M)
M.adjustCloneLoss(-4*REM, 0)
..()
/datum/reagent/medicine/pyroxadone
name = "Pyroxadone"
description = "A mixture of cryoxadone and slime jelly, that apparently inverses the requirement for its activation."
color = "#f7832a"
taste_description = "spicy jelly"
/datum/reagent/medicine/pyroxadone/on_mob_life(mob/living/carbon/M)
if(M.bodytemperature > BODYTEMP_HEAT_DAMAGE_LIMIT)
var/power = 0
switch(M.bodytemperature)
if(BODYTEMP_HEAT_DAMAGE_LIMIT to 400)
power = 2
if(400 to 460)
power = 3
else
power = 5
if(M.on_fire)
power *= 2
M.adjustOxyLoss(-2 * power, 0)
M.adjustBruteLoss(-power, 0)
M.adjustFireLoss(-1.5 * power, 0)
M.adjustToxLoss(-power, 0, TRUE)
M.adjustCloneLoss(-power, 0)
for(var/i in M.all_wounds)
var/datum/wound/iter_wound = i
iter_wound.on_xadone(power)
REMOVE_TRAIT(M, TRAIT_DISFIGURED, TRAIT_GENERIC)
. = 1
..()
/datum/reagent/medicine/rezadone
name = "Rezadone"
description = "A powder derived from fish toxin, Rezadone can effectively treat genetic damage as well as restoring minor wounds. Overdose will cause intense nausea and minor toxin damage."
reagent_state = SOLID
color = "#669900" // rgb: 102, 153, 0
overdose_threshold = 30
taste_description = "fish"
/datum/reagent/medicine/rezadone/on_mob_life(mob/living/carbon/M)
M.adjustCloneLoss(-10) //Rezadone is almost always used over cryoxadone. Hopefully this will change that.
M.heal_bodypart_damage(1,1)
REMOVE_TRAIT(M, TRAIT_DISFIGURED, TRAIT_GENERIC)
..()
. = 1
/datum/reagent/medicine/rezadone/overdose_process(mob/living/M)
M.adjustToxLoss(1, 0)
M.adjust_dizzy(5)
M.adjust_jitter(5 SECONDS)
..()
. = 1
/datum/reagent/medicine/spaceacillin
name = "Spaceacillin"
description = "Spaceacillin will prevent a patient from conventionally spreading any diseases they are currently infected with. Also reduces infection in serious burns."
color = "#C8A5DC" // rgb: 200, 165, 220
metabolization_rate = 0.1 * REAGENTS_METABOLISM
//Goon Chems. Ported mainly from Goonstation. Easily mixable (or not so easily) and provide a variety of effects.
/datum/reagent/medicine/silver_sulfadiazine
name = "Silver Sulfadiazine"
description = "If used in touch-based applications, immediately restores burn wounds as well as restoring more over time. The chemical will heal up to 45 points of damage at 45 units applied. If ingested through other means, deals minor toxin damage."
reagent_state = LIQUID
color = "#C8A5DC"
/datum/reagent/medicine/silver_sulfadiazine/reaction_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = 1, permeability = 1)
if(iscarbon(M) && M.stat != DEAD)
if(!(methods & (PATCH|TOUCH)))
M.adjustToxLoss(0.5*reac_volume*permeability)
if(show_message && permeability)
to_chat(M, span_warning("You don't feel so good..."))
else if(M.getFireLoss())
var/datum/reagent/S = M.reagents?.get_reagent(/datum/reagent/medicine/silver_sulfadiazine)
var/heal_amt = clamp(reac_volume * permeability, 0, TOUCH_CHEM_MAX * 0.75 - S?.volume)
M.adjustFireLoss(-heal_amt)
if(show_message)
to_chat(M, span_danger("You feel your burns healing! It stings like hell!"))
M.emote("scream")
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "painful_medicine", /datum/mood_event/painful_medicine)
if(methods & TOUCH)
M.reagents.add_reagent(/datum/reagent/medicine/silver_sulfadiazine, reac_volume * permeability)
..()
/datum/reagent/medicine/silver_sulfadiazine/on_mob_life(mob/living/carbon/M)
M.adjustFireLoss(-0.5*REM, 0)
..()
. = 1
/datum/reagent/medicine/oxandrolone
name = "Oxandrolone"
description = "Stimulates the healing of severe burns. Extremely rapidly heals severe burns and slowly heals minor ones. Overdose will worsen existing burns."
reagent_state = LIQUID
color = "#f7ffa5"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 25
/datum/reagent/medicine/oxandrolone/on_mob_life(mob/living/carbon/M)
if(M.getFireLoss() > 25)
M.adjustFireLoss(-4*REM, 0) //Twice as effective as silver sulfadiazine for severe burns
else
M.adjustFireLoss(-0.5*REM, 0) //But only a quarter as effective for more minor ones
..()
. = 1
/datum/reagent/medicine/oxandrolone/overdose_process(mob/living/M)
if(M.getFireLoss()) //It only makes existing burns worse
M.adjustFireLoss(4.5*REM, FALSE, FALSE, BODYPART_ORGANIC) // it's going to be healing either 4 or 0.5
. = 1
..()
/datum/reagent/medicine/styptic_powder
name = "Styptic Powder"
description = "If used in touch-based applications, immediately restores bruising as well as restoring more over time. The chemical will heal up to 45 points of damage at 45 units applied. If ingested through other means, deals minor toxin damage."
reagent_state = LIQUID
color = "#FF9696"
/datum/reagent/medicine/styptic_powder/reaction_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = TRUE, permeability = 1)
if(iscarbon(M) && M.stat != DEAD)
if(!(methods & (PATCH|TOUCH)))
M.adjustToxLoss(0.5*reac_volume*permeability)
if(show_message && permeability)
to_chat(M, span_warning("You don't feel so good..."))
else if(M.getBruteLoss())
var/datum/reagent/S = M.reagents?.get_reagent(/datum/reagent/medicine/styptic_powder)
var/heal_amt = clamp(reac_volume * permeability, 0, TOUCH_CHEM_MAX * 0.75 - S?.volume)
M.adjustBruteLoss(-heal_amt)
if(show_message)
to_chat(M, span_danger("You feel your bruises healing! It stings like hell!"))
M.emote("scream")
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "painful_medicine", /datum/mood_event/painful_medicine)
if(methods & TOUCH)
M.reagents.add_reagent(/datum/reagent/medicine/styptic_powder, reac_volume * permeability)
..()
/datum/reagent/medicine/styptic_powder/on_mob_life(mob/living/carbon/M)
M.adjustBruteLoss(-0.5*REM, 0)
..()
. = 1
/datum/reagent/medicine/salglu_solution
name = "Saline-Glucose Solution"
description = "Has a 33% chance per metabolism cycle to heal brute and burn damage. Can be used as a temporary blood substitute, as well as slowly speeding blood regeneration."
reagent_state = LIQUID
color = "#DCDCDC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 60
taste_description = "sweetness and salt"
var/last_added = 0
var/max_blood_decrement = 10 //Yogs -- How much less than BLOOD_VOLUME_NORMAL(M) is the point where salglu stops refilling blood?
//^ Used so that normal blood regeneration can continue with salglu active
var/extra_regen = 0.25 // in addition to acting as temporary blood, also add this much to their actual blood per tick
/datum/reagent/medicine/salglu_solution/on_mob_life(mob/living/carbon/M)
if(last_added)
M.blood_volume -= last_added
last_added = 0
var/max_blood = BLOOD_VOLUME_NORMAL(M) - max_blood_decrement // The highest blood volume that salglu will work at.
if(M.blood_volume < max_blood)
var/amount_to_add = min(M.blood_volume, volume*5)
var/new_blood_level = min(M.blood_volume + amount_to_add, max_blood)
last_added = new_blood_level - M.blood_volume
M.blood_volume = new_blood_level + extra_regen
if(prob(33))
M.adjustBruteLoss(-0.5*REM, 0)
M.adjustFireLoss(-0.5*REM, 0)
. = TRUE
..()
/datum/reagent/medicine/salglu_solution/overdose_process(mob/living/M)
if(prob(3))
to_chat(M, "<span class = 'warning'>You feel salty.</span>")
holder.add_reagent(/datum/reagent/consumable/sodiumchloride, 1)
holder.remove_reagent(/datum/reagent/medicine/salglu_solution, 0.5)
else if(prob(3))
to_chat(M, "<span class = 'warning'>You feel sweet.</span>")
holder.add_reagent(/datum/reagent/consumable/sugar, 1)
holder.remove_reagent(/datum/reagent/medicine/salglu_solution, 0.5)
if(prob(33))
M.adjustBruteLoss(0.5*REM, FALSE, FALSE, BODYPART_ORGANIC)
M.adjustFireLoss(0.5*REM, FALSE, FALSE, BODYPART_ORGANIC)
. = TRUE
..()
/datum/reagent/medicine/mine_salve
name = "Miner's Salve"
description = "A powerful painkiller. Restores bruising and burns in addition to making the patient believe they are fully healed. Also great for treating severe burn wounds in a pinch."
reagent_state = LIQUID
color = "#6D6374"
metabolization_rate = 0.4 * REAGENTS_METABOLISM
/datum/reagent/medicine/mine_salve/on_mob_life(mob/living/carbon/C)
C.hal_screwyhud = SCREWYHUD_HEALTHY
C.adjustBruteLoss(-0.25*REM, 0)
C.adjustFireLoss(-0.25*REM, 0)
..()
return TRUE
/datum/reagent/medicine/mine_salve/reaction_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = TRUE, permeability = 1)
if(iscarbon(M) && M.stat != DEAD)
if(!(methods & (PATCH|TOUCH)))
M.adjust_nutrition(-5)
if(show_message)
to_chat(M, span_warning("Your stomach feels empty and cramps!"))
else
var/mob/living/carbon/C = M
for(var/s in C.surgeries)
var/datum/surgery/S = s
S.success_multiplier = max(0.1, S.success_multiplier)
// +10% success propability on each step, useful while operating in less-than-perfect conditions
if(show_message)
to_chat(M, span_danger("You feel your injuries fade away to nothing!") )
..()
/datum/reagent/medicine/mine_salve/on_mob_end_metabolize(mob/living/M)
if(iscarbon(M))
var/mob/living/carbon/N = M
N.hal_screwyhud = SCREWYHUD_NONE
..()
/datum/reagent/medicine/synthflesh
name = "Synthflesh"
description = "Has a 100% chance of instantly healing brute and burn damage on corpses. The chemical will heal up to 120 points of damage at 60 units applied. Touch application only."
reagent_state = LIQUID
color = "#FFEBEB"
/datum/reagent/medicine/synthflesh/on_mob_add(mob/living/L)
if(ishuman(L))
var/mob/living/carbon/human/dude = L
if(dude?.dna?.species && istype(dude.dna.species, /datum/species/ipc/self/insurgent))
var/datum/species/ipc/self/insurgent/sneaky = dude.dna.species
sneaky.assume_disguise(dude)
. = ..()
/datum/reagent/medicine/synthflesh/reaction_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = TRUE, permeability = 1)
var/can_heal = FALSE
if(iscarbon(M))
var/mob/living/carbon/C = M
if (M.stat == DEAD)
can_heal = TRUE
if((methods & (PATCH|TOUCH)) && can_heal)
for(var/i in C.all_wounds)
var/datum/wound/iter_wound = i
iter_wound.on_synthflesh(reac_volume)
var/datum/reagent/S = M.reagents.get_reagent(/datum/reagent/medicine/synthflesh)
if(!ishuman(M))
M.adjustBruteLoss(-1.25 * reac_volume)
M.adjustFireLoss(-1.25 * reac_volume)
else
var/heal_amt = clamp(reac_volume, 0, TOUCH_CHEM_MAX - S?.volume)
M.adjustBruteLoss(-2*heal_amt)
M.adjustFireLoss(-2*heal_amt)
if(methods & TOUCH)
M.reagents.add_reagent(/datum/reagent/medicine/synthflesh, reac_volume) // no permeability modifier because it only works on dead bodies anyway and would just be an inconvenience
if(HAS_TRAIT_FROM(M, TRAIT_HUSK, BURN) && (S?.volume + reac_volume >= SYNTHFLESH_UNHUSK_AMOUNT && M.getFireLoss() <= UNHUSK_DAMAGE_THRESHOLD) && M.cure_husk(BURN)) //cure husk will return true if it cures the final husking source
M.visible_message(span_notice("The synthflesh soaks into [M]'s burns and they regain their natural color!"))
..()
/datum/reagent/medicine/charcoal
name = "Charcoal"
description = "Heals toxin damage as well as slowly removing any other chemicals the patient has in their bloodstream."
reagent_state = LIQUID
color = "#000000"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
taste_description = "ash"
/datum/reagent/medicine/charcoal/on_mob_life(mob/living/carbon/M)
M.adjustToxLoss(-2*REM, 0)
. = 1
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
M.reagents.remove_reagent(R.type,0.5)
..()
/datum/reagent/medicine/system_cleaner
name = "System Cleaner"
description = "Neutralizes harmful chemical compounds inside synthetic systems."
reagent_state = LIQUID
color = "#F1C40F"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
compatible_biotypes = MOB_ROBOTIC
/datum/reagent/medicine/system_cleaner/reaction_mob(mob/living/L, methods=TOUCH, reac_volume, show_message = TRUE, permeability = 1)
if(!(L.mob_biotypes & MOB_ORGANIC))
for(var/thing in L.diseases) // can clean viruses from fully synthetic hosts
var/datum/disease/D = thing
D.cure()
/datum/reagent/medicine/system_cleaner/on_mob_life(mob/living/M)
M.adjustToxLoss(-2*REM, 0)
. = 1
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
M.reagents.remove_reagent(R.type,1)
..()
/datum/reagent/medicine/liquid_solder
name = "Liquid Solder"
description = "Repairs brain damage in synthetics."
color = "#727272"
taste_description = "metallic"
compatible_biotypes = MOB_ROBOTIC
/datum/reagent/medicine/liquid_solder/on_mob_life(mob/living/M)
var/obj/item/organ/O = M.getorganslot(ORGAN_SLOT_BRAIN)
if(!(O.organ_flags & ORGAN_SYNTHETIC)) // don't heal organic brains in partially synthetic mobs
return ..()
M.adjustOrganLoss(ORGAN_SLOT_BRAIN, -3*REM)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(prob(10) && C.has_trauma_type(BRAIN_TRAUMA_SPECIAL))
C.cure_trauma_type(BRAIN_TRAUMA_SPECIAL)
else if(prob(10) && C.has_trauma_type(BRAIN_TRAUMA_MILD))
C.cure_trauma_type(BRAIN_TRAUMA_MILD)
..()
/datum/reagent/medicine/omnizine
name = "Omnizine"
description = "Slowly heals all damage types. Overdose will cause damage in all types instead."
reagent_state = LIQUID
color = "#DCDCDC"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
var/healing = 0.5
overdose_threshold = 30
compatible_biotypes = ALL_BIOTYPES
/datum/reagent/medicine/omnizine/on_mob_life(mob/living/carbon/M)
M.adjustToxLoss(-healing*REM, 0)
M.adjustOxyLoss(-healing*REM, 0)
M.adjustBruteLoss(-healing*REM, 0)
M.adjustFireLoss(-healing*REM, 0)
..()
. = 1
/datum/reagent/medicine/omnizine/overdose_process(mob/living/M)
M.adjustToxLoss(1.5*REM, 0)
M.adjustOxyLoss(1.5*REM, 0)
M.adjustBruteLoss(1.5*REM, FALSE, FALSE, BODYPART_ORGANIC)
M.adjustFireLoss(1.5*REM, FALSE, FALSE, BODYPART_ORGANIC)
..()
. = 1
/datum/reagent/medicine/omnizine/protozine
name = "Protozine"
description = "A less environmentally friendly and somewhat weaker variant of omnizine."
color = "#d8c7b7"
healing = 0.2
/datum/reagent/medicine/calomel
name = "Calomel"
description = "Quickly purges the body of all chemicals. Toxin damage is dealt if the patient is in good condition."
reagent_state = LIQUID
color = "#19C832"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
taste_description = "acid"
/datum/reagent/medicine/calomel/on_mob_life(mob/living/carbon/M)
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
M.reagents.remove_reagent(R.type,5)
if(M.health > 20)
M.adjustToxLoss(2.5*REM, 0)
. = 1
..()
/datum/reagent/medicine/potass_iodide
name = "Potassium Iodide"
description = "Efficiently restores low radiation damage."
reagent_state = LIQUID
color = "#14FF3C"
metabolization_rate = 2 * REAGENTS_METABOLISM
/datum/reagent/medicine/potass_iodide/on_mob_life(mob/living/carbon/M)
if(M.radiation > 0)
M.radiation -= min(M.radiation, 8)
..()
/datum/reagent/medicine/pen_acid
name = "Pentetic Acid"
description = "Reduces massive amounts of radiation and toxin damage while purging other chemicals from the body."
reagent_state = LIQUID
color = "#E6FFF0"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
/datum/reagent/medicine/pen_acid/on_mob_life(mob/living/carbon/M)
M.radiation -= max(M.radiation-RAD_MOB_SAFE, 0)/50
M.adjustToxLoss(-2*REM, 0)
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
M.reagents.remove_reagent(R.type,2)
..()
. = 1
/datum/reagent/medicine/sal_acid
name = "Salicylic Acid"
description = "Stimulates the healing of severe bruises. Extremely rapidly heals severe bruising and slowly heals minor ones. Overdose will worsen existing bruising."
reagent_state = LIQUID
color = "#D2D2D2"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 25
/datum/reagent/medicine/sal_acid/on_mob_life(mob/living/carbon/M)
if(M.getBruteLoss() > 25)
M.adjustBruteLoss(-4*REM, 0) //Twice as effective as styptic powder for severe bruising
else
M.adjustBruteLoss(-0.5*REM, 0) //But only a quarter as effective for more minor ones
..()
. = 1
/datum/reagent/medicine/sal_acid/overdose_process(mob/living/M)
if(M.getBruteLoss()) //It only makes existing bruises worse
M.adjustBruteLoss(4.5*REM, FALSE, FALSE, BODYPART_ORGANIC) // it's going to be healing either 4 or 0.5
. = 1
..()
/datum/reagent/medicine/salbutamol
name = "Salbutamol"
description = "Rapidly restores oxygen deprivation as well as preventing more of it to an extent."
reagent_state = LIQUID
color = "#00FFFF"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
/datum/reagent/medicine/salbutamol/on_mob_life(mob/living/carbon/M)
M.adjustOxyLoss(-3*REM, 0)
if(M.losebreath >= 4)
M.losebreath -= 2
..()
. = 1
/datum/reagent/medicine/perfluorodecalin
name = "Perfluorodecalin"
description = "Restores oxygen deprivation while producing a lesser amount of toxic byproducts. Both scale with exposure to the drug and current amount of oxygen deprivation. Overdose causes toxic byproducts regardless of oxygen deprivation."
reagent_state = LIQUID
color = "#FF6464"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 35 // at least 2 full syringes +some, this stuff is nasty if left in for long
/datum/reagent/medicine/perfluorodecalin/on_mob_life(mob/living/carbon/human/M)
var/oxycalc = 2.5*REM*current_cycle
if(!overdosed)
oxycalc = min(oxycalc,M.getOxyLoss()+PERF_BASE_DAMAGE) //if NOT overdosing, we lower our toxdamage to only the damage we actually healed with a minimum of 0.5. IE if we only heal 10 oxygen damage but we COULD have healed 20, we will only take toxdamage for the 10. We would take the toxdamage for the extra 10 if we were overdosing.
M.adjustOxyLoss(-oxycalc, 0)
M.adjustToxLoss(oxycalc/2.5, 0)
if(prob(current_cycle) && M.losebreath)
M.losebreath--
..()
return TRUE
/datum/reagent/medicine/perfluorodecalin/overdose_process(mob/living/M)
metabolization_rate += 1
return ..()
/datum/reagent/medicine/ephedrine
name = "Ephedrine"
description = "Increases stun resistance and movement speed. Overdose deals toxin damage and inhibits breathing."
reagent_state = LIQUID
color = "#D2FFFA"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 30
addiction_threshold = 25
/datum/reagent/medicine/ephedrine/on_mob_metabolize(mob/living/L)
..()
L.add_movespeed_modifier(type, update=TRUE, priority=100, multiplicative_slowdown=-0.85, blacklisted_movetypes=(FLYING|FLOATING))
/datum/reagent/medicine/ephedrine/on_mob_end_metabolize(mob/living/L)
L.remove_movespeed_modifier(type)
..()
/datum/reagent/medicine/ephedrine/on_mob_life(mob/living/carbon/M)
if(prob(20) && iscarbon(M))
var/obj/item/I = M.get_active_held_item()
if(I && M.dropItemToGround(I))
to_chat(M, "<span class ='notice'>Your hands spaz out and you drop what you were holding!</span>")
M.adjust_jitter(10 SECONDS)
M.AdjustAllImmobility(-20, FALSE)
M.adjustStaminaLoss(-1*REM, FALSE)
..()
return TRUE
/datum/reagent/medicine/ephedrine/overdose_process(mob/living/M)
if(prob(2) && iscarbon(M))
var/datum/disease/D = new /datum/disease/heart_failure
M.ForceContractDisease(D)
to_chat(M, span_userdanger("You're pretty sure you just felt your heart stop for a second there.."))
M.playsound_local(M, 'sound/effects/singlebeat.ogg', 100, 0)
if(prob(7))
to_chat(M, span_notice("[pick("Your head pounds.", "You feel a tight pain in your chest.", "You find it hard to stay still.", "You feel your heart practically beating out of your chest.")]"))
if(prob(33))
M.adjustToxLoss(1*REM, 0)
M.losebreath++
. = 1
return TRUE
/datum/reagent/medicine/ephedrine/addiction_act_stage1(mob/living/M)
if(prob(3) && iscarbon(M))
M.visible_message(span_danger("[M] starts having a seizure!"), span_userdanger("You have a seizure!"))
M.Unconscious(10 SECONDS)
M.adjust_jitter(350 SECONDS)
if(prob(33))
M.adjustToxLoss(2*REM, 0)
M.losebreath += 2
. = 1
..()
/datum/reagent/medicine/ephedrine/addiction_act_stage2(mob/living/M)
if(prob(6) && iscarbon(M))
M.visible_message(span_danger("[M] starts having a seizure!"), span_userdanger("You have a seizure!"))
M.Unconscious(10 SECONDS)
M.adjust_jitter(350 SECONDS)
if(prob(33))
M.adjustToxLoss(3*REM, 0)
M.losebreath += 3
. = 1
..()
/datum/reagent/medicine/ephedrine/addiction_act_stage3(mob/living/M)
if(prob(12) && iscarbon(M))
M.visible_message(span_danger("[M] starts having a seizure!"), span_userdanger("You have a seizure!"))
M.Unconscious(100)
M.adjust_jitter(350)
if(prob(33))
M.adjustToxLoss(4*REM, 0)
M.losebreath += 4
. = 1
..()
/datum/reagent/medicine/ephedrine/addiction_act_stage4(mob/living/M)
if(prob(24) && iscarbon(M))
M.visible_message(span_danger("[M] starts having a seizure!"), span_userdanger("You have a seizure!"))
M.Unconscious(100)
M.adjust_jitter(350)
if(prob(33))
M.adjustToxLoss(5*REM, 0)
M.losebreath += 5
. = 1
..()
/datum/reagent/medicine/diphenhydramine
name = "Diphenhydramine"
description = "Rapidly purges the body of Histamine and reduces jitteriness. Slight chance of causing drowsiness. Overdosing will cause hallucinations."
reagent_state = LIQUID
color = "#64FFE6"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 30
/datum/reagent/medicine/diphenhydramine/on_mob_life(mob/living/carbon/M)
if(prob(10))
M.adjust_drowsiness(1 SECONDS)
M.adjust_jitter(-1 SECONDS)
M.reagents.remove_reagent(/datum/reagent/toxin/histamine,3)
..()
/datum/reagent/medicine/diphenhydramine/overdose_process(mob/living/M)
M.set_drugginess(15)
M.adjust_hallucinations(20 SECONDS * REM)
..()
/datum/reagent/medicine/morphine
name = "Morphine"
description = "A painkiller that allows the patient to move at full speed even in bulky objects. Causes drowsiness and eventually unconsciousness in high doses. Overdose will cause a variety of effects, ranging from minor to lethal."
reagent_state = LIQUID
color = "#A9FBFB"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 30
addiction_threshold = 25
/datum/reagent/medicine/morphine/on_mob_metabolize(mob/living/L)
..()
L.ignore_slowdown(type)
ADD_TRAIT(L, TRAIT_SURGERY_PREPARED, type)
SEND_SIGNAL(L, COMSIG_ADD_MOOD_EVENT, "[type]_high", /datum/mood_event/high)
/datum/reagent/medicine/morphine/on_mob_end_metabolize(mob/living/L)
L.unignore_slowdown(type)
REMOVE_TRAIT(L, TRAIT_SURGERY_PREPARED, type)
SEND_SIGNAL(L, COMSIG_CLEAR_MOOD_EVENT, "[type]_high")
..()
/datum/reagent/medicine/morphine/on_mob_life(mob/living/carbon/M)
switch(current_cycle)
if(11)
to_chat(M, span_warning("You start to feel tired...") )
if(12 to 24)
M.adjust_drowsiness(1 SECONDS)
if(24 to INFINITY)
M.Sleeping(40, 0)
. = 1
if(M.stat > CONSCIOUS)
M.adjustBruteLoss(-1*REM)
M.adjustFireLoss(-1*REM)
M.adjustOxyLoss(-1*REM)
..()
/datum/reagent/medicine/morphine/overdose_process(mob/living/M)
if(prob(33))
M.drop_all_held_items()
M.adjust_dizzy(2)
M.adjust_jitter(2 SECONDS)
..()
/datum/reagent/medicine/morphine/addiction_act_stage1(mob/living/M)
if(prob(33))
M.drop_all_held_items()
M.adjust_jitter(2 SECONDS)
..()
/datum/reagent/medicine/morphine/addiction_act_stage2(mob/living/M)
if(prob(33))
M.drop_all_held_items()
M.adjustToxLoss(1*REM, 0)
. = 1
M.adjust_dizzy(3)
M.adjust_jitter(3 SECONDS)
..()
/datum/reagent/medicine/morphine/addiction_act_stage3(mob/living/M)
if(prob(33))
M.drop_all_held_items()
M.adjustToxLoss(2*REM, 0)
. = 1
M.adjust_dizzy(4)
M.adjust_jitter(4 SECONDS)
..()
/datum/reagent/medicine/morphine/addiction_act_stage4(mob/living/M)
if(prob(33))
M.drop_all_held_items()
M.adjustToxLoss(3*REM, 0)
. = 1
M.adjust_dizzy(5)
M.adjust_jitter(5 SECONDS)
..()
/datum/reagent/medicine/oculine
name = "Oculine"
description = "Quickly restores eye damage, cures nearsightedness, and has a chance to restore vision to the blind."
reagent_state = LIQUID
color = "#FFFFFF"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
taste_description = "dull toxin"
/datum/reagent/medicine/oculine/on_mob_life(mob/living/carbon/M)
var/obj/item/organ/eyes/eyes = M.getorganslot(ORGAN_SLOT_EYES)
if (!eyes)
return
eyes.applyOrganDamage(-2)
if(HAS_TRAIT_FROM(M, TRAIT_BLIND, EYE_DAMAGE))
if(prob(20))
to_chat(M, span_warning("Your vision slowly returns..."))
M.cure_blind(EYE_DAMAGE)
M.cure_nearsighted(EYE_DAMAGE)
M.adjust_eye_blur(35)
else if(HAS_TRAIT_FROM(M, TRAIT_NEARSIGHT, EYE_DAMAGE))
to_chat(M, span_warning("The blackness in your peripheral vision fades."))
M.cure_nearsighted(EYE_DAMAGE)
M.adjust_eye_blur(10)
else if(M.eye_blind || M.eye_blurry)
M.set_blindness(0)
M.set_eye_blur(0)
..()
/datum/reagent/medicine/atropine
name = "Atropine"
description = "If a patient is in critical condition, rapidly heals all damage types as well as regulating oxygen in the body. Excellent for stabilizing wounded patients."
reagent_state = LIQUID
color = "#000000"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 35
/datum/reagent/medicine/atropine/on_mob_life(mob/living/carbon/M)
if(M.health <= M.crit_threshold)
M.adjustToxLoss(-2*REM, 0)
M.adjustBruteLoss(-2*REM, 0)
M.adjustFireLoss(-2*REM, 0)
M.adjustOxyLoss(-5*REM, 0)
. = 1
M.losebreath = 0
if(prob(20))
M.adjust_dizzy(5)
M.adjust_jitter(5 SECONDS)
..()
/datum/reagent/medicine/atropine/overdose_process(mob/living/M)
M.adjustToxLoss(0.5*REM, 0)
. = 1
M.adjust_dizzy(1)
M.adjust_jitter(1 SECONDS)
..()
/datum/reagent/medicine/epinephrine
name = "Epinephrine"
description = "Minor boost to stun resistance. Slowly heals damage if a patient is in critical condition, as well as regulating oxygen loss. Overdose causes weakness and toxin damage."
reagent_state = LIQUID
color = "#D2FFFA"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 30
/datum/reagent/medicine/epinephrine/on_mob_metabolize(mob/living/carbon/M)
..()
ADD_TRAIT(M, TRAIT_NOCRITDAMAGE, type)
/datum/reagent/medicine/epinephrine/on_mob_end_metabolize(mob/living/carbon/M)
REMOVE_TRAIT(M, TRAIT_NOCRITDAMAGE, type)
..()
/datum/reagent/medicine/epinephrine/on_mob_life(mob/living/carbon/M)
if(M.health <= M.crit_threshold)
M.adjustToxLoss(-0.5*REM, 0)
M.adjustBruteLoss(-0.5*REM, 0)
M.adjustFireLoss(-0.5*REM, 0)
M.adjustOxyLoss(-0.5*REM, 0)
if(M.losebreath >= 4)
M.losebreath = floor(M.losebreath * 0.9)
if(M.losebreath < 0)
M.losebreath = 0
M.adjustStaminaLoss(-0.5*REM, 0)
. = 1
if(prob(20))
M.AdjustAllImmobility(-20, FALSE)
..()
/datum/reagent/medicine/epinephrine/overdose_process(mob/living/M)
if(prob(33))
M.adjustStaminaLoss(2.5*REM, 0)
M.adjustToxLoss(1*REM, 0)
M.losebreath++
. = 1
..()
/datum/reagent/medicine/strange_reagent
name = "Strange Reagent"
description = "A miracle drug capable of bringing the dead back to life, at a heavy cost to their cellular makeup. Only functions when applied by patch or spray, if the target has less than 100 brute and burn damage and hasn't been husked. Causes slight damage to the living."
reagent_state = LIQUID
color = "#A0E85E"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
taste_description = "magnets"
/datum/reagent/medicine/strange_reagent/reaction_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = TRUE, permeability = 1)
var/datum/reagent/S = M.reagents?.get_reagent(/datum/reagent/medicine/strange_reagent)
if((S?.volume + reac_volume) < REQUIRED_STRANGE_REAGENT_FOR_REVIVAL)
M.visible_message(span_warning("[M]'s body shivers slightly, maybe the dose wasn't enough..."))
return ..()
if(M.stat == DEAD)
if(M.suiciding || M.hellbound || ismegafauna(M) || isjunglealpha(M)) //they are never coming back
M.visible_message(span_warning("[M]'s body does not react..."))
return
if(iscarbon(M) && (M.getBruteLoss() + M.getFireLoss() >= 100 || HAS_TRAIT(M, TRAIT_HUSK))) //body is too damaged to be revived
M.visible_message(span_warning("[M]'s body convulses a bit, and then falls still once more."))
M.do_jitter_animation(10)
return
else
M.visible_message(span_warning("[M]'s body starts convulsing!"))
M.notify_ghost_cloning(source = M)
M.do_jitter_animation(10)
addtimer(CALLBACK(M, TYPE_PROC_REF(/mob/living/carbon, do_jitter_animation), 10), 40) //jitter immediately, then again after 4 and 8 seconds
addtimer(CALLBACK(M, TYPE_PROC_REF(/mob/living/carbon, do_jitter_animation), 10), 80)
addtimer(CALLBACK(M, TYPE_PROC_REF(/mob/living, do_strange_reagent_revival)), 10 SECONDS)
..()
/datum/reagent/medicine/strange_reagent/on_mob_life(mob/living/carbon/M)
M.adjustBruteLoss(0.5*REM, 0)
M.adjustFireLoss(0.5*REM, 0)
..()
. = 1
/datum/reagent/medicine/mannitol
name = "Mannitol"
description = "Efficiently restores brain damage."
color = "#DCDCFF"
/datum/reagent/medicine/mannitol/on_mob_life(mob/living/carbon/C)
C.adjustOrganLoss(ORGAN_SLOT_BRAIN, (holder.has_reagent(/datum/reagent/drug/methamphetamine) ? 0 : -2)*REM)
..()
/datum/reagent/medicine/neurine
name = "Neurine"
description = "Reacts with neural tissue, helping reform damaged connections. Can cure minor traumas."
color = "#EEFF8F"
/datum/reagent/medicine/neurine/on_mob_life(mob/living/carbon/C)
if(holder.has_reagent(/datum/reagent/consumable/ethanol/neurotoxin))
holder.remove_reagent(/datum/reagent/consumable/ethanol/neurotoxin, 5)
if(prob(15))
C.cure_trauma_type(resilience = TRAUMA_RESILIENCE_BASIC)
..()
/datum/reagent/medicine/mutadone
name = "Mutadone"
description = "Removes jitteriness and restores genetic defects."
color = "#5096C8"
taste_description = "acid"
/datum/reagent/medicine/mutadone/on_mob_life(mob/living/carbon/M)
M.remove_status_effect(/datum/status_effect/jitter)
if(M.has_dna())
M.dna.remove_all_mutations(list(MUT_NORMAL, MUT_EXTRA), TRUE)
if(!QDELETED(M)) //We were a monkey, now a human
..()
/datum/reagent/medicine/antihol
name = "Antihol"
description = "Purges alcoholic substance from the patient's body and eliminates its side effects."
color = "#00B4C8"
taste_description = "raw egg"
/// All status effects we remove on metabolize.
/// Does not include drunk (despite what you may think) as that's decresed gradually
var/static/list/status_effects_to_clear = list(
/datum/status_effect/confusion,
/datum/status_effect/dizziness,
/datum/status_effect/drowsiness,
/datum/status_effect/speech/slurring/drunk,
)
/datum/reagent/medicine/antihol/on_mob_life(mob/living/carbon/affected_mob)
for(var/effect in status_effects_to_clear)
affected_mob.remove_status_effect(effect)
affected_mob.reagents.remove_all_type(/datum/reagent/consumable/ethanol, 3*REM, 0, 1)
affected_mob.adjustToxLoss(-0.2*REM, 0)
affected_mob.adjust_drunk_effect(-10 * REM)