CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.07k stars 4.09k forks source link

(WIP issue) Update effects of existing drugs and pharmaceuticals #35748

Closed I-am-Erk closed 2 years ago

I-am-Erk commented 4 years ago

Our drug system was based around a number of essentially made-up effects. Removing those has lessened the effectiveness of the existing drugs, but cleared up some design space to improve them.

This project-level issue will look at the drugs (prescription and otherwise) in-game and suggest uses and side effects for them. It will also suggest some new effects that can be further leveraged into new drugs, to be suggested in an upcoming issue.

Side effects

A given drug should have a list of possible side effects. Ultimately the best way to handle this would be to give each side effect a likelihood, and the first time a character takes the drug, roll for the chance of getting each side effect in the list. That profile of side effects would then be memorized for that drug, and would occur every time the player had the drug. Some side effects could have tolerances (eg with antidepressants, indigestion should improve over time).

List of effects

Note that some effects - such as the different stimulant sub-effects - should all be present on a given medication of that class, but we separate the effect types so that a given drug can have more of one effect and less of another.

Tabular summary of recommendations

I have ranked the "potency" of each effect class from 1 to 5. Currently those numbers mean nothing, but I will work on getting some definitions.

  1. Very slight effect, mostly flavour
  2. Minimal effect but has some impact.
  3. Average effect
  4. Strong effect
  5. Such a strong effect that it's easy to overdo it.

For name changes I suggest we move away from brand names of drugs, ideally settling on either using fictional names, generic terms, or maybe fictional name (generic term), eg thorazine (antipsychotic) or xanepam (sedative).

This is just a rough list. Really each drug should have its effects listed as maximum, and amount of drug where the effect is at 50% of its max effect, eg. "nauseating": [ 4, 3 ]. This can be plugged into a Hill equation for dose response to calculate how much of a given effect the drug should give at what concentration. The main trick here is to figure out what the "amount of drug" is going to be calculated in. I suggest the most intuitive way to do this for JSONers is to make "amount of drug" equal to the maximum amount in your system after taking that many doses of the drug, so for the above example for alcohol, if the player shotgunned three drinks they'd peak at nausea 2 when those drinks hit them. I'm open to suggestions for better or less math-y ways to do this.

