Example #1
0
        public static SmallHuntBOD CreateRandomFor(Mobile m, double skill)
        {
            int curLevel  = 0;
            int levelMax  = 0;
            int amountMax = 0;

            HuntBodUtility.GetSmallBodProps(skill, out levelMax, out amountMax);
            SmallBulkEntry[] entries = HuntBodUtility.GetSmallEntry(out curLevel, levelMax);

            if (entries.Length > 0)
            {
                return(new SmallHuntBOD(entries[Utility.Random(entries.Length)], curLevel, amountMax, false));
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        public SmallHuntBOD()
        {
            int curLevel  = 0;
            int levelMax  = 0;
            int amountMax = 0;

            HuntBodUtility.GetSmallBodProps(Utility.RandomMinMax(80, 120), out levelMax, out amountMax);
            SmallBulkEntry[] entries = HuntBodUtility.GetSmallEntry(out curLevel, levelMax);

            if (entries.Length > 0)
            {
                SmallBulkEntry entry = entries[Utility.Random(entries.Length)];

                this.Hue                = HuntBodUtility.HuntBodDeedHue;
                this.AmountMax          = amountMax;
                this.Type               = entry.Type;
                this.Number             = entry.Number;
                this.Graphic            = entry.Graphic;
                this.RequireExceptional = false;
                this.Material           = (BulkMaterialType)curLevel;
            }
        }