RimWorld

RimWorld

39 vurderinger
Carry Different Medicine Types
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Mod, 1.4, 1.5, 1.6
Filstørrelse
Lagt ut
Oppdatert
204.773 KB
3. aug. 2023 kl. 7.27
11. juni kl. 16.11
5 endringslogger ( vis )

Abonner for å laste ned
Carry Different Medicine Types

Beskrivelse
A simple mod that allows your colonists to carry different types of medicines in their inventories.

This feature was requested by users of another mod of mine: Choose Your Medicine.
Since it is not related to a doctors selection of medicine when tending/operating, I decided to make it its own mod.


  • Compatibility:
    Works for mod added medicines, as long as the corresponding thingDef has a statBase 'MedicalPotency'.
    Not compatible with mods that change the gui element 'carry' in the assign tab.


  • Performance:
    • Obviously the more things a colonist should carry, the higher the impact on performance.
      I did not measure it, but I assume it is fine for a few colonist and a few different things.

    • The change to the assign tab gui has a surprisingly positive effect.
      A test with about 50 pawns showed the calculation for vanilla took about 0.3ms on average, while with the mod about 0.12ms.

  • Limitations:
    The mod uses the vanilla system to make colonists put the medicines in their inventories, so be aware of the following:
    • Colonists will not clear their inventories. (If they have 10 herbals in their inventory and you set it to 5, they will not drop the surplus)
    • Colonists will not respect their 'mass carried limit' when picking up medicine.


  • Adding/Removing from a save:
    Should be fine. There will be errors when removing from a save once, but they can be ignored. Make a backup anyway!


  • Else:
    I am not 100% happy that you have to open another gui to set the medicines to carry. If you can think of a better solution, feel free to comment it!

    Source of the mod is included.

    Credits and Thanks to:
    Ratzinger for giving feedback.
    Brrainz for Harmony.
    Dubs for Dubs Performance Analyzer.
    Marnador for the RimWorld font, used in the preview picture.
    Tynan and Ludeon for RimWorld.

    License [creativecommons.org]
25 kommentarer
Kopp  [skaper] 11 timer siden 
@dudenaut
I agree, it might be nice to have that option.
But it makes things way more complicated.
It is a very simple mod, only using the vanilla system.
Thanks for the suggestion, but will not happen.
dudenaut 12 timer siden 
Allowing pawns to carry multiple types of medicine is really useful. The only thing I’m missing is an option in settings menu to keep the vanilla limit (3 in total) but still allow different types. For example: 2 herbal + 1 industrial. Having a toggle in the settings for this would be perfect for balance.
The Blind One 11. apr. kl. 20.57 
You were extremely quick to reply, thanks for the consideration at the very least :cozybethesda:
Kopp  [skaper] 11. apr. kl. 10.01 
@The Blind One
Noted.
Not sure if/when I am able to come around though.

@Luv N Hugz |UwU|
Pardon the late reply.
I might take a look into this, but it might be too complicated to add.
The Blind One 11. apr. kl. 6.56 
Would love to be able to drag the settings over to other pawns and possibly a quick save / load settings. Other then that this is awesome.
Luv N Hugz |UwU| 18. sep. 2024 kl. 12.59 
I'd love to see a variation of this where instead of choosing different medicines they will just grab the next best medicine. Meaning: if I set them to glitter, and my colony has 0 glitter, they will replace it with normal medicine.
Kopp  [skaper] 22. juli 2024 kl. 2.39 
@Artifrack @Jaggid Edje @东方彩虹🌈
v1.0.3 (RW1.5):
- Should now work correctly with DubsMintMenus, as well as other mods that add new inventoryStockGroupDefs
东方彩虹🌈 16. juni 2024 kl. 20.09 
Oh yes, thank you very much
Kopp  [skaper] 16. juni 2024 kl. 18.49 
@东方彩虹🌈
Dubs Mint Menus.
东方彩虹🌈 16. juni 2024 kl. 18.04 
I have a bit of a problem...for me instead of the 3 types of medicine as options, it shows simple meals, beer and just herbal for medicine as carry options.

I'm sure it's a mod conflict, but I have no idea which one could cause that. Anyone have any advice?