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; } }
// Attempts to take money in terms of purchasing something, and returns false if it can't. public bool TryBuy(OldCardColorScheme item) => TryBuy(item.Cost);
public void Store(OldCardColorScheme item) { //Inventory.Store(item); }