Exemple #1
0
        public void InfectionCave()
        {
            Point origin = new Point((int)(Main.maxTilesX * Main.rand.Next(.1f, .9f)), (int)(Main.maxTilesY * Main.rand.Next(.4f, .8f)));

            origin.Y = BaseWorldGen.GetFirstTileFloor(origin.X, origin.Y, true);
            InfectionClear delete = new InfectionClear();
            InfectionCave  biome  = new InfectionCave();

            delete.Place(origin, WorldGen.structures);
            biome.Place(origin, WorldGen.structures);
        }
Exemple #2
0
        public void InfectionCave(GenerationProgress progress)
        {
            int x      = Main.maxTilesX;
            int y      = Main.maxTilesY;
            int tilesX = WorldGen.genRand.Next(300, x - 300);
            int tilesY = WorldGen.genRand.Next((int)(y * .3f), (int)(y * .75f));

            Point origin = new Point(tilesX, tilesY);

            origin.Y = BaseWorldGen.GetFirstTileFloor(origin.X, origin.Y, true);
            InfectionClear delete = new InfectionClear();
            InfectionCave  biome  = new InfectionCave();

            delete.Place(origin, WorldGen.structures);
            biome.Place(origin, WorldGen.structures);
        }