Beispiel #1
0
        public override void Resolve(ResolveParams rp)
        {
            //spawn Hives
            ResolveParams resolveParamsHives = rp;
            int           hiveCount          = rp.rect.Width * rp.rect.Height / 1200; //Adjust as needed. Maybe run symbol multiple times in parent function. It was 800 at first
            IntVec3       loc;

            hiveCount = Math.Min(30, hiveCount);
            for (int i = 0; i < hiveCount; i++)
            {
                if (this.TryFindHivePos(rp.rect, out loc))
                {
                    Thing thingHive = ThingMaker.MakeThing(ThingDefOf.Hive, null);
                    thingHive.SetFaction(Faction.OfInsects, null);
                    Hive hive = (Hive)GenSpawn.Spawn(thingHive, loc, BaseGen.globalSettings.map, WipeMode.Vanish);
                    hive.SpawnPawnsUntilPoints(Hive.InitialPawnsPoints);
                }
            }
        }