Exemple #1
0
 public PoisonTimer(Mobile m, PoisonImpl p)
     : base(p.m_Delay, p.m_Interval)
 {
     m_From   = m;
     m_Mobile = m;
     m_Poison = p;
 }
Exemple #2
0
 public PoisonTimer(Mobile m, PoisonImpl p) : base(p.m_Delay, p.m_Interval)
 {
     m_From   = m;
     m_Mobile = m;
     m_Poison = p;
     m_From.SendAsciiMessage("You have been poisoned!");
 }
Exemple #3
0
			public PoisonTimer( Mobile m, PoisonImpl p ) : base( p.m_Delay, p.m_Interval )
			{
				m_From = m;
				m_Mobile = m;
				m_Poison = p;
                m_From.SendAsciiMessage("You have been poisoned!");
			}
Exemple #4
0
 public PoisonTimer( Mobile m, PoisonImpl p )
     : base(p.m_Delay, p.m_Interval)
 {
     m_From = m;
     m_Mobile = m;
     m_Poison = p;
 }
Exemple #5
0
            public PoisonTimer(Mobile m, PoisonImpl p)
                : base(p.m_Delay, p.m_Interval)
            {
                m_Mobile = m;
                m_Poison = p;

                int damage = 1 + (int)(m.Hits * p.m_Scalar);

                BuffInfo.AddBuff(m, new BuffInfo(BuffIcon.Poison, 1017383, 1075633, TimeSpan.FromSeconds((int)((p.m_Count + 1) * p.m_Interval.TotalSeconds)), m, $"{damage}\t{(int)p.m_Interval.TotalSeconds}"));
            }
Exemple #6
0
            public DarkglowTimer(Mobile m, Mobile from, PoisonImpl poison, int Index)
                : base(TimeSpan.FromSeconds(4.0), TimeSpan.FromSeconds(4.0))
            {
                Random rnd = new Random();

                this.m_Mobile   = m;
                this.m_From     = from;
                this.m_Count    = 0;
                this.m_MaxCount = (int)(rnd.Next(45, 60) / 4);
                this.m_Poison   = poison;
                this.m_Index    = Index;
            }
Exemple #7
0
            public ParasiticTimer(Mobile m, Mobile from, PoisonImpl poison, int Index)
                : base(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0))
            {
                Random rnd = new Random();

                this.m_Mobile   = m;
                this.m_From     = from;
                this.m_Count    = 0;
                this.m_MaxCount = (int)(rnd.Next(70, 75) / 5);
                this.m_Poison   = poison;
                this.m_Index    = Index;
            }
Exemple #8
0
            public PoisonTimer(Mobile m, PoisonImpl p) : base(p.m_Interval, p.m_Interval)
            {
                Priority = TimerPriority.FiftyMS;
                m_Mobile = m;
                m_Poison = p;

                m_Index = 0;
                // 4 to 15 intervals
                m_Count = (Utility.Random(5, 15)) * (m_Poison.m_Level + 1);

                CalcDamage();
                //m_Mobile.OnPoisoned( m_Mobile, m_Poison, m_Poison );
            }
Exemple #9
0
            public Mobile From; // ignored

            public PoisonTimer(Mobile m, PoisonImpl p)
                : base(p.m_Interval, p.m_Interval)
            {
                Priority = TimerPriority.FiftyMS;
                m_Mobile = m;
                m_Poison = p;

                m_Index = 0;
                // 5 to 14 intervals
                // removed the * level thing. that made the poison last way too long
                m_Count = (Utility.Random(5, 15)); // * ( m_Poison.m_Level + 1 );

                CalcDamage();
                //m_Mobile.OnPoisoned( m_Mobile, m_Poison, m_Poison );
            }
Exemple #10
0
 public PoisonTimer(Mobile m, PoisonImpl p) : base(p.m_Delay, p.m_Interval)
 {
     m_Mobile = m;
     m_Poison = p;
     Priority = TimerPriority.OneSecond;
 }
Exemple #11
0
            public PoisonTimer( Mobile m, PoisonImpl p )
                : base(p.m_Interval, p.m_Interval)
            {
                Priority = TimerPriority.FiftyMS;
                m_Mobile = m;
                m_Poison = p;

                m_Index = 0;
                // 4 to 15 intervals
                m_Count = ( Utility.Random( 5, 15 ) ) * ( m_Poison.m_Level + 1 );

                CalcDamage();
                //m_Mobile.OnPoisoned( m_Mobile, m_Poison, m_Poison );
            }
Exemple #12
0
			public DarkglowTimer(Mobile m, Mobile from, PoisonImpl poison, int Index)
				: base(TimeSpan.FromSeconds(4.0), TimeSpan.FromSeconds(4.0))
			{
				Random rnd = new Random();

				this.m_Mobile = m;
				this.m_From = from;
				this.m_Count = 0;
				this.m_MaxCount = (int)(rnd.Next(45, 60) / 4);
				this.m_Poison = poison;
				this.m_Index = Index;
			}
Exemple #13
0
			public ParasiticTimer(Mobile m, Mobile from, PoisonImpl poison, int Index)
				: base(TimeSpan.FromSeconds(5.0), TimeSpan.FromSeconds(5.0))
			{
				Random rnd = new Random();

				this.m_Mobile = m;
				this.m_From = from;
				this.m_Count = 0;
				this.m_MaxCount = (int)(rnd.Next(70, 75) / 5);
				this.m_Poison = poison;
				this.m_Index = Index;
			}
Exemple #14
0
            public PoisonTimer( Mobile m, PoisonImpl p )
                : base(p.m_Delay, p.m_Interval)
            {
                m_Mobile = m;
                m_Poison = p;

                int damage = 1 + (int) ( m.Hits * p.m_Scalar );

                BuffInfo.AddBuff( m, new BuffInfo( BuffIcon.Poison, 1017383, 1075633, TimeSpan.FromSeconds( (int) ( ( p.m_Count + 1 ) * p.m_Interval.TotalSeconds ) ), m, String.Format( "{0}\t{1}", damage, (int) p.m_Interval.TotalSeconds ) ) );
            }
Exemple #15
0
            public PoisonTimer(Mobile m, PoisonImpl p)
                : base(p.m_Interval, p.m_Interval)
            {
                Priority = TimerPriority.FiftyMS;
                m_Mobile = m;
                m_Poison = p;

                m_Index = 0;
                // 5 to 14 intervals
                // removed the * level thing. that made the poison last way too long
                m_Count = (Utility.Random(5, 15)); // * ( m_Poison.m_Level + 1 );

                CalcDamage();
                //m_Mobile.OnPoisoned( m_Mobile, m_Poison, m_Poison );
            }