Ejemplo n.º 1
0
    private void OfferToBuyCargoFrom(ILocation location)
    {
        var commodityForSale = location.GetBestSale();

        if (account.Balance >= commodityForSale.Value)
        {
            Offer.Value       = -commodityForSale.Value;
            Offer.Commodity   = commodityForSale;
            Offer.Description = $"{commodityForSale.Name} is being sold for {commodityForSale.Value} € here.\n\nx - buy {commodityForSale.Name}";
        }
    }