Ludeon Forums

RimWorld => Mods => Help => Topic started by: Ekarus on July 18, 2017, 03:59:02 PM

Title: Is it possible to give an added part an illness?
Post by: Ekarus on July 18, 2017, 03:59:02 PM
What I'm trying to do is make it so using a certain set of bionic parts, if untended to will eventually fail. Unfortunately when I go to test this the parts don't seem to "catch" the disease they're supposed to grant.

Before I fall back on my plan F I want to know if it's possible to force a bionic part to catch a disease within XML.

Plan F being just assigning a (eventually) fatal disease to the "whole body" but I'm not sure if the effect would "stack" or just do really weird things (such as multiple instances of the disease from the same part) instead.
Title: Re: Is it possible to give an added part an illness?
Post by: skullywag on July 20, 2017, 07:23:31 AM
You would probably need a custom HediffGiver (which would mean c# code)
Title: Re: Is it possible to give an added part an illness?
Post by: Ekarus on July 20, 2017, 08:03:32 AM
Quote from: skullywag on July 20, 2017, 07:23:31 AM
You would probably need a custom HediffGiver (which would mean c# code)

More and more I'm starting to think I'm gonna need to learn C#...
Title: Re: Is it possible to give an added part an illness?
Post by: Distman on July 29, 2017, 09:10:32 AM
Do it! It's so damn fun! <3 C#

Quote from: Ekarus on July 20, 2017, 08:03:32 AM
Quote from: skullywag on July 20, 2017, 07:23:31 AM
You would probably need a custom HediffGiver (which would mean c# code)

More and more I'm starting to think I'm gonna need to learn C#...