In-game drug name Drug class Suggested effects Other changes
Alcohol Alcohol Depressant 3, Anticonvulsant 2, Addictive 3, Tolerance 3, Rebound 4 , Diverting 3, Abusable 3, Dizziness 2, Nauseating 2, Discoordination 2 May deserve a special "drunk" effect, but that would more be for messages to the player and less for mechanical changes, which should be modeled through drug effects as much as possible.
Adderall Amphetamine Mental stimulant 3, Physical stimulant 1, Addictive 1, Abusable 1, Insomnia 1, Indigestion 1, decreased appetite 1 I suggest a name change to "Ritacentrin", or to simply "ADHD medicine".
low-grade methamphetamine Amphetamine Mental stimulant 2, Physical stimulant 2, Addictive 5, Tolerance 2, Abusable 4, Insomnia 2, Indigestion 2, decreased appetite 1, weight loss 1 For this and other homemade drugs, a better system of quality level using chemistry tools to test purity would be wonderful.
Marijuana Cannabinoid Dissociative 2, Neuropathic analgesic 3, Hallucinogenic 1, Diverting 2, Abusable 3, Tolerance 1, increased appetite 1 Might deserve a special cannabinoid effect as well since marijuana is pretty unusual in its mental effects.
Prozac SSRI antidepressant Antidepressant 3, Rebound 1, Neuropathic analgesic 2, libido depression 1, Dry mouth 1, indigestion 3 (decreases over time), Weight gain 1 I suggest a name change to a fictionalized name, I suggest "Zolafine". Alternatively just change the name to "antidepressant".
Xanax Benzodiazepene Antidepressant 1, Addictive 4, Tolerance 3, Sedative 3, Anticonvulsant 4, Diverting 4, Abusable 2 Needs a name change as well, I suggest "Xanepam" or simply "Sedative tablet'.
Lorazepam (new suggestion) Benzodiazepene Antidepressant 1, Addictive 3, Tolerance 3, Sedative 3, Anticonvulsant 4, Diverting 4, Abusable 2 Does not currently exist in game, but this longer acting benzodiazepene is more common these days than xanax and should be in.
Thorazine Antipsychotic Antipsychotic 4, Sedative 3, Depressant 1, Weight gain 3, Dry mouth 2, Discoordination 1
crack cocaine stimulant Mental stimulant 1, Physical stimulant 5, Addictive 5, Tolerance 2, Abusable 4, Insomnia 4, decreased appetite 3 Faster onset and shorter duration than cocaine
cocaine cocaine stimulant Mental stimulant 2, Physical stimulant 4, Addictive 4, Tolerance 2, Abusable 4, Insomnia 4, decreased appetite 2 Slower onset and longer duration than crack
Heroin opioid analgesic Analgesic 4, Depressant 3, Sedative 3, Addictive 5, Tolerance 4, Diverting 4, Abusable 2, Indigestion 3, antitussive 1
morphine opioid analgesic Analgesic 4, Depressant 3, Sedative 3, Addictive 4, Tolerance 3, Diverting 3, Abusable 2, Indigestion 3, antitussive 1
oxycodone opioid analgesic Analgesic 5, Depressant 4, Sedative 4, Addictive 4, Tolerance 3, Diverting 4, Abusable 2, Indigestion 4, antitussive 1
tramadol opioid analgesic Analgesic 2, Neuropathic analgesic 2, Depressant 2, Sedative 2, Addictive 3, Tolerance 4, Diverting 2, Abusable 2, Indigestion 3, antitussive 1 The only opioid in game that has neuropathic activity.
poppy cough syrup opioid, antitussive Analgesic 1, Depressant 3, Sedative 3, Addictive 3, Tolerance 3, Diverting 2, Indigestion 3, antitussive 3
poppy painkiller opioid analgesic Analgesic 2, Depressant 2, Sedative 2, Addictive 3, Tolerance 4, Diverting 2, Abusable 1, Indigestion 5, antitussive 1 Homemade painkillers tend to be very constipating due to the mix of opiate chemicals in them.
codeine opioid analgesic Analgesic 2, Depressant 2, Sedative 2, Addictive 3, Tolerance 4, Diverting 2, Abusable 2, Indigestion 4, antitussive 1
destragon Antibiotic Strong antibiotic Needs a full revamp of infection and sepsis. I suggest a name change as well, as "destragon" doesn't sound like an antibiotic at all. "Phenopenem" sounds like a last-resort antibiotic.
Atreyupan Antibiotic Weak antibiotic Needs a full revamp of infection and sepsis.
antibiotics Antibiotic Regular antibiotic Needs a full revamp of infection and sepsis.s
Maddremor commented 4 years ago

Opioids slow down digestion (possibly leading to indigestion). Although bodily excrection are not to be simulated, it could still have an effect on stomach/hunger and comfort.

thethunderhawk commented 4 years ago

I think the “low-grade” should be dropped from “low-grade methamphetamine”. To me the current name implies the meth is impure in some way, either cut with something else or cooked wrong. No reason to complicate things, meth should be meth.

tenmillimaster commented 4 years ago

Topical analgesics? It'd be neat to give cocaine a legitimate use.

I-am-Erk commented 4 years ago

Topicals should probably be handled separately, that would be its own list of effects. This assumes ingestion/injection

aoae23 commented 4 years ago

I like this rework because it also paves the way for proper treatments of ODs. Though that is probably addressable in a separate issue.

In my opinion, we should stick with generic names if possible, and only use fictional drugs as a last resort, for the purpose of maintaining realism by making it easier to correct unrealistic drug effects.

