Пример #1
0
            public EffectsTimer(XmlBoatFight siege, TimeSpan delay)
                : base(delay)
            {
                Priority = TimerPriority.OneSecond;

                _siege = siege;
            }
Пример #2
0
        public static void Attack(Mobile from, object target, int firedamage, int physicaldamage)
        {
            // find the XmlSiege attachment on the target
            XmlBoatFight a = (XmlBoatFight)XmlAttach.FindAttachment(target, typeof(XmlBoatFight));

            if (a != null && !a.Deleted)
            {
                a.ApplyScaledDamage(from, firedamage, physicaldamage);
            }
        }
Пример #3
0
        public static int GetHitsMax(object target)
        {
            // find the XmlSiege attachment on the target
            XmlBoatFight a = (XmlBoatFight)XmlAttach.FindAttachment(target, typeof(XmlBoatFight));

            if (a != null && !a.Deleted)
            {
                return(a.HitsMax);
            }

            return(-1);
        }
Пример #4
0
 public AutoRepairTimer(XmlBoatFight attachment, TimeSpan delay)
     : base(delay)
 {
     Priority    = TimerPriority.FiveSeconds;
     _attachment = attachment;
 }