public static bool CanHealFromTending(this Hediff_Injury hd) { if (hd.IsTended()) { return(!hd.IsPermanent()); } return(false); }
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)); }
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)); }
public static bool CanHealFromTending(this Hediff_Injury hd) { return(hd.IsTended() && !hd.IsOld()); }