I suggest that a more simplified approach where a "toxidrome" with a defined list of effects could be added, and then individual drugs could be assigned to said toxidromes. For example, two sedative-hypnotic agents should have a similar range of effects, only differing in intensity with exceptions for notable effects. To my novice coding knowledge this doesn't seem terribly difficult to JSONize too.

Also, do you think fentanyl would fit in the game using these effects given how common it is now? Also, is datura part of the scope of the issue?

I-am-Erk commented 4 years ago

@aoae23 ODs should in fact be baked in once we get a dose response curve, we do things like make respiratory depression a dose dependent side effect of opioids.

I am increasingly picturing these side effects working a lot like tool properties. Things like toxidromes could then be handled as just a plug-and-play group of side effects, where the "opioid" side effect list is constant and you just plug it into any opioid and give it a magnitude, but it actually applies a bunch of specific independently defined side effects. There could be others, like anticholinergics. Then one opioid being more constipating than another would be handled by giving the more constipating one a second, toxidrome-independent Indigestion side effect with different variables, stacking with the common one.

Datura is part of the scope of the issue, I've just picked a handful of drugs so far to experiment with settings. Adding new drugs like fentanyl would be a second issue, I want to make a whole project of this and part 2 is new drugs that should be added.

What I'm really keen on for this would be part 3: procedurally generating experimental drugs to be found in labs. I have some really weird ideas for that.

Zireael07 commented 4 years ago

procedurally generating experimental drugs to be found in labs. I have some really weird ideas for that.

Oh be still my bleeding heart, that would be awesome <3 <3 <3

Kodiologist commented 4 years ago

Diverting:… Reduces the severity of negative morale effects.

At least in terms of real-world psychology, that's pretty much the same as an antidepressent. Yes, alcohol is a CNS depressant, but it can also counteract actual depression to some extent.

Libido depression: Reduces morale gain from… liaisons

I don't think sex is implemented, and I hope that doesn't change. Our inclusion of masturbation (with a vibrator) already represents far more realism than necessary, in my opinion.

I-am-Erk commented 4 years ago

Diverting:… Reduces the severity of negative morale effects.

At least in terms of real-world psychology, that's pretty much the same as an antidepressent. Yes, alcohol is a CNS depressant, but it can also counteract actual depression to some extent.

Antidepressant is already listed as an effect, and that's what it does. However the antidepressant effect takes weeks to build up, while diverting medications act quickly and temporarily.

ghost commented 4 years ago

Diverting:… Reduces the severity of negative morale effects.

At least in terms of real-world psychology, that's pretty much the same as an antidepressent. Yes, alcohol is a CNS depressant, but it can also counteract actual depression to some extent.

Libido depression: Reduces morale gain from… liaisons

I don't think sex is implemented, and I hope that doesn't change. Our inclusion of masturbation (with a vibrator) already represents far more realism than necessary, in my opinion.

The word from Kevin on depictions of bodily functions and sex is mostly no.

As in, no depictions of it, no real descriptions of it.

Vibrator is the one legacy thing that kinda gets to stay.

Sexual liaisons with NPCs if ever implemented would have to be offscreen and alluded to in vague terms, its ever implemented in a way that is suitable.

I.E an NPC who offers "services of the night" or something equally euphemistic, and then screen fades to black and restarts in the morning with some kind of morale boost ( although using an NPC for this kinda thing for a morale boost feels very icky - thats the whole problem with the idea )

So although itd be tricky to implement in a way that isnt icky or bad taste, there is still a narrow space where such a thing might exist, and the effects of drugs or medication may interact with in positive or negative ways - therefore I can see why Erk is putting that option there just incase.

DeimosDread commented 4 years ago

