Add smoking quirk realism (#62662)

This commit is contained in:
Tim
2021-11-08 22:46:46 -05:00
committed by GitHub
parent 25e03a3a4f
commit c1e832760b
4 changed files with 16 additions and 4 deletions
+6
View File
@@ -715,6 +715,7 @@
medical_record_text = "Patient is a current smoker."
reagent_type = /datum/reagent/drug/nicotine
accessory_type = /obj/item/lighter/greyscale
mob_trait = TRAIT_SMOKER
hardcore_value = 1
drug_flavour_text = "Make sure you get your favorite brand when you run out."
@@ -732,6 +733,11 @@
. = ..()
var/brand = initial(drug_container_type.name)
quirk_holder.mind.add_memory(MEMORY_QUIRK_DRUG, list(DETAIL_FAV_BRAND = brand), memory_flags = MEMORY_FLAG_NOLOCATION | MEMORY_FLAG_NOPERSISTENCE, story_value = STORY_VALUE_SHIT)
// smoker lungs have 25% less health and healing
var/obj/item/organ/lungs/smoker_lungs = quirk_holder.getorganslot(ORGAN_SLOT_LUNGS)
if (smoker_lungs && !(smoker_lungs.organ_flags & ORGAN_SYNTHETIC)) // robotic lungs aren't affected
smoker_lungs.maxHealth = smoker_lungs.maxHealth * 0.75
smoker_lungs.healing_factor = smoker_lungs.healing_factor * 0.75
/datum/quirk/item_quirk/junkie/smoker/process(delta_time)
. = ..()