public static int TransportationCapacity(this Organization org, bool isS = false)
 {
     if (org?.Fleets == null || org.Fleets.Count < 1)
         return 0;
     var coefficient = isS ? 1.44 : 1;
     return (int)Math.Floor(org.BaseTransportationCapacity() * coefficient)
         + (int)Math.Floor(org.DrumTransportationCapacity() * coefficient)
         + (int)Math.Floor(org.DaihatsuTransportationCapacity() * coefficient)
         ;
 }
Example #2
0
 public static int TransportationCapacity(this Organization org, bool isS = false)
 {
     if (org?.Fleets == null || org.Fleets.Count < 1)
         return 0;
     var coefficient = isS ? 1.0 : 0.7;
     var tp = org.BaseTransportationCapacity()
              + org.DrumTransportationCapacity()
              + org.DaihatsuTransportationCapacity()
              + org.LaunchransportationCapacity()
              + org.RationsTransportationCapacity();
     return (int) Math.Floor(tp * coefficient);
 }