public void BuyScheme(OldAccount a, string name, out OldCardColorScheme purchase)
        {
            purchase = null;
            OldCardColorScheme item = ColorSchemes.FirstOrDefault(x => x.Name.ToLower() == name.ToLower());

            if (item == null)
            {
                return;
            }

            if (a.TryBuy(item))
            {
                a.Store(item);
                purchase = item;
                return;
            }
        }
Beispiel #2
0
 // Attempts to take money in terms of purchasing something, and returns false if it can't.
 public bool TryBuy(OldCardColorScheme item)
 => TryBuy(item.Cost);
Beispiel #3
0
 public void Store(OldCardColorScheme item)
 {
     //Inventory.Store(item);
 }