I'm not sure dizziness/vertigo and discoordination need to be separated as they are now, or perhaps different terminology is necessary. Unless the plan for discoordination is less of just walking and a more complete loss of coordination for the upper and lower body, perhaps a crafting modifier instead of or in conjunction with the missteps for discoordination. Perhaps more severe dizziness (4+ on your scale for example) could cause missteps? Also, would/could the missteps happen while driving?

For tinnitus, if I could suggest flavor text of something along the lines of "You hear a faint/loud ringing (out of your left/right ear)." especially if you were just exposed to extreme sound, or haven't heard any sounds recently (this is anecdotal, but I tend not to notice it unless I'm in a quiet environment) as well as a small loss of focus when this occurs (which is probably outside the scope of this proposal). One last thing about tinnitus I believe it's one of its possible causes is ototoxic meds, like certain antibiotics, and large doses of ibuprofen (though I assume you knew this considering you included it in a list of possible side effects).

Maybe stick with generic names, and leave the fictionalized names for flavor text?

All that being said, this looks awesome!

ghost commented 4 years ago

To add to the above: opiates also reportedly kill sex drive, making the 'Vibrator' item not helpful to those characters; (I see that this has already been mentioned)-- i see why we would not want to further simulate sex, though

dehydration/increased water need/dessicant should be added as an effect, definitely for Adderall and other uppers

souricelle commented 4 years ago

Putting my money where my mouth is and posting some studies with timelines and probable effects.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6165228/

Here's Adderall. The study found that while it improved attention, mood, and focus, it actually mildly impaired memory, suggesting that the college kids using it to study are getting some benefit by being kept on task but might otherwise be suffering from reduced performance.

In pill form, the drug takes 30 minutes to start taking effect, peaks at 90 minutes, then starts dropping off at 210 minutes and eventually losing all effect by about 300 minutes. You can grind it into a powder (perhaps with a mortar and pestle) and snort it to experience peak effects within a minute or two. It then stands to reason that you would have peak effects at one minute, dropoff at 121 minutes, and sobriety again at 211 minutes. The drug's half-life is about 10 hours, and it takes 3 days for it to be completely eliminated from the body.

The mental stimulant effect seems right on the money, boosting perception but not intelligence. Taking more than a single dose should probably only offer a greater mood boost and possibly an intelligence penalty as you creep closer to overdose.

People who use Adderall to stay awake do not feel tired, but they will still suffer the effects of sleep deprivation. Currently insomnia is just the inability to fall asleep, Adderall should probably actually reduce fatigue by two or three dozen points over the course of its five hour high. There is a sleep deprivation mechanic to account for the fact that taking meth isn't the same thing as going to sleep, and inevitably a person's fatigue is going to catch up to them anyway.

As for the physical stimulant effect, it's well documented in studies like this one: https://europepmc.org/article/med/7392905 exact numbers are hard to find but I think there's enough in the abstract to suggest that what you've got is about right.

Adderall is just amphetamines, so you could extrapolate from these numbers and timeline for proper meth, perhaps exaggerating the effects. There are many, many different kinds of amphetamines and potency varies wildly so there's not going to be any one set of numbers that work.

souricelle commented 4 years ago

