From 975407edb4ba6e22f840ab1b7a6b5922b34207f6 Mon Sep 17 00:00:00 2001 From: cib Date: Sun, 24 Feb 2013 17:37:34 +0100 Subject: [PATCH] Forgot antidepressants file. --- .../Chemistry-Reagents-Antidepressants.dm | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 code/modules/reagents/Chemistry-Reagents-Antidepressants.dm diff --git a/code/modules/reagents/Chemistry-Reagents-Antidepressants.dm b/code/modules/reagents/Chemistry-Reagents-Antidepressants.dm new file mode 100644 index 00000000000..14aa4bdcfbb --- /dev/null +++ b/code/modules/reagents/Chemistry-Reagents-Antidepressants.dm @@ -0,0 +1,92 @@ +Methylphenidate + +#define ANTIDEPRESSANT_MESSAGE_DELAY 5*60*10 + +/datum/reagent/antidepressant/methylphenidate + name = "Methylphenidate" + id = "methylphenidate" + description = "Improves the ability to concentrate." + reagent_state = LIQUID + color = "#C8A5DC" + custom_metabolism = 0.01 + data = 0 + + on_mob_life(var/mob/living/M as mob) + if(!M) M = holder.my_atom + if(src.volume <= 0.1) if(data != -1) + data = -1 + M << "\red You lose focus.." + else + if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) + data = world.time + M << "\blue Your mind feels focused and undivided." + ..() + return + +/datum/chemical_reaction/methylphenidate + name = "Methylphenidate" + id = "methylphenidate" + result = "methylphenidate" + required_reagents = list("mindbreaker" = 1, "hydrogen" = 1) + result_amount = 3 + +/datum/reagent/antidepressant/citalopram + name = "citalopram" + id = "Citalopram" + description = "Stabilizes the mind a little." + reagent_state = LIQUID + color = "#C8A5DC" + custom_metabolism = 0.01 + data = 0 + + on_mob_life(var/mob/living/M as mob) + if(!M) M = holder.my_atom + if(src.volume <= 0.1) if(data != -1) + data = -1 + M << "\red Your mind feels a little less stable.." + else + if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) + data = world.time + M << "\blue Your mind feels stable.. a little stable." + ..() + return + +/datum/chemical_reaction/citalopram + name = "Citalopram" + id = "citalopram" + result = "citalopram" + required_reagents = list("mindbreaker" = 1, "carbon" = 1) + result_amount = 3 + + +/datum/reagent/antidepressant/paroxetine + name = "paroxetine" + id = "Paroxetine" + description = "Stabilizes the mind greatly, but has a chance of adverse effects." + reagent_state = LIQUID + color = "#C8A5DC" + custom_metabolism = 0.01 + data = 0 + + on_mob_life(var/mob/living/M as mob) + if(!M) M = holder.my_atom + if(src.volume <= 0.1) if(data != -1) + data = -1 + M << "\red Your mind feels much less stable.." + else + if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) + data = world.time + if(prob(90)) + M << "\blue Your mind feels much more stable." + else + M << "\red Your mind breaks apart.." + M.hallucination += 200 + ..() + return + +/datum/chemical_reaction/paroxetine + name = "Paroxetine" + id = "paroxetine" + result = "paroxetine" + required_reagents = list("mindbreaker" = 1, "oxygen" = 1, "inaprovaline" = 1) + result_amount = 3