mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Add smoking quirk realism (#62662)
This commit is contained in:
@@ -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)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user