Exemplo n.º 1
0
        public override void OnHit(Mobile defender, ref int damage)
        {
            if (_Table != null && _Table.ContainsKey(Caster))
            {
                Caster.PlaySound(0x3B4);

                RampageContext c = _Table[Caster];
                c.IncreaseBuffs();

                BuffInfo.RemoveBuff(Caster, BuffIcon.Rampage);
                BuffInfo.AddBuff(Caster, new BuffInfo(BuffIcon.Rampage, 1155929, 1155893, TimeSpan.FromSeconds(60), Caster,
                                                      string.Format("{0}\t{1}\t{1}\t{1}\t{2}\t{3}\t{4}\t{5}",
                                                                    (1 + GetMasteryLevel()).ToString(),
                                                                    GetMasteryLevel().ToString(),
                                                                    c.HitsRegen.ToString(),
                                                                    c.StamRegen.ToString(),
                                                                    c.SwingSpeed.ToString(),
                                                                    c.Focus.ToString()
                                                                    )));
            }
        }
Exemplo n.º 2
0
        public void AddToTable()
        {
            if (_Table == null)
            {
                _Table = new Dictionary <Mobile, RampageContext>();
            }

            RampageContext c;

            _Table[Caster] = c = new RampageContext(this);

            BuffInfo.AddBuff(Caster, new BuffInfo(BuffIcon.Rampage, 1155929, 1155893, TimeSpan.FromSeconds(60), Caster,
                                                  string.Format("{0}\t{1}\t{1}\t{1}\t{2}\t{3}\t{4}\t{5}",
                                                                (1 + GetMasteryLevel()).ToString(),
                                                                GetMasteryLevel().ToString(),
                                                                c.HitsRegen.ToString(),
                                                                c.StamRegen.ToString(),
                                                                c.SwingSpeed.ToString(),
                                                                c.Focus.ToString()
                                                                )));
            //Each successful hit or offensive spell grants:<br>+~1_VAL~ Hit Point Regeneration<br>+~2_VAL~ Stamina Regeneration<br>+~3_VAL~ Swing Speed Increase.<br>+~4_VAL~ Casting Focus.<br>(Once you miss your target this buff will end)<br>Current totals:<br>+~5_VAL~ Hit Point Regeneration<br>+~6_VAL~ Stamina Regeneration<br>+~7_VAL~ Swing Speed Increase.<br>+~8_VAL~ Casting Focus.<br>
        }