Ejemplo n.º 1
0
 public override void OnDeath( Container c )
 {
     if ( Utility.Random( 10 ) == 0 )
     {
         Item item;
          
         switch ( Utility.Random( 3 ))
         {
             default:
             case 0: item = new GelatanousSkull(); break;
             case 1: item = new CoagulatedLegs(); break;
             case 2: item = new PartiallyDigestedTorso(); break;
         }
          
         c.DropItem( item );
     }
      
     base.OnDeath( c );
 }
Ejemplo n.º 2
0
        public override void OnDeath(Container c)
        {
            if (Utility.Random(10) == 0)
            {
                Item item;

                switch (Utility.Random(3))
                {
                    default:
                    case 0: item = new GelatanousSkull(); break;
                    case 1: item = new CoagulatedLegs(); break;
                    case 2: item = new PartiallyDigestedTorso(); break;
                }

                base.OnDeath(c);
                Region reg = Region.Find(c.GetWorldLocation(), c.Map);
                if (0.25 > Utility.RandomDouble() && reg.Name == "Passage of Tears")
                {
                    if (Utility.RandomDouble() < 0.6)
                        c.DropItem(new EssenceSingularity());

                }
            }
        }