// Token: 0x060029E3 RID: 10723 RVA: 0x0013D300 File Offset: 0x0013B700
        public bool TrySpawnChildHiveLike(bool ignoreRoofedRequirement, out TunnelHiveLikeSpawner newTunnelLike)
        {
            if (!this.CanSpawnChildHiveLike)
            {
                newTunnelLike = null;
                return(false);
            }
            IntVec3 loc = CompSpawner_HiveLike_CrashedShipPart.FindChildHiveLocation(this.parent.Position, this.parent.Map, this.parent.def, this.Props, true, false);

            if (!loc.IsValid)
            {
                newTunnelLike = null;
                return(false);
            }
            newTunnelLike = (TunnelHiveLikeSpawner)ThingMaker.MakeThing(this.parent.def, null);
            if (newTunnelLike.Faction != this.parent.Faction)
            {
                newTunnelLike.SetFaction(this.parent.Faction, null);
            }
            TunnelHiveLikeSpawner hivelike = this.parent as TunnelHiveLikeSpawner;

            if (hivelike != null)
            {
                newTunnelLike.active = hivelike.active;
            }
            GenSpawn.Spawn(newTunnelLike.Def, loc, this.parent.Map, WipeMode.FullRefund);
            this.CalculateNextHiveLikeSpawnTick();
            return(true);
        }