Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit a2e8c24

Browse files
authored
allergy quirk (#22352)
1 parent b8d791e commit a2e8c24

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

code/datums/traits/negative.dm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -621,26 +621,25 @@
621621
return
622622
SEND_SIGNAL(quirk_holder, COMSIG_ADD_MOOD_EVENT, "wrong_cigs", /datum/mood_event/wrong_brand)
623623

624-
625624
/datum/quirk/junkie/drunkard
626625
name = "Drunkard"
627626
desc = "In space there's no such thing as day drinking."
628-
icon = "beer"
627+
icon = "beer"
629628
value = -2
630629
mood_quirk = TRUE
631630
gain_text = span_danger("You could really go for a stiff drink right about now.")
632631
lose_text = span_notice("You no longer feel dependent on alcohol to function.")
633632
medical_record_text = "Patient is known to be dependent on alcohol."
634633
reagent_type = /datum/reagent/consumable/ethanol
635634
junkie_warning = "You suddenly feel like you need another drink..."
636-
635+
637636
/datum/quirk/junkie/drunkard/on_spawn()
638637
var/mob/living/carbon/human/H = quirk_holder
639638
H.reagents.add_reagent(/datum/reagent/consumable/ethanol, 20)
640639
drug_container_type = pick(/obj/item/reagent_containers/food/drinks/beer/light/plastic)
641640
. = ..()
642641

643-
642+
644643
/datum/quirk/junkie/drunkard/check_quirk(datum/preferences/prefs)
645644
var/datum/species/species_type = prefs.read_preference(/datum/preference/choiced/species)
646645
var/disallowed_trait = !(initial(species_type.inherent_biotypes) & MOB_ORGANIC) //if you can't process organic chems you couldn't get addicted in the first place
@@ -668,7 +667,6 @@
668667
mob_trait = TRAIT_ALLERGIC
669668
gain_text = span_danger("You remember your allergic reaction to a common medicine.")
670669
lose_text = span_notice("You no longer are allergic to medicine.")
671-
medical_record_text = "Patient has a severe allergic reaction to a common medicine."
672670
var/allergy_chem_list = list( /datum/reagent/medicine/inacusiate,
673671
/datum/reagent/medicine/silver_sulfadiazine,
674672
/datum/reagent/medicine/styptic_powder,
@@ -696,6 +694,7 @@
696694
var/datum/reagent/allergy = GLOB.chemical_reagents_list[reagent_id]
697695
to_chat(quirk_holder, span_danger("You remember you are allergic to [allergy.name]."))
698696
quirk_holder.allergies += allergy
697+
medical_record_text = "Patient has a severe allergic reaction to [allergy.name]."
699698

700699
/datum/quirk/allergic/on_process()
701700
var/mob/living/carbon/H = quirk_holder
@@ -847,7 +846,7 @@
847846
var/datum/dna/holder = quirk_holder?.has_dna()
848847
if(holder)
849848
holder.features -= TRAIT_SHORT_TELOMERES
850-
849+
851850
/datum/quirk/telomeres_short/transfer_mob(mob/living/to_mob)
852851
. = ..()
853852
var/datum/dna/holder = quirk_holder?.has_dna()

0 commit comments

Comments
 (0)