Exemple #1
0
        static BaseCreature GetOstardByChance()
        {
            // From ZHA scripts, 50% fail chance
            if (Utility.Random(1, 2) == 1)
            {
                return(null);
            }

            return(WeightedOstards.GetRandom());
        }
Exemple #2
0
 static BaseCreature GetDragonByChance()
 {
     // 25% chance to spawn color dragons
     if (Utility.RandomMinMax(1, 5) == 5)
     {
         return(WeightedDragons.GetRandom());
     }
     // 75% chance to spawn regular dragon or drake
     else
     {
         return(WeightedStandardDragons.GetRandom());
     }
 }
Exemple #3
0
 static BaseCreature GetOstardByChance()
 {
     return(WeightedOstards.GetRandom());
 }