Files
Bubberstation/code/datums/quirks/negative_quirks/insanity.dm
SkyratBot c83ac65e63 [MIRROR] Breaks up the three quirk code files into individual quirks [MDB IGNORE] (#23781)
* Breaks up the three quirk code files into individual quirks

* Removals + skyrat edits

* Delete positive_quirks.dm

* Update tgstation.dme

---------

Co-authored-by: Thunder12345 <Thunder12345@users.noreply.github.com>
Co-authored-by: Pinta <68373373+softcerv@users.noreply.github.com>
Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
2023-09-18 17:19:28 -04:00

42 lines
1.8 KiB
Plaintext

/datum/quirk/insanity
name = "Reality Dissociation Syndrome"
desc = "You suffer from a severe disorder that causes very vivid hallucinations. \
Mindbreaker toxin can suppress its effects, and you are immune to mindbreaker's hallucinogenic properties. \
THIS IS NOT A LICENSE TO GRIEF."
icon = FA_ICON_GRIN_TONGUE_WINK
value = -8
gain_text = span_userdanger("...")
lose_text = span_notice("You feel in tune with the world again.")
medical_record_text = "Patient suffers from acute Reality Dissociation Syndrome and experiences vivid hallucinations."
hardcore_value = 6
mail_goodies = list(/obj/item/storage/pill_bottle/lsdpsych)
/// Weakref to the trauma we give out
var/datum/weakref/added_trama_ref
/datum/quirk/insanity/add(client/client_source)
if(!iscarbon(quirk_holder))
return
var/mob/living/carbon/carbon_quirk_holder = quirk_holder
// Setup our special RDS mild hallucination.
// Not a unique subtype so not to plague subtypesof,
// also as we inherit the names and values from our quirk.
var/datum/brain_trauma/mild/hallucinations/added_trauma = new()
added_trauma.resilience = TRAUMA_RESILIENCE_ABSOLUTE
added_trauma.name = name
added_trauma.desc = medical_record_text
added_trauma.scan_desc = lowertext(name)
added_trauma.gain_text = null
added_trauma.lose_text = null
carbon_quirk_holder.gain_trauma(added_trauma)
added_trama_ref = WEAKREF(added_trauma)
/datum/quirk/insanity/post_add()
var/rds_policy = get_policy("[type]") || "Please note that your [lowertext(name)] does NOT give you any additional right to attack people or cause chaos."
// I don't /think/ we'll need this, but for newbies who think "roleplay as insane" = "license to kill", it's probably a good thing to have.
to_chat(quirk_holder, span_big(span_info(rds_policy)))
/datum/quirk/insanity/remove()
QDEL_NULL(added_trama_ref)