Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opiate vitamin and MME per item #75159

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Maleclypse
Copy link
Member

Summary

Content "Opiate Vitamin by MME"

Purpose of change

Vitaminizes opiates. Makes use of the MME model with conversions from this chart. https://medicaid.utah.gov/Documents/files/Opioid-Morphine-EQ-Conversion-Factors.pdf.

Describe the solution

So far I've added comments describing the medicine size and corresponding mme vitamins. Need to add effects and tiers of effects plus excesses.

Describe alternatives you've considered

Adding a multiplier where addiction raises your tolerance by the strength of the addiction.

Testing

Additional context

@github-actions github-actions bot added [JSON] Changes (can be) made in JSON Mods Issues related to mods or modding Mods: Xedra Evolved Anything to do with Xedra Evolved labels Jul 22, 2024
@Maleclypse
Copy link
Member Author

Goal of this is to further vitaminization of existing medications and improve medicine interaction possibilities.

@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Jul 22, 2024
@Venera3
Copy link
Member

Venera3 commented Jul 22, 2024

Two things:

  • The linked table is about oral equivalency, po : iv morphine analgetic potence is about 1 : 3. Since we don't do oral morphine it's pretty minor but you want to bump morphine's vitamin up.
  • Heroin is equipotent to morphine but you're not getting medical-grade diamorphine in the US - for anesthetic I went with 50% purity which is already optimistic so I'd go with half of morphine's (fixed) vitamins.

@Maleclypse
Copy link
Member Author

Two things:

  • The linked table is about oral equivalency, po : iv morphine analgetic potence is about 1 : 3. Since we don't do oral morphine it's pretty minor but you want to bump morphine's vitamin up.
  • Heroin is equipotent to morphine but you're not getting medical-grade diamorphine in the US - for anesthetic I went with 50% purity which is already optimistic so I'd go with half of morphine's (fixed) vitamins.

Do you have any suggestions for the effect tiers or should I just wing it and see how close I am? Also I put in 4x the medically recommended maximum daily dose as the max. Should I go higher than that? I’m aware people can survive more than that in a day but I’m not certain how far of an outlier those instances are.

@github-actions github-actions bot added <Documentation> Design documents, internal info, guides and help. [Markdown] Markdown issues and PRs labels Jul 23, 2024
@Venera3
Copy link
Member

Venera3 commented Jul 23, 2024

Two things:

  • The linked table is about oral equivalency, po : iv morphine analgetic potence is about 1 : 3. Since we don't do oral morphine it's pretty minor but you want to bump morphine's vitamin up.
  • Heroin is equipotent to morphine but you're not getting medical-grade diamorphine in the US - for anesthetic I went with 50% purity which is already optimistic so I'd go with half of morphine's (fixed) vitamins.

Do you have any suggestions for the effect tiers or should I just wing it and see how close I am? Also I put in 4x the medically recommended maximum daily dose as the max. Should I go higher than that? I’m aware people can survive more than that in a day but I’m not certain how far of an outlier those instances are.

Yeah that's fine - you develop a tolerance to different effects at different rates, so modeling that would be a bother.

An interesting thing you could do with vitamins would be to demonstrate the different kinetics - pkill_slow could have a vitamin that decays into the main opiate at a slow rate. Not necessarily in the same PR, it's just pretty low-hanging and less hardcode is always begfer.

@zachary-kaelan
Copy link
Contributor

The docs say that vitamins with the drug type take 30 minutes to start to take effect, to represent an onset of action through an oral route. Some of these opioids are injected and so should take maybe 3-5 minutes instead.

data/json/items/comestibles/med.json Outdated Show resolved Hide resolved
data/json/items/comestibles/med.json Outdated Show resolved Hide resolved
data/json/items/comestibles/med.json Outdated Show resolved Hide resolved
data/json/vitamin.json Outdated Show resolved Hide resolved
@Maleclypse
Copy link
Member Author

The docs say that vitamins with the drug type take 30 minutes to start to take effect, to represent an onset of action through an oral route. Some of these opioids are injected and so should take maybe 3-5 minutes instead.

Is that something I need to change in c++? Thanks for catching these.

@zachary-kaelan
Copy link
Contributor

Is that something I need to change in c++? Thanks for catching these.

Unfortunately you might. There is a NO_INGEST flag on the injectables used in the consume_med function in consumption.cpp that appears to skip the consume_effects function which is where the vitamins get added. The drug vitamins appear to be applied in the update_stomach function in character_body.cpp so I'm guessing you'd want to copy the loop in there to the consume_med function.

@github-actions github-actions bot added the Items: Food / Vitamins Comestibles and drinks label Jul 29, 2024
@Maleclypse
Copy link
Member Author

Is that something I need to change in c++? Thanks for catching these.

Unfortunately you might. There is a NO_INGEST flag on the injectables used in the consume_med function in consumption.cpp that appears to skip the consume_effects function which is where the vitamins get added. The drug vitamins appear to be applied in the update_stomach function in character_body.cpp so I'm guessing you'd want to copy the loop in there to the consume_med function.

You had mentioned on discord you might be up for PRing the c++ against my branch? Unless I'm confusing you with someone. That would be helpful on this at least it would be helpful in getting it further along.

@zachary-kaelan
Copy link
Contributor

You had mentioned on discord you might be up for PRing the c++ against my branch?

Yup, I'm on it.

Make it so NO_INGEST adds vitamins instantly
@github-actions github-actions bot added the [C++] Changes (can be) made in C++. Previously named `Code` label Sep 29, 2024
src/consumption.cpp Outdated Show resolved Hide resolved
Co-authored-by: Anton Burmistrov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` <Documentation> Design documents, internal info, guides and help. Items: Food / Vitamins Comestibles and drinks [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions [Markdown] Markdown issues and PRs Mods: Xedra Evolved Anything to do with Xedra Evolved Mods Issues related to mods or modding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants