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)); } }
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)); } }