public override void OnDamage( int amount, Mobile from, bool willKill ) { SolenHelper.OnRedDamage( from ); if ( !willKill ) { if ( !BurstSac ) { if ( Hits < 50 ) { PublicOverheadMessage( MessageType.Regular, 0x3B2, true, "* The solen's acid sac is burst open! *" ); m_BurstSac = true; } } else if ( from != null && from != this && InRange( from, 1 ) ) { SpillAcid( TimeSpan.FromSeconds( 10 ), 30, 30, from ); } } if ( Utility.Random( 10 ) >= 8 ) { SolenEggSack egg = new SolenEggSack( 1 ); egg.MoveToWorld( Location, Map ); } base.OnDamage( amount, from, willKill ); }
public SolenEggTimer( SolenEggSack eggSack ) : base(TimeSpan.FromSeconds( 2.5 + (Utility.RandomDouble() * 2.5) )) { Priority = TimerPriority.FiftyMS; m_EggSack = eggSack; }