Exemplo n.º 1
0
 private void RecalcVolumeMassShipping()
 {
     TotalVolume  = LineItemUnits.Sum(x => Mathf.Max(1f, x.Key.CubicMetersPerUnit() * x.Value));
     TotalMass    = LineItemUnits.Sum(x => x.Value * x.Key.KgPerUnit());
     ShippingCost = Via.DollarsPerKilogramPerKilometer(TotalMass, this.Vendor.DistanceFromPlayerKilometersRounded);
 }