コード例 #1
0
ファイル: Seed.cs プロジェクト: alucardxlx/Shards-of-Nagash
        public static Seed RandomPeculiarSeed(int group)
        {
            // about 7-8% chance of getting fragrant seed instead of peculiar seed
            var frag = Utility.Random(100);

            if (frag > 92)
            {
                return(new Seed(PlantType.CocoaTree, PlantHue.Plain, false));
            }

            switch (group)
            {
            case 1:
                return(new Seed(PlantTypeInfo.RandomPeculiarGroupOne(), PlantHue.Plain, false));

            case 2:
                return(new Seed(PlantTypeInfo.RandomPeculiarGroupTwo(), PlantHue.Plain, false));

            case 3:
                return(new Seed(PlantTypeInfo.RandomPeculiarGroupThree(), PlantHue.Plain, false));

            default:
                return(new Seed(PlantTypeInfo.RandomPeculiarGroupFour(), PlantHue.Plain, false));
            }
        }
コード例 #2
0
ファイル: Seed.cs プロジェクト: zmazza/ServUO
        public static Seed RandomPeculiarSeed(int group)
        {
            switch (group)
            {
            case 1: return(new Seed(PlantTypeInfo.RandomPeculiarGroupOne(), PlantHue.Plain, false));

            case 2: return(new Seed(PlantTypeInfo.RandomPeculiarGroupTwo(), PlantHue.Plain, false));

            case 3: return(new Seed(PlantTypeInfo.RandomPeculiarGroupThree(), PlantHue.Plain, false));

            default: return(new Seed(PlantTypeInfo.RandomPeculiarGroupFour(), PlantHue.Plain, false));
            }
        }