RimWorld

RimWorld

253 ratings
Choose Your Medicine
3
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
2.051 MB
22 Feb, 2023 @ 6:08am
11 Jul @ 9:39am
29 Change Notes ( view )

Subscribe to download
Choose Your Medicine

Description
First things first: This mod is (heavily) inspired by Pharmacist by Fluffy and Smart Medicine by Uuugggg. So credits to both authors!

Clarification: In vanilla (and in this mod) you do not set which exact medicine should be used, but which MedicalCareCategory.
A MedicalCareCategory defines the best medicine allowed and includes any medicine that is worse.
I use both terms as synonyms, to keep the text/previews simple.



Description:
The mods aim is to reduce micro managing medicine to a minimum and to save higher quality medicines by using them only if necessary/wanted.

  • New main tab gui: You can set which medicine to use at different (customizable) stages for each tendable hediff/disease.

    • There are different tabs for pawn categories, e.g. colonists, neutral faction, colony animals and so on.

    • Each pawn category contains all tendable hediffs, but it is possible to hide the ones that you feel should not be listed (e.g. animal flu in the colonists tab).

    • Hediffs are grouped by severity/immunity/total tend quality

    • It is possible to set the exact order of medicines a doctor should try to use (detailed view)

    • Possibility to refresh the hediffs list which will remove hediffs that are no longer in the game and add those that are not in the list yet (if you added/removed mods)

    • Settings are saved globally, not per savegame.

    • A small button at the top middle of the gui that opens the mods mods options.

    • Mod setting to not show the tab in the bottom bar. The mods gui can be opened from the mod settings page as well.

  • Assign medicine in a pawns health tab: You can assign medicine to every tendable hediff of a pawn ("once" or "until hediff is gone") which then applies only for that specific pawn and that specific instance of the hediff and does not consider the gui/player settings.

  • Operations: Specify which medicine may be used for operations and two additional options.

  • Amount of medicine a colonist can carry: You can adjust the amount in the mod settings.

When using the mod for the first time you may want to check the list of hediffs in the gui and change the medicine for minor stuff, e.g. bruises, cracks, ...
Most of the default settings should work fine and it should be sufficient to change them from time to time if you notice that it would make sense.
So in theory you can set all your pawns to "use best medicine" and do not have to worry about microing or wasting good medicine.

If you use mods that add new medicines I recommend using Mod Medicine Patch by Aeon. I made sure both mods work together.


Performance:
You can see the performance impact in one of the preview pictures.

The 30% increase for tendings may sound much, but as they happen really rare (compared to 60ticks/s) and are not that performance heavy at all, you should not notice the increase.

All in all you should not experience a noteable impact on performance. Please tell me if I am wrong (including the scenario), so I can investigate!


Bug reporting:
Please post reports in the "Bugs and issues" discussion.


Compatibility:
  • Most likely incompatible with mods that change the way the game defines which medicine should get used for tendings/operations/on caravans.
    E.g. "Pharmacist", "Smart Medicine"

  • Mods that change the pawns health tab gui may cause a soft incompatibility so that it is not possible to assign medicine manually as the button does not appear.
    E.g. "Compact Hediffs". I do not use the mod, but I took a glance at their code to see what would be necessary for a patch.
    I think a patch on their side makes more sense and I will happily provide what is necessary if the author wants to make a patch.

  • Built in compatibility for Mod Medicine Patch.


Adding/removing from save:
Should be absolutely no problem. You may get a red error after removing, which is harmless.


Else:
Source of the mod is included.

Credits and Thanks to:
Ratzinger for beta testing and giving feedback.
Brrainz for Harmony.
Uuugggg for Smart Medicine and Fluffy for Pharmacist.
Dubs for Dubs Performance Analyzer.
Roolo for the post in the ludeon forum for a example how to target a nested? method
Marnador for the RimWorld font, used in the preview pictures.
Tynan and Ludeon for RimWorld. Some of the textures/parts of the previews are modified versions of vanilla textures.

License [creativecommons.org]
Popular Discussions View All (4)
7
11 Jul @ 9:11am
1.6 - Possible conflict w/ Priority Treatment
moo
71
10 Jul @ 10:21am
PINNED: Bugs and issues
Kopp
1
27 Apr, 2024 @ 7:42am
PINNED: Feature requests
Kopp
294 Comments
Puph 23 hours ago 
Are the default settings in this mod better than RImworld's own healing priorities?

What are good settings for this mod? Anyone able to share or screenshot? I don't wanna waste Glitterworld medecine on prisoners or small bruises.
Kopp  [author] 11 Jul @ 9:42am 
v1.1.5 (RW1.5 & RW1.6)
- fix: if hediffs were in the wrong category it might happen that it causes errors
- log spam: If hediffs are in the wrong category or not in the gui at all, there is now a log warning once
- if hediffs are not in the mods gui, they will be tended just like in vanilla (using pawns player settings)
- possible fix for indexOutOfRange exception caused by unknown circumstances
- replacing Hediff.TendableNow() prefix with a postfix to eventually improve mod compatibility
- fix: notification spam "pawn fully healed"
Kopp  [author] 11 Jul @ 7:45am 
@Hadley
Open the mods main tab gui, look for the disease you wanna use glitter med for.
Then set glitterworld for the different stages. Or other meds.
And dont forget that your pawn needs to be allowed to use glitterworld.
Hadley 11 Jul @ 7:41am 
I may be stupid but what exactly do I have to do that the use Glitterworld meds for stuff like Sleeping Sickness?
moo 9 Jul @ 11:56am 
Cool, that fix worked. Definitely needs the check to protect the average user
Kopp  [author] 9 Jul @ 9:48am 
@moo
Thanks for the config file.
I found the issue...
There is at least one hediff (acid burn) in the wrong category...
Acid burn is in ImmunityAndSeverity, while it does not have comp_immunizable and therefore should be in category NotImmunityAndNotSeverity, thats why it spits a error if trying to get the comp.
Please use the button "update hediff list", it also checks and changes (if necessary) a hediffs category.
I will add a check for that issue when updating next time.
Thanks for your help!
moo 9 Jul @ 8:53am 
Kopp  [author] 9 Jul @ 6:33am 
@moo
It might be a issue with the mods config file or the settings as well.
Do you mind uploading "Mod_Choose Your Medicine_Settings_ChooseYourMedicine.xml"
found in
...\AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Config
as well?
Kopp  [author] 8 Jul @ 2:46pm 
@moo
Thanks for the save.
If it spits errors for you when loading, then there is only two possibilities left...
It is anomaly related - which I dont own.
Maybe you can check if the error is reproducible without the anomaly dlc.
The other possibility is that the steam workshop somehow did not update the mod correctly...
Unsubbing/deleting the mod and resubbing should fix that.