Antidepressants should have little to no effect in the short term, as it generally takes a couple of weeks for a person's body to adjust to them (see: https://www.nami.org/About-Mental-Illness/Treatments/Mental-Health-Medications/Types-of-Medication/Fluoxetine-(Prozac) ). Furthermore they should not do anything for characters who don't have depression (see: https://www.webmd.com/depression/fears-and-facts-about-antidepressants). Antidepressants don't give you any kind of a high or induce happiness, they merely correct a dysfunction in people with certain kinds of mental illness. Rather than being a mood booster, they should work to prevent the negative mood from Bad Temper and Chemical Imbalance, as well as possibly offering a mild benefit to characters with Schizophrenia, possibly reducing frequency of attacks and serving as a stopgap for characters who can't find any thorazine or don't want to waste it. There is probably an argument to be made for adding in an ADHD trait that impairs focus when not properly medicated and renaming Bad Temper to Depression.

Depression might also be a long-term condition that comes on if a character has a very poor mood for an extended length of time and brings on symptoms like chronic fatigue and an intelligence penalty. This would incentivize players to take better care of their characters and seek out sources of recreation, but is probably beyond the scope of this project.

souricelle commented 4 years ago

As for opioids, you seem to have the effects all worked out pretty well. If you need a timeline, https://www.oncolink.org/cancer-treatment/oncolink-rx/oxycodone-oral-immediate-release-pill-roxicodone-r-percolone-r has a typical oxycodone pill as coming on in 15 minutes with the full effects felt at 1 hour and dropoff starting at 3 hours, with the effects completely gone by 6. As with Addrall, Oxycodone pills can be ground into a powder and snorted for a faster effect ( https://erowid.org/pharms/oxycodone/oxycodone_dose.shtml ) but this reportedly stings like hell and can cause brief bouts of coughing and sniffles. I think insufflation should be an option whenever possible as many players/survivors are going to be taking drugs as needed to deal with emergency situations rather than long-term management of pain or other symptoms. Injected opioids like morphine would similarly work almost immediately.

Opioids/opiates of any kind can sometimes have itchiness as an unpleasant side effect, particularly during the comedown. There's no rash, you just get super itchy sometimes. Tinnitis is another one, and some long term users even experience partial hearing loss. ( https://emcrit.org/toxhound/sound-of-silence/ ). Permanent deafness is quite rare and should only hit chronic users but could be corrected with CBMs or other fantasy solutions.

Anecdotally I can say that most of these side effects don't happen or are very mild. Some people seem more prone to them than others. It should be random when they occur with maybe some mitigating factors like the hidden health stat, strength, or the chemical tolerance trait.

The poppy stuff has always been a little weird, it isn't super realistic as-is. You should be able to make opium out of a large number of poppies and possibly you could further refine that into laudanum (with ethanol), or with some more sophisticated equipment heroin or morphine.

I don't know the specifics of how methadone is made, but something like that could be used to help characters deal with the effects of opioid addicton without having to get wasted on painkillers. Benzodiazepines should also be usable to deal with withdrawals or negative effects from other drugs. They are themselves very addictive and have negative interactions with just about every drug, but they're useful for treating serotonin syndrome, alcohol withdrawal, opiate withdrawal, and stimulant comedowns.

kevingranade commented 4 years ago

This issue has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/lets-discuss-drugs/24246/2

MichaelMacha commented 4 years ago

I know I'm a little late to the party on this, and I'm a new contributor so apologies if any of this isn't important. However, I have a bachelor's in neuroscience (inclusive of a graduate course on psychopharmacology) and feel I can contribute. There are a few things that stand out to me after reading this over.

(Forgive me if this is a little long-winded, too.)

Drugs don't necessarily have the same intensity of effect on all people—it's more of a stochastic thing. That's why in drug development critical doses are initially determined by looking for the LD50 on animals, and later extrapolating (hopefully) that to match the effects on humans. That is, the concentration where 50% of the test subjects die—Lethal Dose 50%, LD50. Part of this is from tolerances developed by taking similar substances, part of it's genetic, etc.

So, it occurs to me that there would be some overflow of these effects across substances. As an example, carbamazepine, an anticonvulsant, also jacks up a patient's caffeine tolerance, just because they act on the same or related systems; caffeine has a lessened effect. It's probably going overboard to invoke all of the synergistics, antagonistics, and agonistics of all of these, but taking it into account could round out the in-game experience of taking an active substance. Maybe even if we just, initially, categorized them by effect rather than individual drug?

Forgive me if this is already being done.

The next thing to come to mind is, in the list above and from my own in-game experience, there are really two categories of substance. There's the specific molecular distillate, like, say, methamphetamine, and there's the plant containing such a substance, like marijuana or datura. I'm not sure why datura isn't in the list above, but what's interesting about it is that it actually contains a host of psychoactive compounds, including scopolamine (which is also a powerful non-narcotic painkiller with some really weird effects, and might make for a candidate for in-game inclusion as well), atropine (which can be used to slow heart rate down and has also shown use against some nerve agents), and hyopsciamine (more-or-less an antispasmodic). I really feel like they should be separated, and perhaps the ability to distill one substance out of another be implemented. Generally, plant-included compounds are weaker, whereas after distillation you can control the dosage, making them both more useful and potentially more dangerous.

The poppy-painkiller/poppy-sleep/poppy-cough-syrup thing could really be dropped if this is how we're doing it. Also, unless someone's going to tell me what "grade" means, or "high-grade" is going to be introduced—would that be better or worse?—we could abbreviate "low-grade methamphetamine" to just "methamphetamine", "meth", or even "crank".

I'm going to gloss over dosage for now.

The next thing is, not all effects come into play at the same time. As an example, take cocaine—I may have to look this up to be more precise, but it's more or less an hour long high, maybe a bit longer, followed by a half day of significant down. Not that I've done it myself, but it seems likely to me that this is perhaps part of what makes it addictive—users often attempt to use more of the drug to counter the down, rather than easing out of it. However, this isn't the whole story with it. Some effects only occur after the body has altered its metabolism in anticipation of it; this can go both ways as well. (Some seem to develop a tolerance, others actually become sensitized to the drug.) Prolonged usage can cause vasoconstriction around the colon, leading to ulcers and tears, but this isn't something a first-time user would ever have to contend with, because they haven't put themselves under the same repeated stress. While we're on the topic of cocaine, it also increases the risk of intracerebral hemorrhaging for much the same reason, increasing the risk of an aneurysm; but this is something that a first-time user would not yet have to worry about.

I feel like that could be introduced with some kind of history tracking in the game—has the player taken it before? How recently? What are the likely long-term stresses of it? Most of this could be done with a wiki look-up and a linear interpolation I think.

Lastly, the effects of a drug very much depend on its route of administration, more so than people tend to think. Going back to atropine, it's usually an intramuscular injection when administered clinically for the sake of, say, elevated heart rate or reducing saliva production during surgery; but if you take it orally, the effect is more likely to be antidiarrheal, simply because the compound has not been administered through the typical path. This effectively completely changes the nature of the drug, even though it's the exact same molecule. This can also be said for dosage, as some effects occur under lower thresholds than others; unfortunately I can't remember anything citation worthy on that at the moment.

So, chemistry and pharmacology is fun, but as much as we all like when things fit on nice even line-graphs pharmacology has never been that polite about it. It may be easier to just look up the specific compounds on a readily available website like Drugs.com or WebMD, and work from there. They really aren't "power ups", though; they've got their own lasting and exotic behaviors.

I-am-Erk commented 4 years ago

I had long mental debates over interaction systems and variable responses. The best I've come up with for the latter is not yet up above, I haven't updated the issue in a while, but put very shortly it's to have a list of side effects chosen randomly per character per drug and remembered by the system thereafter.

For drug interactions, I think we'd want a simplified tag representing where the drug is metabolized and what types of affects it has on other metabolic pathways. That stuff should also get added to this issue at some point but I have been much too busy elsewhere.

actual-nh commented 3 years ago

@DeimosDread: With regard to tinnitus, not ibuprofen, but salicylates (which include aspirin, pepto-bismol/etc (bismuth subsalicylate), and wintergreen flavoring - methyl salicylate). I have personal experience with this (I happen to be sensitive to much smaller doses than most... sigh), and they're used to induce tinnitus in lab animals.

Opiates: Most opiates will also cause problems with breathing, especially in someone with asthma. Exception: Tramadol, due to the additional receptors it stimulates.

Night-Pryanik commented 2 years ago

No discussion in almost a year, closing.