Is it possible to give an added part an illness?

Started by Ekarus, July 18, 2017, 03:59:02 PM

Previous topic - Next topic

Ekarus

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.

skullywag

You would probably need a custom HediffGiver (which would mean c# code)
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Ekarus

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#...

Distman

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#...