mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 16:41:48 +00:00
* Adds a little button to quirks that allows for relatively easy customization * Fixing diffs --------- Co-authored-by: nikothedude <59709059+nikothedude@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
25 lines
969 B
Plaintext
25 lines
969 B
Plaintext
/datum/quirk/phobia
|
|
name = "Phobia"
|
|
desc = "You are irrationally afraid of something."
|
|
icon = FA_ICON_SPIDER
|
|
value = 0
|
|
medical_record_text = "Patient has an irrational fear of something."
|
|
mail_goodies = list(/obj/item/clothing/glasses/blindfold, /obj/item/storage/pill_bottle/psicodine)
|
|
|
|
/datum/quirk_constant_data/phobia
|
|
associated_typepath = /datum/quirk/phobia
|
|
customization_options = list(/datum/preference/choiced/phobia)
|
|
|
|
// Phobia will follow you between transfers
|
|
/datum/quirk/phobia/add(client/client_source)
|
|
var/phobia = client_source?.prefs.read_preference(/datum/preference/choiced/phobia)
|
|
if(!phobia)
|
|
return
|
|
|
|
var/mob/living/carbon/human/human_holder = quirk_holder
|
|
human_holder.gain_trauma(new /datum/brain_trauma/mild/phobia(phobia), TRAUMA_RESILIENCE_ABSOLUTE)
|
|
|
|
/datum/quirk/phobia/remove()
|
|
var/mob/living/carbon/human/human_holder = quirk_holder
|
|
human_holder.cure_trauma_type(/datum/brain_trauma/mild/phobia, TRAUMA_RESILIENCE_ABSOLUTE)
|