Exemple #1
0
        public static double GetSurveillanceBonus(this Squadron squadron, AirRegimentBehavior behavior)
        {
            if (squadron == null)
            {
                return(1);
            }

            var info = squadron.Plane.Info;

            if (behavior == AirRegimentBehavior.Defense)
            {
                if (info.Type == SlotItemType.艦上偵察機)
                {
                    return(info.ViewRange <= 7 ? 1.2 : 1.3);
                }
                else if (info.Type == SlotItemType.大型飛行艇 || info.Type == SlotItemType.水上偵察機)
                {
                    return(info.ViewRange <= 7 ? 1.1
                     : info.ViewRange == 8 ? 1.13
                     : 1.16);
                }
                else
                {
                    return(info.ViewRange == 8 ? 1.18 : 1.23);
                }
            }
            else
            {
                if (info.Type == SlotItemType.陸上偵察機)
                {
                    return(info.ViewRange == 8 ? 1.15 : 1.18);
                }
                return(1);
            }
        }
Exemple #2
0
 public RelocatingCompletedEventArgs(Squadron squadron, string regimentName, string mapAreaName)
 {
     this.RegimentName = regimentName;
     this.MapAreaName  = mapAreaName;
     this.SquadronId   = squadron.Id;
     this.SlotItemName = squadron.Name;
     this.SlotItemId   = squadron.Plane.Id;
 }
        public RelocatingSquadron(Squadron squadron, AirRegiment regiment)
        {
            this.Squadron     = squadron;
            this.Remaining    = TimeSpan.FromMinutes(duration);
            this.CompleteTime = DateTime.Now + this.Remaining.Value;

            if (regiment != null)
            {
                this.RegimentName = regiment.Name;
                this.MapAreaName  = regiment.MapArea.Id <= 7 ? regiment.MapArea.Name : "期間限定海域";
            }
        }
        public static double GetSurveillanceBonus(this Squadron squadron)
        {
            if (squadron == null)
            {
                return(1);
            }

            var info = squadron.Plane.Info;

            if (info.Type == SlotItemType.艦上偵察機)
            {
                return(info.ViewRange <= 7 ? 1.2 : 1.3);
            }
            else if (info.Type == SlotItemType.大型飛行艇 || info.Type == SlotItemType.水上偵察機)
            {
                return(info.ViewRange <= 7 ? 1.1
                 : info.ViewRange == 8 ? 1.13
                 : 1.16);
            }
            else
            {
                return(1.18);
            }
        }