示例#1
0
        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;
            }
        }
示例#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);
示例#3
0
 public void Store(OldCardColorScheme item)
 {
     //Inventory.Store(item);
 }