public override void PostSplitOff(Thing piece) { base.PostSplitOff(piece); CompCombatChip compCombatChip = piece.TryGetComp <CompCombatChip>(); if (compCombatChip != null) { compCombatChip.hediffDef = this.hediffDef; } }
public override bool AllowStackWith(Thing other) { if (!base.AllowStackWith(other)) { return(false); } CompCombatChip compCombatChip = other.TryGetComp <CompCombatChip>(); if (compCombatChip != null && compCombatChip.hediffDef == this.hediffDef) { return(true); } return(false); }