예제 #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;
 }