Esempio n. 1
0
        public static Thing ClosestReachableHivelike(Pawn pawn)
        {
            Thing thing = GenClosest.ClosestThingReachable(pawn.Position, pawn.Map, ThingRequest.ForGroup(ThingRequestGroup.BuildingArtificial), PathEndMode.OnCell, TraverseParms.For(TraverseMode.NoPassClosedDoors, Danger.Deadly, false), 9999f, (x => XenomorphUtil.SpawnedHives(pawn.Map).Contains(x)), null, 0, -1, false, RegionType.Set_Passable, false);

            return(thing);
        }