public EffectsTimer(XmlBoatFight siege, TimeSpan delay) : base(delay) { Priority = TimerPriority.OneSecond; _siege = siege; }
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); } }
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); }
public AutoRepairTimer(XmlBoatFight attachment, TimeSpan delay) : base(delay) { Priority = TimerPriority.FiveSeconds; _attachment = attachment; }