Beispiel #1
0
        public override string Attack(Entity target)
        {
            string msg  = "";
            var    buff = target.Buffs.OfType <Wet>().FirstOrDefault();

            if (buff == null)
            {
                target.AddBuff(buff = new Wet());
                msg = $"{target} got wet.";
            }
            buff.timeLeft = 3;
            return(base.Attack(target) + msg);
        }
Beispiel #2
0
 public bool Equals(Entry e, double delta)
 {
     return(e != null &&
            Dry != null && Dry.Equals(e.Dry, delta) &&
            Wet != null && Wet.Equals(e.Wet, delta) &&
            Flaps == e.Flaps &&
            Autobrake == e.Autobrake &&
            Abs(ElevationDry - e.ElevationDry) < delta &&
            Abs(ElevationWet - e.ElevationWet) < delta &&
            Abs(HeadwindDry - e.HeadwindDry) < delta &&
            Abs(HeadwindWet - e.HeadwindWet) < delta &&
            Abs(TailwindDry - e.TailwindDry) < delta &&
            Abs(TailwindWet - e.TailwindWet) < delta &&
            Abs(BothReversersDry - e.BothReversersDry) < delta &&
            Abs(BothReversersWet - e.BothReversersWet) < delta &&
            Abs(Speed5Knots - e.Speed5Knots) < delta);
 }