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