Ejemplo n.º 1
0
        public override void OnDeath(Container c)
        {
            if (Utility.Random(4) == 0)
            {
                Item item;

                switch (Utility.Random(1))
                {
                default:
                case 1: item = new SabrixEye(); break;
                }

                c.DropItem(item);
            }

            /*
             * // TODO: uncomment once added
             * if ( Utility.RandomDouble() < 0.25 )
             * {
             *  switch ( Utility.Random( 2 ) )
             *  {
             *      case 0: AddToBackpack( new PaladinArms() ); break;
             *      case 1: AddToBackpack( new HunterLegs() ); break;
             *  }
             * }
             *
             * if ( Utility.RandomDouble() < 0.1 )
             *  c.DropItem( new ParrotItem() );
             */

            base.OnDeath(c);
        }
Ejemplo n.º 2
0
        public override void OnDeath(Container c)
        {
            if (Utility.Random(4) == 0)
            {
                Item item;

                switch (Utility.Random(1))
                {
                default:
                case 1: item = new SabrixEye(); break;
                }

                c.DropItem(item);
            }

            base.OnDeath(c);
        }