Files
Bubberstation/code/datums/quirks/negative_quirks/narcolepsy.dm
Fghj240 50f3030e09 Stabilized cerulean extract clones copy more damage from their owner (#93504)
## About The Pull Request

(In case people don't know, a stabilized cerulean extract is an item
that creates a clone of you that is catatonic while you hold it. If you
become a corpse (doesn't work if you're gibbed, decapitated, or dusted,
or completely deleted in any other fashion) and the clone is still alive
your soul is pulled into the clone)

Currently, the clone is just the equivalent of a catatonic monkey human
with your dna moved onto it. It looks the same as you, but the
similarities end there. It doesn't share your traits, sex, or voice.
This PR changes the clone to copy more of your old self so it actually
feels like you and you can't use it to get rid of all your brain traumas
but the clone does keep any positive ability you get from your traits as
well.

## Why It's Good For The Game

Bugfix. I mean maybe it's intended that way but that seems unlikely.

Also I should mention that because addictions are tied to your mind
(whatever that means) the only addictions that swap to your clone are
ones that you have from traits. Also your allergies will be randomized
again since you're getting new traits.

## Changelog

🆑
fix: stabilized cerulean extract clones keep your traits
fix: certain traits now function properly when added midround
/🆑

---------

Co-authored-by: Fghj240 <fakeemail@notrealemail.com>
2025-10-26 22:06:20 +01:00

35 lines
1.4 KiB
Plaintext

/datum/quirk/item_quirk/narcolepsy
name = "Narcolepsy"
desc = "You feel drowsy often, and could fall asleep at any moment. Staying caffeinated, walking or even supressing symptoms with stimulants, prescribed or otherwise, can help you get through the shift..."
icon = FA_ICON_BED
value = -8
hardcore_value = 8
medical_record_text = "Patient may involuntarily fall asleep during normal activities, and feel drowsy at any given moment."
mail_goodies = list(
/obj/item/reagent_containers/cup/glass/coffee,
/obj/item/reagent_containers/cup/soda_cans/space_mountain_wind,
/obj/item/storage/pill_bottle/prescription_stimulant,
)
/datum/quirk/item_quirk/narcolepsy/add(client/client_source)
var/mob/living/carbon/carbon_user = quirk_holder
carbon_user.gain_trauma(/datum/brain_trauma/severe/narcolepsy/permanent, TRAUMA_RESILIENCE_ABSOLUTE)
/datum/quirk/item_quirk/narcolepsy/add_unique(client/client_source)
give_item_to_holder(
/obj/item/storage/pill_bottle/prescription_stimulant,
list(
LOCATION_BACKPACK,
LOCATION_LPOCKET,
LOCATION_RPOCKET,
LOCATION_HANDS,
),
flavour_text = "Given to you to aid in staying awake this shift...",
notify_player = TRUE,
)
/datum/quirk/item_quirk/narcolepsy/remove()
if(!QDELETED(quirk_holder) && quirk_holder.get_organ_by_type(/obj/item/organ/brain))
var/mob/living/carbon/carbon_user = quirk_holder
carbon_user?.cure_trauma_type(/datum/brain_trauma/severe/narcolepsy/permanent, TRAUMA_RESILIENCE_ABSOLUTE)