RimWorld

RimWorld

Not enough ratings
Drug Storage Categories
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
773.186 KB
11 Apr, 2024 @ 8:10am
1 Jul @ 11:13am
5 Change Notes ( view )

Subscribe to download
Drug Storage Categories

Description
This mod creates storage sub-categories for drugs according to their internal categorization as social/medical/hard drugs and sorts them (including modded ones) into the new storage categories accordingly. It is intended to simplify the process of storing drugs with medical applications separately from those with other purposes. This is especially useful if the number of drugs is increased by mods.

Dependency Issue with Biotech
It looks like drugs that are needed to satisfy dependencies have to remain in the generel drugs category, otherwise the mechanics for dependency satisfaction won't work. If Biotech is active, this mod will give beer, the psychite drugs, smokeleaf joint, wake-up and go-juice the general drugs category in addition to the sub-category. This means that there are duplicates in the list, but managing storage is easier when the sub-categories can be used.

Addictions (and luciferium need) don't seem to be affected, only the dependencies added by Biotech. If there are any modded drugs that satisfy dependencies, they will have to be excluded in this mod for them to work as intended. Let me know if you encounter such an issue.


Specially patched mods:
  • VGP Vegetable Garden's chocolate milk is moved to the Sweets category because it is the only garden drink not set up as a drug. The Garden drinks category will no longer show, since it is not used anymore.

Let me know if any modded drugs aren't sorted as intended.
8 Comments
klvlt  [author] 1 Jul @ 11:14am 
1.6 update:
This mod worked with 1.6 when I tested it. If you encounter any errors, please let me know.
Cato 8 May, 2024 @ 11:55am 
Excellent, I was just thinking I wish drugs were sorted a bit more.
klvlt  [author] 28 Apr, 2024 @ 1:35am 
Update: Changed the way Biotech dependency drugs are handled. They are now sorted like the other drugs and also get the general drugs category. This means there are duplicates in the list, but managing storage is easier when the sub-categories can be used.
klvlt  [author] 24 Apr, 2024 @ 2:47pm 
@im baby I am glad I could resolve the issue in a timely fashion. (Even if the solution isn't as neat as I would have liked.) And it's great to hear you find this mod useful, thank you!
im baby 23 Apr, 2024 @ 5:41pm 
Hi, I wanted to add, I just spent a while trying to troubleshoot the same issue and identified this mod with the same 'slowly add mods back in' strategy. it's nice to see that someone already brought this up and there's something of a workaround. Thank you so much for the quick response, it's very much appreciated! I have a lot of modded plants and drugs so I really like this mod
Waggish 23 Apr, 2024 @ 4:47pm 
Thank you so much for the update! And as someone who can only dabble in XML editing at most, I can very much relate to awkward workarounds. XD
klvlt  [author] 23 Apr, 2024 @ 4:08am 
@Waggish Thank you very much for reporting this issue! I could reproduce it. I have Biotech as well, but I hadn't run into this problem in the game. In the updated mod I've excluded, only for Biotech users, the vanilla drugs that satisfy dependencies from the new categories. They remain in the general drugs category so they work on dependent pawns again. (It's an untidy solution I don't entirely like, but it's the best option without going beyond XML and diving deeply into Biotech code.)
Waggish 22 Apr, 2024 @ 4:37pm 
Hi there! I really love what this mod does, but oddly enough, it is causing a problem where pawns with a drug dependency gene (such as Wasters with Psychite Dependency or Hussars with Go-Juice Dependency) do not get their dependencies met when taking the drug.

I used the "halve your modlist til you find the issue" method to isolate this issue to just Core, Royalty, Ideology, and Biotech and was able to replicate. Then I added Harmony and HugsLib so I can grab the log, which will hopefully help you troubleshoot!

https://gist.github.com/HugsLibRecordKeeper/16268bd3110d6a182167cfb2e2b2c5d4