Пример #1
0
        public static HealingParams GetParams(this HediffComp_Regeneration comp)
        {
            HealingTask curHT = comp.currentHT;

            if (comp.Effect_TendBleeding && curHT.IsBloodLossTending())
            {
                return(comp.Props.BloodLossTendingParams);
            }
            // 01 chronic disease tending
            else if (comp.Effect_TendChronicDisease && curHT.IsChronicDiseaseTending())
            {
                return(comp.Props.ChronicHediffTendingParams);
            }
            // 02 regular disease tending
            else if (comp.Effect_TendRegularDisease && curHT.IsRegularDiseaseTending())
            {
                return(comp.Props.RegularDiseaseTendingParams);
            }
            // 03 regular injury
            else if (comp.Effect_RegeneratePhysicalInjuries && curHT.IsInjuryRegeneration())
            {
                return(comp.Props.PhysicalInjuryRegenParams);
            }
            // 04 regular disease
            else if (comp.Effect_HealDiseases && curHT.IsDiseaseHealing())
            {
                return(comp.Props.DiseaseHediffRegenParams);
            }
            // 05 chemicals
            else if (comp.Effect_RemoveChemicals && curHT.IsChemicalRemoval())
            {
                return(comp.Props.ChemicalHediffRegenParams);
            }
            // 06 permanent
            else if (comp.Effect_RemoveScares && curHT.IsPermanentInjuryRegeneration())
            {
                return(comp.Props.PermanentInjuryRegenParams);
            }
            // 07 Bodypart regen
            else if (comp.Effect_RegenerateBodyParts && curHT.IsBodyPartRegeneration())
            {
                return(comp.Props.BodyPartRegenParams);
            }

            return(null);
        }
Пример #2
0
 public static bool IsBodyPartRegeneration(this HealingTask HT)
 {
     return(HT == HealingTask.BodyPartRegeneration);
 }
Пример #3
0
 public static bool IsPermanentInjuryRegeneration(this HealingTask HT)
 {
     return(HT == HealingTask.PermanentInjuryRegeneration);
 }
Пример #4
0
 public static bool IsDiseaseHealing(this HealingTask HT)
 {
     return(HT == HealingTask.DiseaseHealing);
 }
Пример #5
0
 public static bool IsChemicalRemoval(this HealingTask HT)
 {
     return(HT == HealingTask.ChemicalRemoval);
 }
Пример #6
0
 public static bool IsChronicDiseaseTending(this HealingTask HT)
 {
     return(HT == HealingTask.ChronicDiseaseTending);
 }
Пример #7
0
 public static bool IsRegularDiseaseTending(this HealingTask HT)
 {
     return(HT == HealingTask.RegularDiseaseTending);
 }
Пример #8
0
 public static bool IsBloodLossTending(this HealingTask HT)
 {
     return(HT == HealingTask.BloodLossTending);
 }