-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Medicines. Expand description #76811
Comments
put it to the extreme degree, having medicine boxed with relative instructions would be interesting tho it has a problem of our medicine being still pretty abstract, i think it would be a fine addition |
People may not be aware that certain medicines got large overhauls this year, particularly analgesics, and now function as vitamins, and afaik this was intended as the model going forward for all drugs. For those medicines, it shouldn't be hard for the game to gather up the data on vitamin content in the drug, the maximum safe amount a person can take, the amount required to be effective, and the decay timer, and intelligently put together a readout about how much to take, how often to take it, and at what point overdose will occur. It'd be really neat if this readout required some kind of proficiency to see. Since various mutations etc. might change these parameters, you could have the box display the dosage for average adult/child (just calculate for a medium and small character, respectively), so that non-proficient characters could simply read the packaged instructions, and loose pills would be a bit of a gamble for them. Similarly, you could hide the dosage information for mutants or particularly exotic drugs behind more difficult proficiencies. The game already kind of does this for regular vitamins, and smartphones etc. have the app that tracks nutrition, so it'd be a matter of copying that method and adjusting the readout and stuff. See #70239 for more info. |
I looked more closely at med.json and topic #70239. And it looks like a problem. Or a lot of manual labor. The problem is that different drugs use different recording structures. For example. Let's take the pill from the first post. The duration of action is defined in the
For ibuprofen, vitamins are additionally added, which will have their own different effect and their own duration.
Cataclysm-DDA/data/json/vitamin.json Line 75 in 65aca7f
Duration of effect: 216 x 100 / 60 x 60 = 6 h. (This is an effect that increases blood pressure. An additional problem is that the effect does not have a But that's not all. Let's take a stimulant:
In this case, instead of the effect and its duration, the value of the dose(?) is specified. And the duration, apparently, is hard-coded somewhere in the functions(?). And that's just at first look. Perhaps there are some other variants. And this is either manual work or a multilevel function of the if-then-else kind. I certainly hope someone will take it up. But it is more rational to postpone it until standardization (will it take place?). Or limit yourself to adding only one “effect duration” field to the drug information window. Look at the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
Is your feature request related to a problem? Please describe.
There are many medicines in the game. Many of them have rather vague descriptions. And the result of their action is not always accurately defined.
For example, let's take a hemostatic powder and a potassium iodide tablet.
If with the powder, everything is clear enough. Take it and apply it to the wound. If the bleeding does not stop, repeat. Instant results that any player can understand.
What about the tablet? Will there be a result from taking two tablets at the same time? How long does this tablet last. Does it work at all?
Solution you would like.
Therefore, I suggest that the following information be added to the description of medicines:
For an example, let's take potassium iodide tablets:
Cataclysm-DDA/data/json/items/comestibles/med.json
Line 1204 in 5f6f5e0
Its descriptions could be supplemented: Take one tablet every two hours. Increasing the dosage has no effect. Has no side effects. (Reduces the radiation exposure received, by a factor of about 3)
Either, more standardized:
Cataclysm-DDA/data/json/items/comestibles/med.json
Line 1218 in 5f6f5e0
(The effect is hard coded. And I'm not sure I found the right lines in the srс)
Second example: a Prussian blue tablet.
Cataclysm-DDA/data/json/items/comestibles/med.json
Line 1624 in 5f6f5e0
small
increase in the duration of the drugCataclysm-DDA/data/json/items/comestibles/med.json
Line 1638 in 5f6f5e0
Cataclysm-DDA/data/json/effects.json
Lines 2837 to 2838 in 5f6f5e0
Describe alternatives you have considered.
Instead of fixing the description, you can add appropriate fields (effect duration) to display in the interface.
Additional context
No response
The text was updated successfully, but these errors were encountered: