Beispiel #1
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            OilWood loot1 = new OilWood();

            loot1.Amount = Utility.RandomMinMax(1, 2);
            c.DropItem(loot1);

            ReaperOil loot2 = new ReaperOil();

            loot2.Amount = Utility.RandomMinMax(2, 5);
            c.DropItem(loot2);

            MysticalTreeSap loot3 = new MysticalTreeSap();

            loot3.Amount = Utility.RandomMinMax(2, 5);
            c.DropItem(loot3);
        }
Beispiel #2
0
 public override void OnDeath(Container c)
 {
     base.OnDeath(c);
     if (1 == Utility.RandomMinMax(1, 50))
     {
         OilWood loot = new OilWood();
         loot.Amount = 1;
         c.DropItem(loot);
     }
     if (1 == Utility.RandomMinMax(1, 3))
     {
         ReaperOil loot = new ReaperOil();
         loot.Amount = 1;
         c.DropItem(loot);
     }
     if (1 == Utility.RandomMinMax(1, 3))
     {
         MysticalTreeSap loot = new MysticalTreeSap();
         loot.Amount = 1;
         c.DropItem(loot);
     }
 }
Beispiel #3
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);
            if (1 == Utility.RandomMinMax(1, 3))
            {
                int quantity = 1;
                switch (Utility.RandomMinMax(0, 10))
                {
                case 0: quantity = 2; break;

                case 1: quantity = 2; break;

                case 2: quantity = 2; break;

                case 3: quantity = 2; break;

                case 4: quantity = 3; break;
                }
                OilWood loot = new OilWood();
                loot.Amount = quantity;
                c.DropItem(loot);
            }
            if (1 == Utility.RandomMinMax(1, 2))
            {
                int quantity = 1;
                switch (Utility.RandomMinMax(0, 10))
                {
                case 0: quantity = 2; break;

                case 1: quantity = 2; break;

                case 2: quantity = 2; break;

                case 3: quantity = 2; break;

                case 4: quantity = 3; break;
                }
                MysticalTreeSap loot = new MysticalTreeSap();
                loot.Amount = quantity;
                c.DropItem(loot);
            }
            if (1 == Utility.RandomMinMax(1, 2))
            {
                int quantity = 1;
                switch (Utility.RandomMinMax(0, 10))
                {
                case 0: quantity = 2; break;

                case 1: quantity = 2; break;

                case 2: quantity = 2; break;

                case 3: quantity = 2; break;

                case 4: quantity = 3; break;
                }
                ReaperOil loot = new ReaperOil();
                loot.Amount = quantity;
                c.DropItem(loot);
            }
        }