Пример #1
0
        public static CaptureBiome GetCaptureBiome(int biomeChoice)
        {
            switch (biomeChoice)
            {
            case 1:
                return(CaptureBiome.GetPurityForPlayer());

            case 2:
                return(CaptureBiome.Styles.Corruption);

            case 3:
                return(CaptureBiome.Styles.Jungle);

            case 4:
                return(CaptureBiome.Styles.Hallow);

            case 5:
                return(CaptureBiome.Styles.Snow);

            case 6:
                return(CaptureBiome.Styles.Desert);

            case 7:
                return(CaptureBiome.Styles.DirtLayer);

            case 8:
                return(CaptureBiome.Styles.RockLayer);

            case 9:
                return(CaptureBiome.Styles.BloodMoon);

            case 10:
                return(CaptureBiome.Styles.UndergroundDesert);

            case 11:
                return(CaptureBiome.Styles.Ocean);

            case 12:
                return(CaptureBiome.Styles.Mushroom);

            default:
                return(CaptureBiome.GetBiomeByLocation() ?? CaptureBiome.GetBiomeByWater() ?? CaptureBiome.GetPurityForPlayer());
            }
        }