mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 07:03:05 +00:00
## About The Pull Request I moved all of the modular quirks from SR and Bubber to the same folder/filepath, previously they were split up in multiple different places. ## Why It's Good For The Game It helps people when looking for things while coding or code diving due to them all being in one place. ## Proof Of Testing It compiled and ran. ## Changelog 🆑 code: moved a bunch of modular quirk files to the same folder /🆑 --------- Co-authored-by: Cyprex <35031555+Cyprex@users.noreply.github.com>
44 lines
2.2 KiB
Plaintext
44 lines
2.2 KiB
Plaintext
// Re-labels TG brainproblems to be more generic. There never was a tumor anyways!
|
|
/datum/quirk/item_quirk/brainproblems
|
|
name = "Brain Degeneration"
|
|
desc = "You have a lethal condition in your brain that is slowly destroying it. Better bring some mannitol!"
|
|
medical_record_text = "Patient has a lethal condition in their brain that is slowly causing brain death."
|
|
icon = FA_ICON_BRAIN
|
|
|
|
// Override of Brain Tumor quirk for robotic/synthetic species with posibrains.
|
|
// Does not appear in TGUI or the character preferences window.
|
|
/datum/quirk/item_quirk/brainproblems/synth
|
|
name = "Positronic Cascade Anomaly"
|
|
desc = "Your positronic brain is slowly corrupting itself due to a cascading anomaly. Better bring some liquid solder!"
|
|
gain_text = "<span class='danger'>You feel glitchy.</span>"
|
|
lose_text = "<span class='notice'>You no longer feel glitchy.</span>"
|
|
medical_record_text = "Patient has a cascading anomaly in their brain that is slowly causing brain death."
|
|
icon = FA_ICON_BRAZILIAN_REAL_SIGN
|
|
mail_goodies = list(/obj/item/storage/pill_bottle/liquid_solder/braintumor)
|
|
hidden_quirk = TRUE
|
|
|
|
// If brainproblems is added to a synth, this detours to the brainproblems/synth quirk.
|
|
// TODO: Add more brain-specific detours when PR #16105 is merged
|
|
/datum/quirk/item_quirk/brainproblems/add_to_holder(mob/living/new_holder, quirk_transfer, client/client_source)
|
|
if(!issynthetic(new_holder) || type != /datum/quirk/item_quirk/brainproblems)
|
|
// Defer to TG brainproblems if the character isn't robotic.
|
|
return ..()
|
|
|
|
// TODO: Check brain type and detour to appropriate brainproblems quirk
|
|
var/datum/quirk/item_quirk/brainproblems/synth/bp_synth = new
|
|
qdel(src)
|
|
return bp_synth.add_to_holder(new_holder, quirk_transfer, client_source)
|
|
|
|
// Synthetics get liquid_solder with Brain Tumor instead of mannitol.
|
|
/datum/quirk/item_quirk/brainproblems/synth/add_unique(client/client_source)
|
|
give_item_to_holder(
|
|
/obj/item/storage/pill_bottle/liquid_solder/braintumor,
|
|
list(
|
|
LOCATION_LPOCKET = ITEM_SLOT_LPOCKET,
|
|
LOCATION_RPOCKET = ITEM_SLOT_RPOCKET,
|
|
LOCATION_BACKPACK = ITEM_SLOT_BACKPACK,
|
|
LOCATION_HANDS = ITEM_SLOT_HANDS,
|
|
),
|
|
flavour_text = "These will keep you alive until you can secure a supply of medication. Don't rely on them too much!",
|
|
)
|