Skip to content

Remove On Severity Comp

SmArtKar edited this page Dec 21, 2022 · 1 revision

By adding HediffCompProperties_RemoveOnSeverity you'll be able to make your hediff remove itself upon reaching a certain severity - for example to make a disease which causes an explosion upon reaching a certain stage using it in combination with HediffCompProperties_Bomb

    public class HediffCompProperties_RemoveOnSeverity : HediffCompProperties
    {
        // Hediff will remove itself upon it's severity raising above this number
        public float removeSeverity = 1f;
    }

Clone this wiki locally