Ejemplo n.º 1
0
        protected override void ResolveLookTargets()
        {
            IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.Generate;
            GroupList = PawnsArrivalModeWorkerUtility.SplitIntoRandomGroupsNearMapEdge(pawnList, parms.target as Map, false);
            storage   = new GroupListStorage(GroupList);
            PawnsArrivalModeWorkerUtility.SetPawnGroupsInfo(parms, GroupList);
            var list1 = new List <TargetInfo>();

            foreach (var pair in GroupList)
            {
                if (pair.First.Count > 0)
                {
                    list1.Add(new TargetInfo(pair.Second, parms.target as Map, false));
                }
            }
            lookTargets = list1;
        }
Ejemplo n.º 2
0
        public override bool PreCalculateDroppingSpot()
        {
            pawnList = IncidentInterceptorUtility.GenerateRaidPawns(parms);
            IncidentInterceptorUtility.IsIntercepting_GroupSpliter = GeneratorPatchFlag.Generate;
            GroupList = PawnsArrivalModeWorkerUtility.SplitIntoRandomGroupsNearMapEdge(pawnList, parms.target as Map, false);
            storage   = new GroupListStorage(GroupList);
            PawnsArrivalModeWorkerUtility.SetPawnGroupsInfo(parms, GroupList);
            var list1 = new List <TargetInfo>();

            foreach (var pair in GroupList)
            {
                if (pair.First.Count > 0)
                {
                    list1.Add(new TargetInfo(pair.Second, parms.target as Map, false));
                }
            }
            lookTargets = list1;
            return(true);
        }