From efcdf160493982d9c864ca7feac189bb5a250d9d Mon Sep 17 00:00:00 2001 From: Erik Darkpaws Date: Mon, 27 May 2019 01:44:48 -0700 Subject: [PATCH] Fixes spam chem messages in anti-depressants and spaceacillin with prometheans. --- .../Chemistry-Reagents-Medicine.dm | 76 +------------------ 1 file changed, 2 insertions(+), 74 deletions(-) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm index 71a9320cea..8198a3f76d 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Medicine.dm @@ -646,8 +646,6 @@ if(prob(60)) M.take_organ_damage(4 * removed, 0) -//TFF 25/5/19 - attempt to reduce message spam for Prommies and Spaceacillin -#define ANTIBIO_MESSAGE_DELAY 5*60*10 /datum/reagent/spaceacillin name = "Spaceacillin" id = "spaceacillin" @@ -659,19 +657,13 @@ mrate_static = TRUE overdose = REAGENTS_OVERDOSE scannable = 1 -<<<<<<< HEAD //data = 0 -======= - data = 0 - var/delay = 0 ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee /datum/reagent/spaceacillin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) ..() - if(!delay) - delay = world.time +// if(!delay) +// delay = world.time if(alien == IS_SLIME) -<<<<<<< HEAD // if(volume <= 0.1 && data != -1) // data = -1 // else @@ -685,17 +677,6 @@ to_chat(M, "You regain focus...") if(dose <= metabolism) to_chat(M, "Your senses feel unfocused, and divided.") -======= - ingest_met = 0.25 - if(volume <= 0.1 && data != -1 && world.time > delay + ANTIBIO_MESSAGE_DELAY) - delay = world.time - to_chat(M, "You regain focus...") - else - delay = (5 MINUTES) - if(world.time > delay + ANTIBIO_MESSAGE_DELAY) - delay = world.time - to_chat(M, "Your senses feel unfocused, and divided.") ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee M.add_chemical_effect(CE_ANTIBIOTIC, dose >= overdose ? ANTIBIO_OD : ANTIBIO_NORM) /datum/reagent/corophizine @@ -866,9 +847,6 @@ /* Antidepressants */ -#define ANTIDEPRESSANT_MESSAGE_DELAY 5*60*10 - -//TFF 25/5/19 - Revert an edit, restore message display with the med being processed faster /datum/reagent/methylphenidate name = "Methylphenidate" id = "methylphenidate" @@ -879,7 +857,6 @@ metabolism = 0.01 ingest_met = 0.25 mrate_static = TRUE -<<<<<<< HEAD // data = 0 // var/delay = 0 @@ -901,22 +878,7 @@ M << "You lose focus..." if(dose <= metabolism) M << "Your mind feels focused and undivided." -======= - data = 0 -/datum/reagent/methylphenidate/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) - if(alien == IS_DIONA) - return - if(volume <= 0.1 && data != -1) - data = -1 - M << "You lose focus..." - else - if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) - data = world.time - M << "Your mind feels focused and undivided." ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee - -//TFF 25/5/19 - Revert an edit, restore message display with the med being processed faster /datum/reagent/citalopram name = "Citalopram" id = "citalopram" @@ -927,7 +889,6 @@ metabolism = 0.01 ingest_met = 0.25 mrate_static = TRUE -<<<<<<< HEAD // data = 0 // var/delay = 0 @@ -949,22 +910,7 @@ to_chat(M, "Your mind feels a little less stable...") if(dose <= metabolism) to_chat(M, "Your mind feels stable... a little stable.") -======= - data = 0 -/datum/reagent/citalopram/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) - if(alien == IS_DIONA) - return - if(volume <= 0.1 && data != -1) - data = -1 - to_chat(M, "Your mind feels a little less stable...") - else - if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) - data = world.time - to_chat(M, "Your mind feels stable... a little stable.") ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee - -//TFF 25/5/19 - Revert an edit, restore message display with the med being processed faster /datum/reagent/paroxetine name = "Paroxetine" id = "paroxetine" @@ -975,17 +921,12 @@ metabolism = 0.01 ingest_met = 0.25 mrate_static = TRUE -<<<<<<< HEAD //data = 0 //var/delay = 0 -======= - data = 0 ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee /datum/reagent/paroxetine/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) if(alien == IS_DIONA) return -<<<<<<< HEAD // if(volume <= 0.1 && world.time > delay + ANTIDEPRESSANT_MESSAGE_DELAY) // delay = world.time // M << "Your mind feels much less stable..." @@ -1007,19 +948,6 @@ else M << "Your mind breaks apart..." M.hallucination += 200 -======= - if(volume <= 0.1 && data != -1) - data = -1 - M << "Your mind feels much less stable..." - else - if(world.time > data + ANTIDEPRESSANT_MESSAGE_DELAY) - data = world.time - if(prob(90)) - M << "Your mind feels much more stable." - else - M << "Your mind breaks apart..." - M.hallucination += 200 ->>>>>>> 2d1e52c83fa9d4bd4029e9061613bcb7722251ee /datum/reagent/qerr_quem name = "Qerr-quem"