Help with adding new medicine preference?

Started by Waka, March 02, 2017, 03:27:11 PM

Previous topic - Next topic

Waka

This is my first post on this forum, so if I mess something up, let me know. I just made a mod that adds a recipe for Glitterworld Medicine and adds a new medicine, called Military Medicine. I've noticed that ordinary medicine is nowhere near as effective as everyone would like it to be, and Glitterworld almost ensures success. Ordinary Medicine has a potency of 0.7, Glitterworld Medicine has  potency of 1.6. Military medicine fills the gap with a potency of 1.2. Military medicine has a different texture to help tell the difference between it and the others.

My problem is that I don't know how to add it to the bar that is in a pawn's health tab. The order should go: No medicine, Herbal medicine, Medicine, Military medicine, Glitterworld medicine. As of now, if I select normal medicine, doctors won't use military medicine, and if I select Glitterworld, they will only use military medicine if they are out of Glitterworld medicine.

I'm going to wait until I have fixed this problem to post the mods. I've got a mod for craftable Glitterworld Medicine, a mod for Military Medicine, and  mod with both.

If anyone knows how to add a new slot for military medicine, any help would be appreciated.

SpaceDorf

I don't know a method,

but if you define it as normal Medicine, your people will prefer it over the normal medicine because of its better effect.
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Waka

In the XML file I duplicated the whole tree for medicine. I changed the defname, label, texture, and changed the recipe and potency. How would I define it as normal medicine? Thanks for the input.

SpaceDorf

#3
Check out Rikiki's Misc Mods
The cave-world biome has a Gleamstem Mushroom that works as better natural medicine ..
I look it up myself real quick .

=== EDIT ===

hmm ..  it's     <thingClass>Medicine</thingClass>
and has       <MedicalPotency>0.85</MedicalPotency>

I think, in everything else it's just identical to every other medicine item ..
sorry

===== EDIT 2 =====

what you could do, is check out Fluffy's Medicine Tab .. the preferences should be defined there ..
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker