边缘世界 RimWorld

边缘世界 RimWorld

41 个评价
Carry Different Medicine Types
   
奖励
收藏
已收藏
取消收藏
Mod, 1.4, 1.5, 1.6
文件大小
发表于
更新日期
204.773 KB
2023 年 8 月 3 日 上午 7:27
6 月 11 日 下午 4:11
5 项改动说明 ( 查看 )

订阅以下载
Carry Different Medicine Types

描述
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]
27 条留言
Kopp  [作者] 9 月 28 日 上午 11:40 
@BeaThePANcake
Eventually "Dubs Mint Menus" will work.
It has options for pawns to put items in their inventories. (Needs to be activated in the mod settings)
But I can not remember if everything is allowed.
BeaThePANcake 9 月 28 日 上午 10:08 
looks like it doesn't really work with more injuries mod, since bandages/hemostatic agents/splints/etc aren't actually medicine
Kopp  [作者] 8 月 16 日 下午 1:24 
@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 8 月 16 日 下午 12:27 
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 4 月 11 日 下午 8:57 
You were extremely quick to reply, thanks for the consideration at the very least :cozybethesda:
Kopp  [作者] 4 月 11 日 上午 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 4 月 11 日 上午 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| 2024 年 9 月 18 日 下午 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  [作者] 2024 年 7 月 22 日 上午 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
东方彩虹🌈 2024 年 6 月 16 日 下午 8:09 
Oh yes, thank you very much