Exemplo n.º 1
0
        public override void PostSplitOff(Thing piece)
        {
            base.PostSplitOff(piece);
            CompTraitreleaser compTraitreleaser = piece.TryGetComp <CompTraitreleaser>();

            if (compTraitreleaser != null)
            {
                compTraitreleaser.trait = this.trait;
            }
        }
Exemplo n.º 2
0
        public override bool AllowStackWith(Thing other)
        {
            if (!base.AllowStackWith(other))
            {
                return(false);
            }
            CompTraitreleaser compTraitreleaser = other.TryGetComp <CompTraitreleaser>();

            if (compTraitreleaser != null && compTraitreleaser.trait == this.trait)
            {
                return(true);
            }
            return(false);
        }