コード例 #1
0
        public override void OnDeath(Container c)
        {
            if (Utility.Random(2) == 0)
            {
                Item item;

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

                c.DropItem(item);
            }

            base.OnDeath(c);
        }
コード例 #2
0
        public override void OnDeath(Container c)
        {
            if (Utility.Random(2) == 0)
            {
                Item item;

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

                c.DropItem(item);
            }

            /*
             * // TODO: uncomment once added
             * if ( Utility.RandomDouble() < 0.025 )
             *  c.DropItem( new PaladinGloves() );
             */
            base.OnDeath(c);
        }