public static bool CanHealFromTending(this Hediff_Injury hd)
 {
     if (hd.IsTended())
     {
         return(!hd.IsPermanent());
     }
     return(false);
 }
Exemplo n.º 2
0
        public override bool TryMergeWith(Hediff other)
        {
            Hediff_Injury hediff_Injury = other as Hediff_Injury;

            return(hediff_Injury != null && hediff_Injury.def == this.def && hediff_Injury.Part == base.Part && !hediff_Injury.IsTended() && !hediff_Injury.IsOld() && !this.IsTended() && !this.IsOld() && this.def.injuryProps.canMerge && base.TryMergeWith(other));
        }
Exemplo n.º 3
0
        public override bool TryMergeWith(Hediff other)
        {
            Hediff_Injury hediff_Injury = other as Hediff_Injury;

            if (hediff_Injury == null || hediff_Injury.def != def || hediff_Injury.Part != base.Part || hediff_Injury.IsTended() || hediff_Injury.IsPermanent() || this.IsTended() || this.IsPermanent() || !def.injuryProps.canMerge)
            {
                return(false);
            }
            return(base.TryMergeWith(other));
        }
Exemplo n.º 4
0
 public static bool CanHealFromTending(this Hediff_Injury hd)
 {
     return(hd.IsTended() && !hd.IsOld());
 }