RimWorld

RimWorld

29 ratings
[XND] Parasite Tends Matter!
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.043 MB
1 Mar, 2018 @ 3:58am
1 Change Note ( view )

Subscribe to download
[XND] Parasite Tends Matter!

Description
Direct download from GitHub[github.com].

Compatibility
Will conflict with any mods that modify Gut Worms or Muscle Parasites. Conflicting should be minimal since this mod uses C# and XML patching.

There may be issues adding this to existing saves if there are colonists that currently have Gut Worms or Muscle Parasites, but there shouldn't be problems otherwise.

There are no other known incompatibilities.

Overview
Don't you just dislike how regardless of if you use a crippled level 0 doctor without any medicine, or a fully bionic level 20 doctor with glitterworld medicine, it always takes 5 tends to get rid of Gut Worms and Muscle Parasites? I certainly do!

This mod makes it so that tend quality for muscle parasites and gut worms matters: use a bad doctor with poor quality medicine and it'll take more tends to remove parasitical diseases, and it'll take fewer tends if you use a good doctor with good quality medicine.

Average tend quality guide:
  • 0% to 8% - 7 tends
  • 9% to 19% - 6 tends
  • 20% to 37% - 5 tends
  • 38% to 66% - 4 tends
  • 67% to 100% - 3 tends

If these values seem daunting, bear in mind that even a healthy level 8 doctor that doesn't use any medicine will average a tend quality of 30%, which fits in right with vanilla on the above guide.

Info For Modders
This mod adds a new Hediff comp called HediffComp_MultipleTendsQuality which is a child comp of HediffComp_TendDuration, the properties of which are defined through HediffCompProperties_MultipleTendsQuality.

This comp opens up two new values to XML:
  • disappearsAtTendedCountQuality - this comp's equivalent of disappearsAtTendedCount. Once the tend counter's value reaches or surpasses this, the hediff is removed. This value is 7 for GutWorms and MuscleParasites.
  • tendQualityCounterOffsetFactor - The tend counter's value is increased by 1 per tend, plus the tend quality multiplied by this value. This value is 2 for GutWorms and MuscleParasites, but defaults to 1.
So if you have any mods that add diseases which require a fixed number of tends to remove and you want tend quality to matter for them too, then it should be pretty easy to make a patch for them to be affected by tend quality.

Credits
Fyarn for helping out with the C# stuff. Big thanks!
Marnador for their RimWorld-style font.

License
As is standard with my mods: you may include this mod in a mod pack, and you may derive from this, but please inform me if you're doing so either through Steam or Ludeon Forums, and give credit where credit's due.
16 Comments
ruddthree 1 Sep, 2018 @ 6:43am 
Got it.
XeoNovaDan  [author] 1 Sep, 2018 @ 1:54am 
@ruddthree - Vanilla's parasite tending system was changed between B18 and B19, so this mod is redundant.
ruddthree 31 Aug, 2018 @ 4:39pm 
Will this be updated to B19?
XeoNovaDan  [author] 11 May, 2018 @ 11:26pm 
Ah, good catch. I'll update desc for now, and may try to work on a fix in the future.
RtoKeeb 11 May, 2018 @ 9:17pm 
Doesn't work when added to save with infection in progress. They seem to never disappear. Maybe because disappearsAtTendedCountQuality = -1f is not changed.
XeoNovaDan  [author] 5 Apr, 2018 @ 10:01pm 
@Omega13 - That you are correct with.
Omega13 5 Apr, 2018 @ 4:03pm 
Just to confirm what is implied by the above text - this does NOT work on mechanites?
Wolfman Bigby 10 Mar, 2018 @ 7:55pm 
Okay so two of my guys got muscle parasites. Only took two mends each from my dedicated doctor to cure them. Which is good because one of them was incapacitated otherwise due to previous injuries, hah. So I'll be rating this up.
Cloud Breaker 8 Mar, 2018 @ 12:16am 
Wow fantastic, this should be in the vanilla. I appreciate your efforts.
BlueTressym 7 Mar, 2018 @ 8:26am 
Thank you! It makes much more sense this way :)