public override void PostSplitOff(Thing piece) { base.PostSplitOff(piece); CompBlueprint compBlueprint = piece.TryGetComp <CompBlueprint>(); if (compBlueprint != null) { compBlueprint.techLevel = techLevel; } }
// allow stacking same types of blueprints & disallows else public override bool AllowStackWith(Thing other) { if (!base.AllowStackWith(other)) { return(false); } CompBlueprint compBlueprint = other.TryGetComp <CompBlueprint>(); return(compBlueprint != null && compBlueprint.techLevel == techLevel); }